Difference between revisions of "Template:Infobox-character"

From RPC Library
Jump to navigation Jump to search
m
 
(31 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>{| class="infobox" style="font-size:89%; width:300px; align:right;"
 
 
{| class="infobox" style="font-size:89%; width:300px; background-color:#{{{background_color|FFFFFF}}}; {{#if:{{{text_color|}}}|color:#{{{text_color}}};}}"
 
 
|-
 
|-
! colspan="2" style="background-color:#{{{header_background_color|3366CC}}}; color:#{{{header_text_color|FFFFFF}}}; font-size:120%; padding:1em;" | {{{Box title|}}}
+
| colspan="2" style="font-weight:bold;background-color:#{{Citizenship-switch | citizenship = {{{citizenship|}}} | uldah_block = 000000 | gridania_block = ecae21 | limsa_block = 990205 | garlemald_block = FFFFFF | ishgard_block = 698dc9 | alamhigo_block = FFFFFF | sharlayan_block = 7D7D7D | default_block = D6DCDC}}; color:#{{Citizenship-switch | citizenship = {{{citizenship|}}} | uldah_block = FFFFFF | gridania_block = FFFFFF | limsa_block = FFFFFF | garlemald_block = 000000 | ishgard_block = FFFFFF | alamhigo_block = 000000 | sharlayan_block = 000000 | doma_block = 000000 | default_block = 000000}}; font-size:150%; padding:3px;" | {{Citizenship-logo | citizenship = {{{citizenship|}}} | width = 48px}}&nbsp;{{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
 
+
|- style="text-align:center;"
 
 
 
 
 
| colspan="2" style="padding:0.5em;" | [[Image:{{#if: {{{image|}}} | {{{image}}} | Placeholder_person.gif}}|{{#if: {{{imagewidth|}}} | {{{imagewidth}}} | 250}}px]]{{#if: {{{caption|}}} | <br/>''{{{caption}}}'' | }}
 
| colspan="2" style="padding:0.5em;" | [[Image:{{#if: {{{image|}}} | {{{image}}} | Placeholder_person.gif}}|{{#if: {{{imagewidth|}}} | {{{imagewidth}}} | 250}}px]]{{#if: {{{caption|}}} | <br/>''{{{caption}}}'' | }}
 
|-
 
|-
Line 25: Line 21:
 
| {{#if: {{{citizenship|}}} | {{{citizenship}}} | Unaffiliated }}
 
| {{#if: {{{citizenship|}}} | {{{citizenship}}} | Unaffiliated }}
 
|-
 
|-
 +
{{#if: {{{server|}}} |
 +
{{!}} '''Server'''
 +
{{!}} {{{server}}}
 +
{{!}}- | }}
 
{{#if: {{{stat_1|}}} |
 
{{#if: {{{stat_1|}}} |
 
{{!}} '''{{{stat_1}}}'''  
 
{{!}} '''{{{stat_1}}}'''  
Line 49: Line 49:
 
{{!}} {{{stat_6_value}}}  
 
{{!}} {{{stat_6_value}}}  
 
{{!}}- | }}
 
{{!}}- | }}
|}[[Category:Character]][[Category:Player_Character]]{{Citizenship-switch | citizenship = {{{citizenship|}}} | uldah_block = [[Category:Ul'dahn]] | gridania_block = [[Category:Gridanian]] | limsa_block = [[Category:Limsa Lominsian]] | garlemald_block = [[Category:Garlean]] | ishgard_block = [[Category:Ishgardian]] | alamhigo_block = [[Category:Ala Mhigan]]}}{{Race-switch
+
|}[[Category:Character]][[Category:Player_Character]]{{Citizenship-switch | citizenship = {{{citizenship|}}} | uldah_block = [[Category:Ul'dahn]] | gridania_block = [[Category:Gridanian]] | limsa_block = [[Category:Limsa Lominsan]] | garlemald_block = [[Category:Garlean]] | ishgard_block = [[Category:Ishgardian]] | alamhigo_block = [[Category:Ala Mhigan]] | sharlayan_block = [[Category:Sharlayan]] | doma_block = [[Category:Doman]]}}{{Race-switch
 
| race = {{{race}}}
 
| race = {{{race}}}
 
| clan = {{{clan}}}
 
| clan = {{{clan}}}
Line 67: Line 67:
 
| roegadyn_hellsguard_block = [[Category:Roegadyn Hellsguard]][[Category:Roegadyn]]
 
| roegadyn_hellsguard_block = [[Category:Roegadyn Hellsguard]][[Category:Roegadyn]]
 
| roegadyn_default_block = [[Category:Roegadyn]]
 
| roegadyn_default_block = [[Category:Roegadyn]]
 +
| aura_xaela_block = [[Category:Au Ra]][[Category:Xaela Au Ra]]
 +
| aura_raen_block = [[Category:Au Ra]][[Category:Raen Au Ra]]
 +
| aura_default_block = [[Category:Au Ra]]
 +
| hrothgar_helions_block = [[Category:Hrothgar]] [[Category:Helions Hrothgar]]
 +
| hrothgar_thelost_block = [[Category:Hrothgar]] [[Category:The Lost Hrothgar]]
 +
| hrothgar_default_block = [[Category:Hrothgar]]
 +
| viera_rava_block = [[Category:Viera]] [[Category:Rava Viera]]
 +
| viera_veena_block = [[Category:Viera]] [[Category:Veena Viera]]
 +
| viera_default_block = [[Category:Viera]]
 +
}}{{Server-switch
 +
| server = {{{server}}}
 +
| balmung_block = [[Category:Balmung]]
 +
| famfrit_block = [[Category:Famfrit]]
 +
| gilgamesh_block = [[Category:Gilgamesh]]
 +
| hyperion_block = [[Category:Hyperion]]
 +
| jenova_block = [[Category:Jenova]]
 +
| moogle_block = [[Category:Moogle]]
 +
| siren_block = [[Category:Siren]]
 +
| mateus_block = [[Category:Mateus]]
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
{{Arcane-template-syntax}}
 
{{Arcane-template-syntax}}
Line 87: Line 106:
 
     If you specify the properly capitalized name of one of the cities, the infobox will change the header color and place your city's logo in the header next to your name.
 
     If you specify the properly capitalized name of one of the cities, the infobox will change the header color and place your city's logo in the header next to your name.
 
     Doing this will also auto-tag your character page into appropriate categories.
 
     Doing this will also auto-tag your character page into appropriate categories.
 +
| '''server''' = (optional) The server on which this character exists. This field will not appear if this value isn't provided.
 +
    If you specify a known server name, this will auto-tag your character into appropriate categories.
 
  | '''stat_1''' = (optional) The first statistics row title
 
  | '''stat_1''' = (optional) The first statistics row title
 
  | '''stat_1_value''' = (optional) The first statistics row value
 
  | '''stat_1_value''' = (optional) The first statistics row value
Line 112: Line 133:
 
  | race =  
 
  | race =  
 
  | clan =  
 
  | clan =  
 +
| server =
 
  | stat_1 =  
 
  | stat_1 =  
 
  | stat_1_value =  
 
  | stat_1_value =  
Line 126: Line 148:
 
  <nowiki>}}</nowiki>
 
  <nowiki>}}</nowiki>
  
[[Category:Template]]
+
[[Category:Template]] [[Category:Wiki_Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 20:52, 13 July 2019

Warning! This template uses arcane features of template syntax, such as parser functions, or is particularly complex. Please don't edit it unless you know exactly what you're doing.

Use this template to create a generic "infobox" for a character, a right-aligned table that contains the character's picture and other vital statistics of your choice. You can provide up to six vital statistics, all of which are optional, as well an image.

Syntax

{{Infobox-character
| name = (optional) The character's name, defaults to the page name without the namespace
| image = (optional) The name of the image file for the character, defaults to a placeholder
| imagewidth = (optional) The width of the image in pixels, defaults to 250
| caption = (optional) A caption for the image
| title = (optional) The character's title
| gender = (optional) The character's gender
| race = (optional) The race of the character, defaults to "Unknown".
   If you specify a properly capitalized race name, this will auto-tag your character into appropriate categories.
| clan = (optional) The clan or sub-race of the character, defaults to "Unknown".
   If you specify a properly capitalized clan name, this will auto-tag your character into appropriate categories.
| citizenship = (optional) The citizenship of the character, defaults to "Unaffiliated"
   If you specify the properly capitalized name of one of the cities, the infobox will change the header color and place your city's logo in the header next to your name.
   Doing this will also auto-tag your character page into appropriate categories.
| server = (optional) The server on which this character exists. This field will not appear if this value isn't provided.
   If you specify a known server name, this will auto-tag your character into appropriate categories.
| stat_1 = (optional) The first statistics row title
| stat_1_value = (optional) The first statistics row value
| stat_2 = (optional) The second statistics row title
| stat_2_value = (optional) The second statistics row value
| stat_3 = (optional) The third statistics row title
| stat_3_value = (optional) The third statistics row value
| stat_4 = (optional) The fourth statistics row title
| stat_4_value = (optional) The fourth statistics row value
| stat_5 = (optional) The fifth statistics row title
| stat_5_value = (optional) The fifth statistics row value
| stat_6 = (optional) The sixth statistics row title
| stat_6_value = (optional) The sixth statistics row value
}}

Copy-paste

{{Infobox-character
| name = 
| image =
| imagewidth = 
| caption =
| title = 
| gender = 
| citizenship = 
| race = 
| clan = 
| server = 
| stat_1 = 
| stat_1_value = 
| stat_2 = 
| stat_2_value = 
| stat_3 = 
| stat_3_value = 
| stat_4 = 
| stat_4_value = 
| stat_5 = 
| stat_5_value = 
| stat_6 = 
| stat_6_value = 
}}