Jump to content

Template:Infobox player character: Difference between revisions

From Encyclopædia Mundus
Created page with "<!-- Template:Infobox player character (HTML-safe, auto-links) --> <table class="infobox infobox-player-character"> <tr> <th class="infobox-title" colspan="2"> {{{name|{{PAGENAME}}}}} <div class="infobox-pc-tag">Player Character</div> </th> </tr> {{#if: {{{image|}}} | <tr> <td class="infobox-image mw-no-invert" colspan="2"> [[File:{{{image}}}|{{{imagesize|300px}}}|alt={{{image_alt|}}}|center]] {{#if: {{{image_caption|}..."
 
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- Template:Infobox player character (HTML-safe, auto-links) -->
<!-- Template:Infobox player character (HTML-safe, auto-links) -->
<table class="infobox infobox-player-character">
 
<table class="infobox infobox-character infobox-player-character">
  <tr>
    <th class="infobox-title" colspan="2">{{{name|{{PAGENAME}}}}}</th>
  </tr>
 
   <tr>
   <tr>
     <th class="infobox-title" colspan="2">
     <th class="infobox-pc-banner" colspan="2">Player Character</th>
      {{{name|{{PAGENAME}}}}}
      <div class="infobox-pc-tag">Player Character</div>
    </th>
   </tr>
   </tr>


   {{#if: {{{image|}}} |
   {{#if: {{{player|}}} |
    <tr>
  <tr>
      <td class="infobox-image mw-no-invert" colspan="2">
    <th scope="row">Player</th>
        [[File:{{{image}}}|{{{imagesize|300px}}}|alt={{{image_alt|}}}|center]]
    <td>{{{player}}}</td>
        {{#if: {{{image_caption|}}} | <div class="infobox-caption">{{{image_caption}}}</div> }}
  </tr>
      </td>
    </tr>
   }}
   }}


   {{#if: {{{player|}}} |
   {{#if: {{{image|}}} |
    <tr>
  <tr>
      <th scope="row">Player</th>
    <td class="infobox-image mw-no-invert" colspan="2">
       <td>{{{player}}}</td>
       [[File:{{{image}}}|{{{imagesize|300px}}}|alt={{{image_alt|}}}|center]]
    </tr>
      {{#if: {{{image_caption|}}} | <div class="infobox-caption">{{{image_caption}}}</div> }}
    </td>
  </tr>
   }}
   }}


   {{#if: {{{race|}}} |
   {{#if: {{{race|}}} |
    <tr><th scope="row">Race</th><td>[[{{{race}}}]]</td></tr>
  <tr>
    <th scope="row">Race</th>
    <td>[[{{{race}}}]]</td>
  </tr>
   }}
   }}
   {{#if: {{{age|}}} |
   {{#if: {{{age|}}} |
    <tr><th scope="row">Age</th><td>{{{age}}}</td></tr>
  <tr>
    <th scope="row">Age</th>
    <td>{{{age}}}</td>
  </tr>
   }}
   }}
   {{#if: {{{nationality|}}} |
   {{#if: {{{nationality|}}} |
    <tr><th scope="row">Nationality</th><td>[[{{{nationality}}}]]</td></tr>
  <tr>
    <th scope="row">Nationality</th>
    <td>[[{{{nationality}}}]]</td>
  </tr>
   }}
   }}
   {{#if: {{{origin|}}} |
   {{#if: {{{origin|}}} |
    <tr><th scope="row">Origin</th><td>[[{{{origin}}}]]</td></tr>
  <tr>
    <th scope="row">Origin</th>
    <td>[[{{{origin}}}]]</td>
  </tr>
   }}
   }}


   <!-- Backwards compatibility: show Origin from |settlement= if |origin= not provided -->
   <!-- Backwards compatibility: show Origin from |settlement= if |origin= not provided -->
   {{#if: {{{origin|}}} | |
   {{#if: {{{origin|}}} | | {{#if: {{{settlement|}}} |
    {{#if: {{{settlement|}}} |
  <tr>
      <tr><th scope="row">Origin</th><td>[[{{{settlement}}}]]</td></tr>
    <th scope="row">Origin</th>
    }}
    <td>[[{{{settlement}}}]]</td>
  }}
  </tr>
  }} }}


   {{#if: {{{aliases|}}} |
   {{#if: {{{aliases|}}} |
    <tr><th scope="row">Aliases</th><td>{{{aliases}}}</td></tr>
  <tr>
    <th scope="row">Aliases</th>
    <td>{{{aliases}}}</td>
  </tr>
   }}
   }}
   {{#if: {{{occupation|}}} |
   {{#if: {{{occupation|}}} |
    <tr><th scope="row">Occupation</th><td>{{{occupation}}}</td></tr>
  <tr>
    <th scope="row">Occupation</th>
    <td>{{{occupation}}}</td>
  </tr>
   }}
   }}
   {{#if: {{{affiliation|}}} |
   {{#if: {{{affiliation|}}} |
    <tr><th scope="row">Affiliation</th><td>{{{affiliation}}}</td></tr>
  <tr>
    <th scope="row">Affiliation</th>
    <td>{{{affiliation}}}</td>
  </tr>
   }}
   }}
   {{#if: {{{status|}}} |
   {{#if: {{{status|}}} |
    <tr><th scope="row">Status</th><td>{{{status}}}</td></tr>
  <tr>
    <th scope="row">Status</th>
    <td>{{{status}}}</td>
  </tr>
   }}
   }}


   <!-- In-game appearance (only if provided) -->
   <!-- In-game appearance (only if provided) -->
   {{#if: {{{game_image|}}} |
   {{#if: {{{game_image|}}} |
    <tr><th class="infobox-sub" colspan="2">In-game appearance</th></tr>
  <tr><th class="infobox-sub" colspan="2">In-game appearance</th></tr>
    <tr>
  <tr>
      <td class="infobox-image mw-no-invert" colspan="2">
    <td class="infobox-image mw-no-invert" colspan="2">
        [[File:{{{game_image}}}|{{{game_imagesize|180px}}}|alt={{{game_image_alt|}}}|center]]
      [[File:{{{game_image}}}|{{{game_imagesize|180px}}}|alt={{{game_image_alt|}}}|center]]
        {{#if: {{{game_image_caption|}}} | <div class="infobox-caption">{{{game_image_caption}}}</div> }}
      {{#if: {{{game_image_caption|}}} | <div class="infobox-caption">{{{game_image_caption}}}</div> }}
      </td>
    </td>
    </tr>
  </tr>
   }}
   }}
</table>
</table>
Line 73: Line 106:
     {{#if:{{{nocat|}}}| |
     {{#if:{{{nocat|}}}| |
       [[Category:Player characters]]
       [[Category:Player characters]]
      [[Category:Characters]]
     }}
     }}
   }}
   }}
Line 79: Line 111:


<noinclude>
<noinclude>
{{/doc}}
<templatedata>
<templatedata>
{
{
   "description": "Player character infobox for Mundus (auto-links Race, Nationality, Origin).",
   "description": "Infobox for player-created characters on the Mundus Wiki.",
   "params": {
   "params": {
     "name": { "label": "Name", "type": "string", "example": "Irian Balewood" },
     "name": { "label": "Name", "description": "Infobox title. Defaults to the page name.", "type": "string" },
     "image": { "label": "Image filename (art)", "description": "Filename only (no \"File:\" prefix).", "type": "string", "example": "IrianBalewood.png" },
     "player": { "label": "Player", "description": "Player controlling the character.", "type": "string", "suggested": true },
     "imagesize": { "label": "Image size", "type": "string", "default": "300px" },
     "image": { "label": "Portrait image", "description": "File name only, without File:.", "type": "wiki-file-name", "suggested": true },
     "image_alt": { "label": "Image alt text", "type": "string" },
     "imagesize": { "label": "Portrait size", "description": "Example: 300px.", "type": "string", "default": "300px" },
     "image_caption": { "label": "Image caption", "type": "string" },
     "image_caption": { "label": "Portrait caption", "description": "Caption under the portrait.", "type": "string" },


     "player": { "label": "Player", "description": "Player username (optional).", "type": "string", "example": "Xianir" },
     "race": { "label": "Race", "description": "Race page name to link to.", "type": "wiki-page-name" },
    "age": { "label": "Age", "description": "Example: 26 cycles.", "type": "string" },
    "nationality": { "label": "Nationality", "description": "Nationality page name to link to.", "type": "wiki-page-name" },
    "origin": { "label": "Origin", "description": "Origin page name to link to.", "type": "wiki-page-name" },
    "settlement": { "label": "Settlement (legacy)", "description": "Used only if origin is blank.", "type": "wiki-page-name" },


     "race": { "label": "Race (page name only)", "type": "string", "suggestedvalues": ["Humekind","Elvenkind","Landling","Netherkind"] },
     "aliases": { "label": "Aliases", "description": "Nicknames or titles.", "type": "string" },
     "age": { "label": "Age", "type": "string", "example": "26 cycles" },
     "occupation": { "label": "Occupation", "description": "Role or job title.", "type": "string" },
    "nationality": { "label": "Nationality (page name only)", "type": "string", "example": "Directionland" },
     "affiliation": { "label": "Affiliation", "description": "Faction or organization.", "type": "string" },
     "origin": { "label": "Origin (page name only)", "type": "string", "example": "Simonville", "aliases": ["settlement"] },
     "status": { "label": "Status", "description": "Alive, deceased, missing, non-canonical, etc.", "type": "string" },
    "aliases": { "label": "Aliases", "type": "string", "example": "Enty; The Red Wanderer" },
     "occupation": { "label": "Occupation", "type": "string", "example": "Ranger" },
    "affiliation": { "label": "Affiliation", "type": "string", "example": "Order of Simonius" },
    "status": { "label": "Status", "type": "string", "suggestedvalues": ["Alive","Deceased","Missing","Unknown"] },


     "game_image": { "label": "In-game image filename", "type": "string", "example": "Irian_ingame.png" },
     "game_image": { "label": "In-game image", "description": "File name only, without File:.", "type": "wiki-file-name" },
     "game_imagesize": { "label": "In-game image size", "type": "string", "default": "180px" },
     "game_imagesize": { "label": "In-game image size", "description": "Example: 180px.", "type": "string", "default": "180px" },
     "game_image_alt": { "label": "In-game image alt text", "type": "string" },
     "game_image_caption": { "label": "In-game image caption", "description": "Caption under the in-game image.", "type": "string" },
     "game_image_caption": { "label": "In-game image caption", "type": "string", "example": "In-game model" }
 
   },
     "nocat": { "label": "Disable category", "description": "Set to any value to prevent adding Category:Player characters.", "type": "string" }
  "paramOrder": ["name","image","imagesize","image_alt","image_caption","player","race","age","nationality","origin","aliases","occupation","affiliation","status","game_image","game_imagesize","game_image_alt","game_image_caption"]
   }
}
}
</templatedata>
</templatedata>
==Usage==
<pre>
{{Infobox player character
| name          = Example Name
| image        = Example.png
| image_caption = Artwork caption
| player        = PlayerUsername
| race          = Humekind
| age          = 22 cycles
| nationality  = Directionland
| origin        = Simonville
| aliases      = None
| occupation    = Adventurer
| affiliation  = None
| status        = Alive
}}
</pre>
</noinclude>
</noinclude>

Latest revision as of 02:47, 27 February 2026


Infobox player character
Player Character



This infobox is for player-created characters.

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

Infobox title. Defaults to the page name.

Stringoptional
Playerplayer

Player controlling the character.

Stringsuggested
Portrait imageimage

File name only, without File:.

Filesuggested
Portrait sizeimagesize

Example: 300px.

Default
300px
Stringoptional
Portrait captionimage_caption

Caption under the portrait.

Stringoptional
Racerace

Race page name to link to.

Page nameoptional
Ageage

Example: 26 cycles.

Stringoptional
Nationalitynationality

Nationality page name to link to.

Page nameoptional
Originorigin

Origin page name to link to.

Page nameoptional
Settlement (legacy)settlement

Used only if origin is blank.

Page nameoptional
Aliasesaliases

Nicknames or titles.

Stringoptional
Occupationoccupation

Role or job title.

Stringoptional
Affiliationaffiliation

Faction or organization.

Stringoptional
Statusstatus

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

Stringoptional
In-game imagegame_image

File name only, without File:.

Fileoptional
In-game image sizegame_imagesize

Example: 180px.

Default
180px
Stringoptional
In-game image captiongame_image_caption

Caption under the in-game image.

Stringoptional
Disable categorynocat

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

Stringoptional