Difference between revisions of "Template:Infobox-character"

From RPC Library
Jump to navigation Jump to search
m
 
(27 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:#{{Citizenship-switch | citizenship = {{{citizenship|}}} | uldah_block = 000000 | gridania_block = ecae21 | limsa_block = 990205 | garlemald_block = FFFFFF; | ishgard_block = 698dc9 | alamhigo_block = FFFFFF | default_block = D6DCDC}}
 
|-
 
|Citizenship 1 = garlemald_block
 
|Flavor 2 = #00f
 
|#default = #fff
 
}}}}}; color:{{{text color|{{#switch {{{Box title|}}}
 
|Flavor 1 = green
 
|Flavor 2 = #ff0
 
|#default = inherit
 
}}}}};"
 
 
|-
 
|-
! colspan="2" style="background-color:{{{header background color|{{#switch {{{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}} }}
|Flavor 1 = purple
+
|- style="text-align:center;"
|#default = #36c
 
}}}}}; color:{{{header text color|{{#switch {{{Box title|}}}
 
|Flavor 2 = #060
 
|#default = #fff
 
}}}}}; font-size:120%; padding:1em;" | {{{Box title|}}}
 
 
 
 
| 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 38: 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 62: 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 80: 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 100: 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 125: Line 133:
 
  | race =  
 
  | race =  
 
  | clan =  
 
  | clan =  
 +
| server =
 
  | stat_1 =  
 
  | stat_1 =  
 
  | stat_1_value =  
 
  | stat_1_value =  
Line 139: Line 148:
 
  <nowiki>}}</nowiki>
 
  <nowiki>}}</nowiki>
  
[[Category:Template]]
+
[[Category:Template]] [[Category:Wiki_Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 03:52, 14 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 = 
}}