Jump to content

Template:Infobox player character: Difference between revisions

From Encyclopædia Mundus
No edit summary
Tags: Manual revert Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
<!-- Template:Infobox player character (HTML-safe, auto-links) -->
{{Documentation subpage}}


<table class="infobox infobox-character infobox-player-character">
This infobox is for player-created characters. Use {{tl|Infobox player character}} on player character pages.
  <tr>
    <th class="infobox-title" colspan="2">{{{name|{{PAGENAME}}}}}</th>
  </tr>


  <tr>
== Usage ==
    <th class="infobox-pc-banner" colspan="2">Player Character</th>
<pre>
  </tr>
{{Infobox player character
| name =
| player =
| image =
| image_caption =
| race =
| age =
| nationality =
| origin =
| aliases =
| occupation =
| status =
| game_image =
| game_image_caption =
}}
</pre>


   {{#if: {{{player|}}} |
<templatedata>
  <tr>
{
     <th scope="row">Player</th>
   "description": "Infobox for player-created characters on the Mundus Wiki.",
     <td>{{{player}}}</td>
  "params": {
   </tr>
    "name": {
  }}
      "label": "Name",
      "description": "Character name shown in the infobox title. Defaults to the page name.",
      "type": "string",
      "required": false
    },
    "player": {
      "label": "Player",
      "description": "The player controlling or owning the character (display name).",
      "type": "string",
      "required": false,
      "suggested": true
    },
    "image": {
      "label": "Portrait image",
      "description": "File name of the character portrait (without 'File:').",
      "type": "wiki-file-name",
      "required": false,
      "suggested": true
    },
    "imagesize": {
      "label": "Portrait size",
      "description": "Portrait size, for example 300px.",
      "type": "string",
      "default": "300px",
      "required": false
    },
    "image_alt": {
      "label": "Portrait alt text",
      "description": "Alt text for the portrait image.",
      "type": "string",
      "required": false
    },
    "image_caption": {
      "label": "Portrait caption",
      "description": "Caption shown below the portrait.",
      "type": "string",
      "required": false
    },
    "race": {
      "label": "Race",
      "description": "Race page name to link to.",
      "type": "wiki-page-name",
      "required": false,
      "suggested": true
    },
    "age": {
      "label": "Age",
      "description": "Age text, for example '26 cycles'.",
      "type": "string",
      "required": false
    },
    "nationality": {
      "label": "Nationality",
      "description": "Nationality page name to link to.",
      "type": "wiki-page-name",
      "required": false
    },
    "origin": {
      "label": "Origin",
      "description": "Origin page name to link to (city, region, settlement).",
      "type": "wiki-page-name",
      "required": false
    },
    "settlement": {
      "label": "Settlement (legacy)",
      "description": "Legacy alias for origin. Used only if origin is blank.",
      "type": "wiki-page-name",
      "required": false
    },
    "aliases": {
      "label": "Aliases",
      "description": "Nicknames or titles.",
      "type": "string",
      "required": false
    },
    "occupation": {
      "label": "Occupation",
      "description": "Role or job title.",
      "type": "string",
      "required": false
    },
    "affiliation": {
      "label": "Affiliation",
      "description": "Organization, faction, or group.",
      "type": "string",
      "required": false
    },
     "status": {
      "label": "Status",
      "description": "Alive, deceased, missing, non-canonical, etc.",
      "type": "string",
      "required": false
    },
     "game_image": {
      "label": "In-game image",
      "description": "File name of an in-game screenshot (without 'File:').",
      "type": "wiki-file-name",
      "required": false
    },
    "game_imagesize": {
      "label": "In-game image size",
      "description": "In-game image size, for example 180px.",
      "type": "string",
      "default": "180px",
      "required": false
    },
    "game_image_alt": {
      "label": "In-game image alt text",
      "description": "Alt text for the in-game image.",
      "type": "string",
      "required": false
    },
    "game_image_caption": {
      "label": "In-game image caption",
      "description": "Caption shown below the in-game image.",
      "type": "string",
      "required": false
    },
    "nocat": {
      "label": "Disable category",
      "description": "Set to any value to prevent adding Category:Player characters.",
      "type": "string",
      "required": false
    }
   }
}
</templatedata>


  {{#if: {{{image|}}} |
[[Category:Template documentation]]
  <tr>
    <td class="infobox-image mw-no-invert" colspan="2">
      [[File:{{{image}}}|{{{imagesize|300px}}}|alt={{{image_alt|}}}|center]]
      {{#if: {{{image_caption|}}} | <div class="infobox-caption">{{{image_caption}}}</div> }}
    </td>
  </tr>
  }}
 
  {{#if: {{{race|}}} |
  <tr>
    <th scope="row">Race</th>
    <td>[[{{{race}}}]]</td>
  </tr>
  }}
 
  {{#if: {{{age|}}} |
  <tr>
    <th scope="row">Age</th>
    <td>{{{age}}}</td>
  </tr>
  }}
 
  {{#if: {{{nationality|}}} |
  <tr>
    <th scope="row">Nationality</th>
    <td>[[{{{nationality}}}]]</td>
  </tr>
  }}
 
  {{#if: {{{origin|}}} |
  <tr>
    <th scope="row">Origin</th>
    <td>[[{{{origin}}}]]</td>
  </tr>
  }}
 
  <!-- Backwards compatibility: show Origin from |settlement= if |origin= not provided -->
  {{#if: {{{origin|}}} | | {{#if: {{{settlement|}}} |
  <tr>
    <th scope="row">Origin</th>
    <td>[[{{{settlement}}}]]</td>
  </tr>
  }} }}
 
  {{#if: {{{aliases|}}} |
  <tr>
    <th scope="row">Aliases</th>
    <td>{{{aliases}}}</td>
  </tr>
  }}
 
  {{#if: {{{occupation|}}} |
  <tr>
    <th scope="row">Occupation</th>
    <td>{{{occupation}}}</td>
  </tr>
  }}
 
  {{#if: {{{affiliation|}}} |
  <tr>
    <th scope="row">Affiliation</th>
    <td>{{{affiliation}}}</td>
  </tr>
  }}
 
  {{#if: {{{status|}}} |
  <tr>
    <th scope="row">Status</th>
    <td>{{{status}}}</td>
  </tr>
  }}
 
  <!-- In-game appearance (only if provided) -->
  {{#if: {{{game_image|}}} |
  <tr><th class="infobox-sub" colspan="2">In-game appearance</th></tr>
  <tr>
    <td class="infobox-image mw-no-invert" colspan="2">
      [[File:{{{game_image}}}|{{{game_imagesize|180px}}}|alt={{{game_image_alt|}}}|center]]
      {{#if: {{{game_image_caption|}}} | <div class="infobox-caption">{{{game_image_caption}}}</div> }}
    </td>
  </tr>
  }}
</table>
 
<includeonly>
  {{#ifeq:{{NAMESPACE}}| |
    {{#if:{{{nocat|}}}| |
      [[Category:Player characters]]
    }}
  }}
</includeonly>

Revision as of 02:41, 27 February 2026

Template:Documentation subpage

This infobox is for player-created characters. Use Template:Tl on player character pages.

Usage

{{Infobox player character
| name =
| player =
| image =
| image_caption =
| race =
| age =
| nationality =
| origin =
| aliases =
| occupation =
| status =
| game_image =
| game_image_caption =
}}

Infobox for player-created characters on the Mundus Wiki.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Namename

Character name shown in the infobox title. Defaults to the page name.

Stringoptional
Playerplayer

The player controlling or owning the character (display name).

Stringsuggested
Portrait imageimage

File name of the character portrait (without 'File:').

Filesuggested
Portrait sizeimagesize

Portrait size, for example 300px.

Default
300px
Stringoptional
Portrait alt textimage_alt

Alt text for the portrait image.

Stringoptional
Portrait captionimage_caption

Caption shown below the portrait.

Stringoptional
Racerace

Race page name to link to.

Page namesuggested
Ageage

Age text, for example '26 cycles'.

Stringoptional
Nationalitynationality

Nationality page name to link to.

Page nameoptional
Originorigin

Origin page name to link to (city, region, settlement).

Page nameoptional
Settlement (legacy)settlement

Legacy alias for origin. Used only if origin is blank.

Page nameoptional
Aliasesaliases

Nicknames or titles.

Stringoptional
Occupationoccupation

Role or job title.

Stringoptional
Affiliationaffiliation

Organization, faction, or group.

Stringoptional
Statusstatus

Alive, deceased, missing, non-canonical, etc.

Stringoptional
In-game imagegame_image

File name of an in-game screenshot (without 'File:').

Fileoptional
In-game image sizegame_imagesize

In-game image size, for example 180px.

Default
180px
Stringoptional
In-game image alt textgame_image_alt

Alt text for the in-game image.

Stringoptional
In-game image captiongame_image_caption

Caption shown below the in-game image.

Stringoptional
Disable categorynocat

Set to any value to prevent adding Category:Player characters.

Stringoptional