Difference between revisions of "Template: Infobox character"

From A Wiki of Ice and Fire
Jump to: navigation, search
(will simple html work?)
(Added predecessor/successor and lovers modules)
(30 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 
<includeonly>{{Infobox  
 
<includeonly>{{Infobox  
| title = <b>{{{Character_name|}}}</b>
+
| 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&nbsp;{{{Date_of_Death}}},&nbsp;at&nbsp;{{{Place_of_Death}}}|In&nbsp;{{{Date_of_Death}}}}}|{{#if:{{{Place_of_Death|}}}|At&nbsp;{{{Place_of_Death}}}|}}|}}
 
| data11 = {{#if:{{{Date_of_Death|}}}|{{#if:{{{Place_of_Death|}}}|In&nbsp;{{{Date_of_Death}}},&nbsp;at&nbsp;{{{Place_of_Death}}}|In&nbsp;{{{Date_of_Death}}}}}|{{#if:{{{Place_of_Death|}}}|At&nbsp;{{{Place_of_Death}}}|}}|}}
| label14 = Spouse
+
| label12 = Spouse(s)
| data14 = {{{Spouse|}}}
+
| data12 = {{{Spouse|}}}
| label15 = Book(s)
+
| label13      = Lover(s)
| data15 = {{{Books|}}}
+
| 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>
 
 
{{Character  <!-- Example show on the right -->
 
| Character_name = Character name
 
| image         = [[Image:No_Portrait.jpg|175px]]
 
| image_caption  = Image caption
 
| Alias          = text
 
| Title          = text
 
| Allegiance    = text
 
| Race          = text
 
| Culture        = text
 
| Spouse        = text
 
| Place_of_Birth = text
 
| Date_of_Birth  = date
 
| Place_of_Death = text
 
| Date_of_Death  = date
 
| Books          = text
 
| coat-of-arms  = COA
 
| Played_by      = text
 
| TV_series      = text
 
}}
 
 
 
===Usage===
 
<pre>{{Infobox character
 
| Character_name =
 
| image          =
 
| image_caption  =
 
| Alias          =
 
| Title          =
 
| Allegiance    =
 
| Race          =
 
| Culture        =
 
| Spouse        =
 
| Place_of_Birth =
 
| Date_of_Birth  =
 
| Place_of_Death =
 
| Date_of_Death  =
 
| Books          =
 
| coat-of-arms  =
 
| Played_by      =
 
| TV_series      =
 
}}</pre>
 
 
 
===Parameters===
 
* Parameters which get no value are not shown when the template used.
 
* you can add multipile values by seperating them with <nowiki>'<br>'</nowiki> tag.
 
 
 
{| class="wikitable"
 
| Character_name|| Character name to display in top header
 
|-
 
| image        || Image of the character.  Use full image syntax, for example ''<nowiki>[[File:example.png|200px|alt=Example alt text]]</nowiki>''.
 
|-
 
| image_caption ||
 
|-
 
| Alias        ||
 
|-
 
| Title        ||
 
|-
 
| Allegiance    || InterLink to the appropriate  ''<nowiki>[[Noble Houses]]</nowiki>''.
 
|-
 
| Race          || ???
 
|-
 
| Culture      || Choose appropriate values from the list of [[:Category:Cultures|Cultures]]
 
|-
 
| Spouse        || InterLink to the appropriate ''<nowiki>[[Characters]]</nowiki>''.
 
|-
 
| Place_of_Birth|| InterLink to the appropriate ''<nowiki>[[Location]]</nowiki>''.
 
|-
 
| Date_of_Birth || Use [[Template:Date|<nowiki>{{Date|XXX}}</nowiki>|]] to display dates.
 
|-
 
| Place_of_Death||
 
|-
 
| Date_of_Death ||
 
|-
 
| Books        || Choose appropriate values from the list of [[:Category:Books|Books]]
 
|-
 
| coat-of-arms  || ??? add Image or description ???
 
|-
 
| Played by    || link to Wikipedia with ''<nowiki>[[w:Article name|Actor name]]</nowiki>''
 
|-
 
| TV_series    ||
 
|}
 
 
 
[[Category:Infobox templates|Character]]</noinclude>
 

Revision as of 14:17, 26 December 2020

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