Template:Infobox player character: Difference between revisions
No edit summary Tag: Reverted |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<!-- Template:Infobox player character (HTML-safe, auto-links) --> | |||
<table class="infobox infobox-character infobox-player-character"> | |||
<tr> | |||
<th class="infobox-title" colspan="2">{{{name|{{PAGENAME}}}}}</th> | |||
</tr> | |||
== | <tr> | ||
< | <th class="infobox-pc-banner" colspan="2">Player Character</th> | ||
{{ | </tr> | ||
{{#if: {{{player|}}} | | |||
| image = | <tr> | ||
| image_caption = | <th scope="row">Player</th> | ||
| race = | <td>{{{player}}}</td> | ||
| | </tr> | ||
| | }} | ||
| origin = | |||
| aliases = | {{#if: {{{image|}}} | | ||
| occupation = | <tr> | ||
| status = | <td class="infobox-image mw-no-invert" colspan="2"> | ||
| | [[File:{{{image}}}|{{{imagesize|300px}}}|alt={{{image_alt|}}}|center]] | ||
| game_image_caption | {{#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> | |||
<noinclude> | |||
{{/doc}} | |||
<templatedata> | <templatedata> | ||
| Line 26: | Line 117: | ||
"description": "Infobox for player-created characters on the Mundus Wiki.", | "description": "Infobox for player-created characters on the Mundus Wiki.", | ||
"params": { | "params": { | ||
"name": { | "name": { "label": "Name", "description": "Infobox title. Defaults to the page name.", "type": "string" }, | ||
"player": { "label": "Player", "description": "Player controlling the character.", "type": "string", "suggested": true }, | |||
"image": { "label": "Portrait image", "description": "File name only, without File:.", "type": "wiki-file-name", "suggested": true }, | |||
"imagesize": { "label": "Portrait size", "description": "Example: 300px.", "type": "string", "default": "300px" }, | |||
"image_caption": { "label": "Portrait caption", "description": "Caption under the portrait.", "type": "string" }, | |||
"player": { | "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" }, | |||
"aliases": { "label": "Aliases", "description": "Nicknames or titles.", "type": "string" }, | |||
"image": { | "occupation": { "label": "Occupation", "description": "Role or job title.", "type": "string" }, | ||
"affiliation": { "label": "Affiliation", "description": "Faction or organization.", "type": "string" }, | |||
"status": { "label": "Status", "description": "Alive, deceased, missing, non-canonical, etc.", "type": "string" }, | |||
"game_image": { "label": "In-game image", "description": "File name only, without File:.", "type": "wiki-file-name" }, | |||
"game_imagesize": { "label": "In-game image size", "description": "Example: 180px.", "type": "string", "default": "180px" }, | |||
"game_image_caption": { "label": "In-game image caption", "description": "Caption under the in-game image.", "type": "string" }, | |||
"imagesize": { | |||
"nocat": { "label": "Disable category", "description": "Set to any value to prevent adding Category:Player characters.", "type": "string" } | |||
"image_caption": { | |||
"race": { | |||
"age": { | |||
"nationality": { | |||
"origin": { | |||
"settlement": { | |||
"aliases": { | |||
"occupation": { | |||
"affiliation": { | |||
"status": { | |||
"game_image": { | |||
"game_imagesize": { | |||
"game_image_caption": { | |||
"nocat": { | |||
} | } | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | |||