Difference between revisions of "Template: Infobox character"

From A Wiki of Ice and Fire
Jump to: navigation, search
(The "in/at" thing is too inflexible.)
m
(30 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
<includeonly>{{Infobox  
 
<includeonly>{{Infobox  
| title = {{{Character_name|}}}
+
| above = {{#invoke:Infobox character/name|main|name={{{Character_name|{{{name|{{PAGENAME}}}}}}}}<!-- deprecated -->}}
| titlestyle    = font-weight:bold; text-align: center;
+
| abovestyle    = font-weight:bold; background: none; line-height: 1.1em;
| above = {{#if:{{{Character_name|}}}| | '''{{{name|{{PAGENAME}} }}}''' }}
 
| abovestyle    = background: #E0E8FF;text-align:center;
 
  
| image = {{#if:{{{image|}}}|{{#ifeq:{{{image|}}}|<br>||{{{image|}}}}}|[[Category:Characters without images]] }}
+
| image = {{#if:{{{image|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image}}}|maxsize=400px|sizedefault=350px|border=no|suppressplaceholder={{main other|yes|no}}}}}}
 
| 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 = Alias(es)
+
| label3 = {{Infobox label|s=Alias|p=Aliases|{{{Alias|}}}}}
| data3 = {{{Alias|}}}
+
| data3 = {{Infobox value|class=plainlist|{{{Alias|}}}}}
| label4        = Title(s)
+
| label4        = {{Infobox label|s=Title|p=Titles|{{{Title|}}}}}
| data4        = {{{Title|}}}
+
| data4        = {{Infobox value|class=plainlist|{{{Title|}}}}}
| label5 = Allegiance
+
| label5 = {{Infobox label|s=Allegiance|p=Allegiances|{{{Allegiance|}}}}}
| data5 = {{{Allegiance|}}}
+
| data5 = {{Infobox value|class=plainlist|{{{Allegiance|}}}}}
| label6        = Predecessor
+
| label6        = {{Infobox label|s=Predecessor|p=Predecessors|{{{Predecessor|}}}}}
| data6        = {{{Predecessor|}}}
+
| data6        = {{Infobox value|class=plainlist|{{{Predecessor|}}}}}
| label7        = Successor
+
| label7        = {{Infobox label|s=Successor|p=Successors|{{{Successor|}}}}}
| data7        = {{{Successor|}}}
+
| data7        = {{Infobox value|class=plainlist|{{{Successor|}}}}}
  
 
| label8 = Race
 
| label8 = Race
| data8 = {{#if:{{{Race|}}}|{{{Race}}}[[Category:Pages with the race parameter]]}}
+
| data8 = {{#if:{{{Race|}}}|{{{Race}}}{{main other|[[Category:Pages with the race parameter]]}}}}
| label9 = Culture(s)
+
| label9 = {{Infobox label|s=Culture|p=Cultures|{{{Culture|}}}}}
| data9 = {{{Culture|}}}
+
| data9 = {{Infobox value|class=plainlist|{{{Culture|}}}}}
  
 
| label10 = Born
 
| label10 = Born
| data10 = {{{Date_of_Birth|}}}|{{{Place_of_Birth|}}}
+
| data10 = {{#if:{{{Date_of_Birth|}}}|{{#if:{{{Place_of_Birth|}}}|In&nbsp;{{{Date_of_Birth}}},&nbsp;{{{Place_of_Birth}}}|In&nbsp;{{{Date_of_Birth}}}}}|{{#if:{{{Place_of_Birth|}}}|{{{Place_of_Birth}}}|}}|}}
 
| label11 = Died  
 
| label11 = Died  
| data11 = {{{Date_of_Death|}}}|{{{Place_of_Death|}}}
+
| data11 = {{#if:{{{Date_of_Death|}}}|{{#if:{{{Place_of_Death|}}}|In&nbsp;{{{Date_of_Death}}},&nbsp;{{{Place_of_Death}}}|In&nbsp;{{{Date_of_Death}}}}}|{{#if:{{{Place_of_Death|}}}|{{{Place_of_Death}}}|}}|}}
 +
| label12 = Buried
 +
| data12 = {{#if:{{{Date_of_Burial|}}}|{{#if:{{{Place_of_Burial|}}}|In&nbsp;{{{Date_of_Burial}}},&nbsp;{{{Place_of_Burial}}}|In&nbsp;{{{Date_of_Burial}}}}}|{{#if:{{{Place_of_Burial|}}}|{{{Place_of_Burial}}}|}}|}}
  
| label12      = Father
+
| label13 = {{Infobox label|s=Father|p=Fathers|{{{Father|}}}}}
| data12        = {{{Father|}}}
+
| data13 = {{Infobox value|class=plainlist|{{{Father|}}}}}
| label13      = Mother
+
| label14 = {{Infobox label|s=Mother|p=Mothers|{{{Mother|}}}}}
| data13        = {{{Mother|}}}
+
| data14 = {{Infobox value|class=plainlist|{{{Mother|}}}}}
| label14 = Spouse(s)
+
| label15 = {{Infobox label|s=Spouse|p=Spouses|{{{Spouse|}}}}}
| data14 = {{{Spouse|}}}
+
| data15 = {{Infobox value|class=plainlist|{{{Spouse|}}}}}
| label15      = Lover(s)
+
| label16 = {{Infobox label|s=Lover|p=Lovers|{{{Lover|}}}}}
| data15        = {{{Lover|}}}
+
| data16 = {{Infobox value|class=plainlist|{{{Lover|}}}}}
| label16 = Issue
+
| label17 = Issue
| data16 = {{{Issue|}}}
+
| data17 = {{Infobox value|class=plainlist|{{{Issue|}}}}}
  
| label17 = Personal arms
+
| label18 = {{nowrap|Personal arms}}
| data17 = {{{coat-of-arms|}}}
+
| data18 = {{#if:{{{coat-of-arms|}}}|{{{coat-of-arms}}}{{main other|[[Category:Pages with the coat-of-arms parameter]]}}}}
  
| label18 = Book(s)
+
| label19 = {{Infobox label|s=Book|p=Books|{{{Books|}}}}}
| data18 = {{{Books|}}}
+
| data19 = {{Infobox value|class=plainlist|{{{Books|}}}}}
  
 
| data25 = {{#if: {{{TV_series|}}}{{{Played_by|}}}|<hr> }}
 
| data25 = {{#if: {{{TV_series|}}}{{{Played_by|}}}|<hr> }}
Line 52: Line 52:
 
| label27 = {{Nowrap|TV series}}
 
| label27 = {{Nowrap|TV series}}
 
| data27 = {{{TV_series|}}}
 
| data27 = {{{TV_series|}}}
}}</includeonly><noinclude>{{Documentation}}</noinclude>
+
}}{{main other|[[Category:Character pages in alphabetical order]]}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 16:17, 2 April 2023

Template documentation[view] [edit] [history] [purge]
None.svg {{{title}}}
{{{nickname}}} {{{firstname}}} {{{particle}}} {{{lastname}}}
{{{epithet}}}
None.svg
No portrait.svg
{{{image_caption}}}

Alias {{{Alias}}}
Title {{{Title}}}
Allegiance {{{Allegiance}}}
Predecessor {{{Predecessor}}}
Successor {{{Successor}}}
Race {{{Race}}}
Culture {{{Culture}}}
Born {{{Date_of_Birth}}}
{{{Place_of_Birth}}}
Died {{{Date_of_Death}}}
{{{Place_of_Death}}}
Buried {{{Date_of_Burial}}}
{{{Place_of_Burial}}}
Father {{{Father}}}
Mother {{{Mother}}}
Spouse {{{Spouse}}}
Lover {{{Lover}}}
Issue {{{Issue}}}
Personal arms {{{coat}}}
Book {{{Books}}}

Played by {{{Played_by}}}
TV series {{{TV_series}}}

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
  • title
  • nickname
  • firstname
  • particle
  • lastname
  • epithet
Name parts
  • Main title that the character bears
  • Nickname, when it is a main part of the name
  • First name
  • Particle coming before the last name (e.g. "of", "zo", "mo")
  • Last name/house name
  • Epithet/sobriquet, also used for nameless characters (e.g. "the Tall", "A certain man")
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 {{Date|XXX}} to display dates.
Place_of_Birth InterLink to the appropriate [[Location]].
Date_of_Death Use {{Date|XXX}} to display dates.
Place_of_Death InterLink to the appropriate [[Location]].
Date_of_Burial Use {{Date|XXX}} 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