Difference between revisions of "Template: Infobox character"
From A Wiki of Ice and Fire
(</includeonly>) |
(Added predecessor/successor and lovers modules) |
||
(28 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{Infobox | <includeonly>{{Infobox | ||
− | | title = | + | | title = {{{Character_name|}}} |
+ | | titlestyle = font-weight:bold; text-align: center; | ||
| above = {{#if:{{{Character_name|}}}| | '''{{{name|{{PAGENAME}} }}}''' }} | | above = {{#if:{{{Character_name|}}}| | '''{{{name|{{PAGENAME}} }}}''' }} | ||
− | | abovestyle = background: #E0E8FF; text-align:center; | + | | abovestyle = background: #E0E8FF;text-align:center; |
− | | image = {{#if:{{{image|}}}|{{{image|}}}|[[Category:Characters without images]] }} | + | | image = {{#if:{{{image|}}}|{{#ifeq:{{{image|}}}|<br>||{{{image|}}}}}|[[Category:Characters without images]] }} |
| caption = {{#if:{{{image_caption|}}} | {{{image_caption}}} }} | | caption = {{#if:{{{image_caption|}}} | {{{image_caption}}} }} | ||
− | | data2 = {{#if:{{{image|}}}|<hr>}} | + | | data2 = {{#if:{{{image|}}}|{{#ifeq:{{{image|}}}|<br>||<hr>}}}} |
− | | label3 = Alias | + | | label3 = Alias(es) |
| data3 = {{{Alias|}}} | | data3 = {{{Alias|}}} | ||
− | | label4 = Title | + | | label4 = Title(s) |
| data4 = {{{Title|}}} | | data4 = {{{Title|}}} | ||
| label5 = Allegiance | | label5 = Allegiance | ||
− | | data5 = {{{Allegiance|}}} | + | | data5 = {{{Allegiance|}}} |
+ | | label6 = Predecessor | ||
+ | | data6 = {{{Predecessor|}}} | ||
+ | | label7 = Successor | ||
+ | | data7 = {{{Successor|}}} | ||
| label8 = Race | | label8 = Race | ||
− | | data8 = {{{Race|}}} | + | | data8 = {{#if:{{{Race|}}}|{{{Race}}}[[Category:Pages with the race parameter]]}} |
− | | label9 = Culture | + | | label9 = Culture(s) |
| data9 = {{{Culture|}}} | | data9 = {{{Culture|}}} | ||
Line 24: | Line 29: | ||
| label11 = Died | | label11 = Died | ||
| data11 = {{#if:{{{Date_of_Death|}}}|{{#if:{{{Place_of_Death|}}}|In {{{Date_of_Death}}}, at {{{Place_of_Death}}}|In {{{Date_of_Death}}}}}|{{#if:{{{Place_of_Death|}}}|At {{{Place_of_Death}}}|}}|}} | | data11 = {{#if:{{{Date_of_Death|}}}|{{#if:{{{Place_of_Death|}}}|In {{{Date_of_Death}}}, at {{{Place_of_Death}}}|In {{{Date_of_Death}}}}}|{{#if:{{{Place_of_Death|}}}|At {{{Place_of_Death}}}|}}|}} | ||
− | | label14 = | + | | label12 = Spouse(s) |
− | | data14 = {{{ | + | | data12 = {{{Spouse|}}} |
− | | label15 = Book(s) | + | | label13 = Lover(s) |
− | | | + | | data13 = {{{Lover|}}} |
+ | | label14 = Issue | ||
+ | | data14 = {{{Issue|}}} | ||
+ | | label15 = Father | ||
+ | | data15 = {{{Father|}}} | ||
+ | | label16 = Mother | ||
+ | | data16 = {{{Mother|}}} | ||
+ | | label17 = Book(s) | ||
+ | | data17 = {{{Books|}}} | ||
+ | | label18 = Personal arms | ||
| data18 = {{{coat-of-arms|}}} | | data18 = {{{coat-of-arms|}}} | ||
Line 36: | Line 50: | ||
| label27 = {{Nowrap|TV series}} | | label27 = {{Nowrap|TV series}} | ||
| data27 = {{{TV_series|}}} | | data27 = {{{TV_series|}}} | ||
− | }}</includeonly><noinclude> | + | }}</includeonly><noinclude>{{documentation}}</noinclude> |
− | |||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 14:17, 26 December 2020
Usage
{{Infobox character <!-- Example shown on the right --> | title = {{{title}}} | nickname = {{{nickname}}} | firstname = {{{firstname}}} | particle = {{{particle}}} | lastname = {{{lastname}}} | epithet = {{{epithet}}} | arms = None | arms2 = <!-- not needed if identical to {{{arms}}} --> | image = No portrait.svg | image_caption = {{{image_caption}}} | Alias = {{{Alias}}} | Title = {{{Title}}} | Allegiance = {{{Allegiance}}} | Predecessor = {{{Predecessor}}} | Successor = {{{Successor}}} | Race = {{{Race}}} | Culture = {{{Culture}}} | Date_of_Birth = {{{Date_of_Birth}}} | Place_of_Birth = {{{Place_of_Birth}}} | Date_of_Death = {{{Date_of_Death}}} | Place_of_Death = {{{Place_of_Death}}} | Date_of_Burial = {{{Date_of_Burial}}} | Place_of_Burial = {{{Place_of_Burial}}} | Father = {{{Father}}} | Mother = {{{Mother}}} | Spouse = {{{Spouse}}} | Lover = {{{Lover}}} | Issue = {{{Issue}}} | coat-of-arms = {{{coat}}} | Books = {{{Books}}} | Played_by = {{{Played_by}}} | TV_series = {{{TV_series}}} }}
Parameters
- Parameters which get no value are not shown when the template used.
- You can add multipile values by seperating them with '<br>' tag.
Name parts
|
Name parts
|
arms |
Main coat of arms / symbol representing the character. Template:Coa/list contains all the available values. |
arms2 |
Secondary coat of arms / symbol representing the character. Not needed if identical to main one! |
image |
Image of the character. Use just the file name or the full image syntax. For example: Example.png or [[File:example.png|200px|alt=Example alt text]] .
|
image_caption |
|
Alias |
|
Title |
|
Allegiance |
InterLink to the appropriate [[Noble House]]s .
|
Predecessor |
|
Successor |
|
Culture |
Choose appropriate values from the list of Cultures |
Date_of_Birth |
Use to display dates.
|
Place_of_Birth |
InterLink to the appropriate [[Location]] .
|
Date_of_Death |
Use to display dates.
|
Place_of_Death |
InterLink to the appropriate [[Location]] .
|
Date_of_Burial |
Use to display dates.
|
Place_of_Burial |
InterLink to the appropriate [[Location]] .
|
Father |
InterLink to the appropriate [[Character]] .
|
Mother |
InterLink to the appropriate [[Character]] .
|
Spouse |
InterLink to the appropriate [[Character]]s .
|
Lover |
InterLink to the appropriate [[Character]]s .
|
Issue |
InterLink to the appropriate [[Character]]s .
|
coat-of-arms |
??? add Image or description ??? |
Books |
Choose appropriate values from the list of Books |
Played_by |
link to Wikipedia with [[w:Article name|Actor name]]
|
TV_series |
The above documentation is transcluded from Template:Infobox character/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |