Difference between revisions of "Template:Infobox epic character"

From blackwiki
Jump to navigation Jump to search
imported>Capankajsmilyo
(Parents)
imported>Ms Sarah Welch
(remove wikidata)
Line 6: Line 6:
  
 
| subheader = {{#ifeq:{{lc:{{{embed}}}}}|yes||{{#if:{{{native_name|}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span>}}}}
 
| subheader = {{#ifeq:{{lc:{{{embed}}}}}|yes||{{#if:{{{native_name|}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span>}}}}
 
| subheader2 = {{#if:{{#invoke:Wikidata|getValue|P1441|FETCH_WIKIDATA}}{{{epic|}}}|''{{#invoke:Wikidata|getValue|P1441|{{{epic|FETCH_WIKIDATA}}}}}'' character}}
 
 
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:Wikidata|getValue|P18|{{{image|FETCH_WIKIDATA}}}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}
 
|caption      = {{{caption|}}}
 
  
 
|headerstyle  = background: {{ifempty|{{{color|}}}|{{{colour|}}}|#DEDEE2}}; {{#if:{{{color|}}}{{{colour|}}}|color: {{Greater color contrast ratio|{{ifempty|{{{color|}}}|{{{colour|}}}}}}};}}
 
|headerstyle  = background: {{ifempty|{{{color|}}}|{{{colour|}}}|#DEDEE2}}; {{#if:{{{color|}}}{{{colour|}}}|color: {{Greater color contrast ratio|{{ifempty|{{{color|}}}|{{{colour|}}}}}}};}}
Line 24: Line 19:
 
|label7 = Other texts
 
|label7 = Other texts
 
|data7 = {{{other_texts|}}}
 
|data7 = {{{other_texts|}}}
 
|header8 = {{#if:{{{title|}}}{{{kingdom|}}}{{{predecessor|}}}|{{{title|}}} of {{{kingdom|}}}}}
 
<!--|header8 = {{#invoke:Wikidata|getValue|P39|FETCH_WIKIDATA}}{{#invoke:WikidataIB|getQualifierValue|P39|qual=P642||fetchwikidata=ALL}}-->
 
  
 
|label9 = Army of
 
|label9 = Army of
Line 36: Line 28:
 
|label11 = Successor
 
|label11 = Successor
 
|data11 = {{{successor|}}}
 
|data11 = {{{successor|}}}
 
|label12 = Teacher(s)
 
|data12 = {{#invoke:Wikidata|getValue|P1066|{{{teachers|FETCH_WIKIDATA}}}}}
 
 
|label13 = Disciple(s)
 
|data13 = {{#invoke:Wikidata|getValue|P802|{{{disciples|FETCH_WIKIDATA}}}}}
 
 
|header20  = {{#if:{{{spouse|}}}{{{children|}}}{{{father|}}}{{{mother|}}}{{{birth_place|}}}{{{dynasty|}}}{{#invoke:Wikidata|getValue|P19|FETCH_WIKIDATA}}{{#invoke:Wikidata|getValue|P20|FETCH_WIKIDATA}}{{#invoke:Wikidata|getValue|P22|FETCH_WIKIDATA}}{{#invoke:Wikidata|getValue|P25|FETCH_WIKIDATA}}{{#invoke:Wikidata|getValue|P26|FETCH_WIKIDATA}}{{#invoke:Wikidata|getValue|P40|FETCH_WIKIDATA}}{{#invoke:Wikidata|getValue|P53|FETCH_WIKIDATA}}{{#invoke:Wikidata|getValue|P69|FETCH_WIKIDATA}}{{#invoke:Wikidata|getValue|P3373|FETCH_WIKIDATA}}|Personal Information}}
 
 
|label21  = Born
 
|data21  = {{#invoke:Wikidata|getValue|P19|{{{birth_place|FETCH_WIKIDATA}}}}}
 
 
|label22  = Died
 
|data22  = {{#invoke:Wikidata|getValue|P20|{{{death_place|FETCH_WIKIDATA}}}}}
 
 
|label23  = Spouse(s)
 
|data23  = {{#invoke:Wikidata|getValue|P26|{{{spouse|FETCH_WIKIDATA}}}}}
 
 
|label24  = Children
 
|data24  = {{#invoke:Wikidata|getValue|P40|{{{children|FETCH_WIKIDATA}}}}}
 
  
 
| label29 = Parent(s)
 
| label29 = Parent(s)
 
|  data29 = {{#if:{{{parents|}}}
 
|  data29 = {{#if:{{{parents|}}}
 
  |{{{parents|}}}
 
  |{{{parents|}}}
|{{unbulleted list
 
    |1={{#if:{{#invoke:Wikidata|getValue|P22|{{{father|FETCH_WIKIDATA}}}}}|{{#invoke:Wikidata|getValue|P22|{{{father|FETCH_WIKIDATA}}}}} (father)}}
 
    |2={{#if:{{#invoke:Wikidata|getValue|P25|{{{mother|FETCH_WIKIDATA}}}}}|{{#invoke:Wikidata|getValue|P25|{{{mother|FETCH_WIKIDATA}}}}} (mother)}}
 
  }}
 
 
  }}
 
  }}
 
|label27 = Sibling(s)
 
|data27 = {{#invoke:Wikidata|getValue|P3373|{{{siblings|FETCH_WIKIDATA}}}}}
 
<!--
 
|label35  = Occupation
 
|data35  = {{#invoke:Wikidata|getValue|P106|{{{occupation|FETCH_WIKIDATA}}}}}
 
-->
 
|label37 = Dynasty
 
|data37 = {{#invoke:Wikidata|getValue|P53|{{{dynasty|FETCH_WIKIDATA}}}}}
 
 
|label38 = Education
 
|data38 = {{#invoke:Wikidata|getValue|P69|{{{education|FETCH_WIKIDATA}}}}}
 
 
|label39 = Weapon(s)
 
|data39 = {{#invoke:Wikidata|getValue|P520|{{{weapon|FETCH_WIKIDATA}}}}}
 
  
 
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox epic character with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox epic character]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | birth_place | caption | children | death_place | disciples | dynasty | education | epic | father | image | kingdom |  mother | other_texts | parents | predecessor | race | resemblance |  spouse | successor | teachers | title }}{{#if:{{{children|}}}{{{dynasty|}}}{{{education|}}}{{{father|}}}{{{mother|}}}{{{spouse|}}}|[[Category:Pages using infobox epic character with wikidata params]]}}<includeonly>{{#ifeq:{{{child|}}}|yes||{{Wikidata image|1={{{image|}}}|2={{{nocat_wdimage|}}}}}}}</includeonly><noinclude>
 
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox epic character with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox epic character]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | birth_place | caption | children | death_place | disciples | dynasty | education | epic | father | image | kingdom |  mother | other_texts | parents | predecessor | race | resemblance |  spouse | successor | teachers | title }}{{#if:{{{children|}}}{{{dynasty|}}}{{{education|}}}{{{father|}}}{{{mother|}}}{{{spouse|}}}|[[Category:Pages using infobox epic character with wikidata params]]}}<includeonly>{{#ifeq:{{{child|}}}|yes||{{Wikidata image|1={{{image|}}}|2={{{nocat_wdimage|}}}}}}}</includeonly><noinclude>
 
{{Documentation}}</noinclude>
 
{{Documentation}}</noinclude>

Revision as of 13:26, 27 April 2017

Script error: No such module "If empty".

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[create]