Template: Infobox character: Difference between revisions
From A Wiki of Ice and Fire
No edit summary |
Remove stray closing brace from character infobox image output |
||
| (11 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{Infobox | <includeonly>{{Infobox | ||
| above = {{#invoke:Infobox character/name|main | | bodyclass = awoiaf-infobox awoiaf-infobox-character | ||
| above = {{#invoke:Infobox character/name|main}} | |||
| abovestyle = font-weight:bold; background: none; line-height: 1.1em; | | abovestyle = font-weight:bold; background: none; line-height: 1.1em; | ||
| image = {{#if:{{{image|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image}}}|maxsize=400px|sizedefault= | | image = {{#if:{{{image|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image}}}|maxsize=400px|sizedefault=350x560px|border=no|suppressplaceholder={{main other|yes|no}}|alt={{#if:{{{image_alt|}}}|{{{image_alt}}}|Image of {{PAGENAME}}}}}}}} | ||
| caption = {{#if:{{{image_caption|}}} | {{{image_caption}}} }} | | caption = {{#if:{{{image_caption|}}} | {{{image_caption}}} }} | ||
| data2 = {{#if:{{{image|}}}|{{#ifeq:{{{image|}}}|<br>||<hr>}}}} | | data2 = {{#if:{{{image|}}}|{{#ifeq:{{{image|}}}|<br>||<hr>}}|[[Category:Characters without images]]}} | ||
| label3 = {{Infobox label|s=Alias|p=Aliases|{{{Alias|}}}}} | | label3 = {{Infobox label|s=Alias|p=Aliases|{{{Alias|}}}}} | ||
| data3 = {{Infobox value|class=plainlist|{{{Alias|}}}}} | | data3 = {{Infobox value|class=plainlist|{{{Alias|}}}}} | ||
| label4 = {{Infobox label|s=Title|p=Titles|{{{Title|}}}}} | | label4 = {{Infobox label|s=Title|p=Titles|{{{Title|}}}}} | ||
| data4 = {{Infobox value|class=plainlist|{{{Title|}}}}} | | data4 = {{Infobox value|class=plainlist|{{{Title|}}}}} | ||
| rowclass4 = infobox-row infobox-field-title | |||
| label5 = {{Infobox label|s=Allegiance|p=Allegiances|{{{Allegiance|}}}}} | | label5 = {{Infobox label|s=Allegiance|p=Allegiances|{{{Allegiance|}}}}} | ||
| data5 = {{Infobox value|class=plainlist|{{{Allegiance|}}}}} | | data5 = {{Infobox value|class=plainlist|{{{Allegiance|}}}}} | ||
| | | rowclass5 = infobox-row infobox-field-allegiance | ||
| label9 = {{Infobox label|s=Culture|p=Cultures|{{{Culture|}}}}} | | label9 = {{Infobox label|s=Culture|p=Cultures|{{{Culture|}}}}} | ||
| data9 = {{Infobox value|class=plainlist|{{{Culture|}}}}} | | data9 = {{Infobox value|class=plainlist|{{{Culture|}}}}} | ||
| rowclass9 = infobox-row infobox-field-culture | |||
| label10 = Born | | label10 = Born | ||
| data10 = {{#if:{{{Date_of_Birth|}}}|{{#if:{{{Place_of_Birth|}}}| | | data10 = {{#if:{{{Date_of_Birth|}}}|{{#if:{{{Place_of_Birth|}}}|{{{Date_of_Birth}}}<br>{{{Place_of_Birth}}}|{{{Date_of_Birth}}}}}|{{#if:{{{Place_of_Birth|}}}|{{{Place_of_Birth}}}|}}|}} | ||
| rowclass10 = infobox-row infobox-field-born | |||
| label11 = Died | | label11 = Died | ||
| data11 = {{#if:{{{Date_of_Death|}}}|{{#if:{{{Place_of_Death|}}}| | | data11 = {{#if:{{{Date_of_Death|}}}|{{#if:{{{Place_of_Death|}}}|{{{Date_of_Death}}}<br>{{{Place_of_Death}}}|{{{Date_of_Death}}}}}|{{#if:{{{Place_of_Death|}}}|{{{Place_of_Death}}}|}}|}} | ||
| | | rowclass11 = infobox-row infobox-field-died | ||
| label13 = {{Infobox label|s=Father|p=Fathers|{{{Father|}}}}} | | label13 = {{Infobox label|s=Father|p=Fathers|{{{Father|}}}}} | ||
| data13 = {{Infobox value|class=plainlist|{{{Father|}}}}} | | data13 = {{Infobox value|class=plainlist|{{{Father|}}}}} | ||
| rowclass13 = infobox-row infobox-field-father | |||
| label14 = {{Infobox label|s=Mother|p=Mothers|{{{Mother|}}}}} | | label14 = {{Infobox label|s=Mother|p=Mothers|{{{Mother|}}}}} | ||
| data14 = {{Infobox value|class=plainlist|{{{Mother|}}}}} | | data14 = {{Infobox value|class=plainlist|{{{Mother|}}}}} | ||
| rowclass14 = infobox-row infobox-field-mother | |||
| label15 = {{Infobox label|s=Spouse|p=Spouses|{{{Spouse|}}}}} | | label15 = {{Infobox label|s=Spouse|p=Spouses|{{{Spouse|}}}}} | ||
| data15 = {{Infobox value|class=plainlist|{{{Spouse|}}}}} | | data15 = {{Infobox value|class=plainlist|{{{Spouse|}}}}} | ||
| rowclass15 = infobox-row infobox-field-spouse | |||
| label16 = {{Infobox label|s=Lover|p=Lovers|{{{Lover|}}}}} | | label16 = {{Infobox label|s=Lover|p=Lovers|{{{Lover|}}}}} | ||
| data16 = {{Infobox value|class=plainlist|{{{Lover|}}}}} | | data16 = {{Infobox value|class=plainlist|{{{Lover|}}}}} | ||
| rowclass16 = infobox-row infobox-field-lover | |||
| label17 = Issue | | label17 = Issue | ||
| data17 = {{Infobox value|class=plainlist|{{{Issue|}}}}} | | data17 = {{Infobox value|class=plainlist|{{{Issue|}}}}} | ||
| rowclass17 = infobox-row infobox-field-children | |||
| label18 = | | label18 = Coat of arms | ||
| data18 = | | data18 = {{{coat-of-arms|}}} | ||
| rowclass18 = infobox-row infobox-field-coat-of-arms | |||
| label19 = {{Infobox label|s=Book|p=Books|{{{Books|}}}}} | | label19 = {{Infobox label|s=Book|p=Books|{{{Books|}}}}} | ||
| data19 = {{Infobox value|class=plainlist|{{{Books|}}}}} | | data19 = {{Infobox value|class=plainlist|{{{Books|}}}}} | ||
| rowclass19 = infobox-row infobox-field-book | |||
| label26 = {{Nowrap|Played by}} | | label26 = {{Nowrap|Played by}} | ||
| data26 = {{{Played_by|}}} | | data26 = {{{Played_by|}}} | ||
| rowclass26 = infobox-row infobox-field-actor | |||
| label27 = {{Nowrap|TV series}} | | label27 = {{Nowrap|TV series}} | ||
| data27 = {{{TV_series|}}} | | data27 = {{{TV_series|}}} | ||
| rowclass27 = infobox-row infobox-field-tv-series | |||
}}{{main other|[[Category:Character pages in alphabetical order]]}}</includeonly><noinclude>{{Documentation}}</noinclude> | }}{{main other|[[Category:Character pages in alphabetical order]]}}</includeonly><noinclude>{{Documentation}}</noinclude> | ||
Latest revision as of 12:50, 19 September 2026
Usage
[edit]{{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
[edit]- 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 |