Template:Infobox noble: Difference between revisions

Jump to navigation Jump to search
old>Ghant
mNo edit summary
 
m (1 revision imported)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{Infobox
{{infobox
| title = {{#if:{{{noble_name|}}}|| {{{name|{{PAGENAME}}}}} }}
| bodyclass  = vcard
| titlestyle = {{{titlestyle|}}}
| bodystyle  = width: 22.5em;
| above = {{{noble_name|}}}
| datastyle  = text-align: left;
| abovestyle   = {{{abovestyle|background: #E0E8FF; text-align:center;}}}
| abovestyle = background: #{{#switch: {{{1}}}
| relative  = E8E4EF
| none      = E8E4EF
| 99BADD
}}; color: #{{#switch: {{{1}}}
| relative = 553377
| none    = 553377
| highness = 005566
| lesser  = 005566
| majesty  = 000066
| monarch  = 000066
| prince  = 000000
| princess = 000000
| royal   = 000000
| 000000
}};


| image = {{{image|[[Image:No_image.jpg|200px]]}}}
| aboveclass = fn
| caption = {{{image_caption|}}}
| above      = {{{name<noinclude>|</noinclude>}}}
| imagestyle = {{{imagestyle|}}}


<!--
| subheader = {{{title|}}}
| bodyclass =
| titleclass    =
| aboveclass =
| imageclass =
-->


<!-- Biographical Information Section -->
| image  = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}}}
| data1 = <div style="width:100%;background-color:#B0C4DE;">'''Biographical Information'''</div>
| caption = {{{caption|}}}
| data2        = {{#IF:{{{primarytitle|}}}|'''{{{primarytitle|}}}'''}}
| label3 = Reign
| data3 = {{{reign|}}}
| label4 = Tenure
| data4 = {{{tenure|}}}
| label5 = Allegiance
| data5 = {{{allegiance|}}}
| label6 = Other Titles
| data6 = {{{othertitles|}}}
| data7 = <div style="width:100%;background-color:#B0C4DE;"></div>
| label8 = Full Name
| data8 = {{{fullname|}}}
| label9 = Alias
| data9 = {{{alias|}}}


| label10 = Born
| headerstyle = background: #EEEEEE;
| data10 = {{{dateofbirth|}}}{{#IF:{{{placeofbirth|}}}|<br>{{{placeofbirth}}}|}}
| header1    = {{#if: {{{succession|}}} | {{{succession}}} {{#switch:{{{more}}}|no=|{{#switch:{{{1}}}|monarch={{small|{{nobold|''[[Style of the British sovereign#List of changes to the royal style|(more...)]]''}}}}|majesty={{small|{{nobold|''[[Style of the British sovereign#List of changes to the royal style|(more...)]]''}}}} }} }} }}
| label11 = Died
| data11 = {{{dateofdeath|}}}{{#IF:{{{placeofdeath|}}}|<br>{{{placeofdeath}}}|}}
| label12 = Buried
| data12 = {{{dateofburial|}}}{{#IF:{{{placeofburial|}}}|<br>{{{placeofburial}}}|}}
| label13 = Race
| data13 = {{{race|}}}
| label14 = Culture
| data14 = {{{culture|}}}
| label15      = Religion
| data15        = {{{religion|}}}


<!-- Family Section -->
| label3 = [[Coat of arms]]
| data17 = {{#if: {{{house|}}}{{{predecessor|}}}{{{heir|}}}{{{successor|}}} {{{queen|}}}{{{consort|}}}{{{spouse|}}}{{{issue|}}} {{{father|}}}{{{mother|}}}| <div style="width:100%;background-color:#B0C4DE;">'''Family'''</div>}}
| data3  = {{{CoA|}}}
| label27 = Father
| data27 = {{{father|}}}
| label28 = Mother
| data28 = {{{mother|}}}


| label19 = [[wikipedia:Dynasty|House]]
| label4 = {{if empty|{{{reign-type|}}}|{{#switch:{{{2}}}|consort=Consort|Reign}}}}
| data19 = {{{house|}}}
| data4  = {{{reign|}}}
| label20 = Predecessor
| data20 = {{{predecessor|}}}
| label21 = Heir
| data21 = {{{heir|}}}
| label22 = Successor
| data22 = {{{successor|}}}


| label23 = Queen
| label5 = {{if empty|{{{pre-type|}}}|Predecessor}}
| data23 = {{{queen|}}}
| data5  = {{{predecessor|}}}
| label24 = Consort
| data24 = {{{consort|}}}
| label25 = Spouse
| data25 = {{{spouse}}}
| label26 = Issue
| data26 = {{{issue|}}}


| data30 = {{{coat-of-arms|}}}
| label6 = {{if empty|{{{suc-type|}}}|Successor}}
| data6  = {{{successor|}}}


}}</includeonly><noinclude>
| header10 = {{#if: {{{succession|}}} | <span style="height: 4px">&#32;</span>}}


<!-- Example -->
| data11  = {{#if: {{{full name|}}} |
{{Infobox noble
'''Full name'''<div class="nickname" style="width:100%; padding-left:0.5em"><!-- "nickname" is the correct parameter value for hCard -->
| name         = [[file:Bleeding Roses.png|50px|left]]<font size=4>'''Malibar of Dakmoor'''[[File:Bleeding Roses.png|50px|right]]<br /><small>'''King of Dakmoor'''</br>'''''Lord Paramount of Ghant'''''</small>
{{{full name}}}</div>
| image        = [[File:MalibarChess.jpg|300px]]
| image_caption = Malibar, King of Dakmoor
| primarytitle = King of Dakmoor
| tenure = 1993 - Present
| allegiance = [[House Gentry]] of [[Ghish]]
| othertitles = Lord Paramount of Ghant<br>Hand of the Throne<br>Warden of the East<br>Lord of Dakar
| alias        =
| fullname = Malibar Nymeros Dakmaran
| predecessor = Miraxes Dakmaran
| successor =
| heir = Martin of Dakmoor
| spouse = [[Elizabeth Mutu]]<br>Margarethe of Vorindun
| issue = [[Sophia of Dakmoor]]<br>[[Martin of Dakmoor]]<br>[[Michael of Dakmoor]]
| house        = [[House Dakmaran]] of Dakar
| father = Miraxes of Dakmoor
| mother = [[Isabella Orinbere]]
| dateofbirth = 1963
| placeofbirth =
| dateofdeath =
| placeofdeath =
| dateofburial =
| placeofburial =
| race          = Ghantish
| culture = Ghantish
| religion      = Church of Ghant
| coat-of-arms =
|-
}}
}}


===Usage===
| label12 = Native name
<pre>{{Infobox Noble
| data12  = {{#if:{{{native_name|}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span>}}
| name         =
 
| image        =  
| data13  = {{#if: {{{styles|}}}{{{titles|}}}|
| image_caption =
<div style="float: right; font-weight: bold;">{{small|''[[#Titles and styles|Detail]]''}}</div>'''Titles and styles'''<div style="width:100%; padding-left:0.5em">
| primarytitle =  
{{#if:{{{styles|}}}|{{{styles}}}|{{{titles|}}}}}</div>
| reign        =
| tenure =
| allegiance =
| othertitles =
| alias        =
| fullname =
| predecessor =
| successor =
| heir =
| spouse =
| issue =
| house        =
| father =
| mother =
| dateofbirth =
| placeofbirth =
| dateofdeath =
| placeofdeath =
| dateofburial =
| placeofburial =
| race          =
| culture =
| religion      =
| coat-of-arms =
}}
}}
</pre>


Note:Parameters which assigned no value are not shown when the template is used.<br />
| label14 = Born
you can see a preview of the template with all of it's fields on your right side.
| data14  = {{Br separated entries|1={{#if:{{{birth_name|{{{birthname|}}}}}}|<span class="nickname">{{{birth_name|{{{birthname|}}}}}}</span>}}|2={{{birth_date|}}}|3={{#if:{{{birth_place|}}}|<span class="birthplace">{{{birth_place|}}}</span>}}}}
 
| label15 = Baptised
| data15  = {{br separated entries| {{if empty|{{{christening_date|}}}|{{{date of christening|}}}}} | {{if empty|{{{christening_place|}}}|{{{place of christening|}}}}} }}
 
| label16 = Died
| data16  = {{br separated entries|{{{death_date|}}}|{{{death_place|}}}}}
 
| label17 = Buried
| data17  = {{br separated entries| {{if empty|{{{burial_date|}}}|{{{date of burial|}}}}} | {{#if:{{{burial_place|}}}{{{place of burial|}}}| <span class="label">{{if empty|{{{burial_place|}}}|{{{place of burial|}}}}}</span> }} | {{{resting_place_coordinates|}}} }}
 
| label18 = [[{{#if:{{{house-type|}}}|{{{house-type}}}|Nobility}}|{{#if:{{{house-type|}}}|Family|Noble family}}]]
| data18  = {{{noble family|}}}
 
| label19 = {{if empty|{{{spouse-type|}}}|{{#switch:{{{2}}}|consort=Consort to|{{#switch:{{{1}}}|monarch=Consort|majesty=Consort|Spouse(s)}}}}}}
| data19  = {{{spouse|}}}
 
| data20  = {{#if:{{{issue|}}} |
{{#if:{{{issue-link|}}}|<div style="float: right; font-weight: bold;">{{small|''[[{{{issue-link}}}|{{#if:{{{issue-pipe|}}}|{{{issue-pipe}}}|Detail}}]]''}}</div> }}
'''Issue'''<div style="width:100%; padding-left:0.5em">
{{{issue|}}}</div>
}}
 
| label25 = Father
| data25  = {{{father|}}}
 
| label26 = Mother
| data26  = {{{mother|}}}
 
| label27 = Signature
| data27  = {{{signature|}}}
 
| label28 = Religion
| data28  = {{{religion|}}}
 
| label29 = Occupation
| data29  = {{{occupation|}}}
 
| label30 = Memorials
| data30  = {{{memorials|}}}
 
| label31 = Website
| data31  = {{{website|{{{url|}}}}}}


[[Category:Infobox templates|Noble]]</noinclude>
| data32  = {{{module|}}}
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox noble with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox noble]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | 3 | alt | birth_date | birth_name | birthname | birth_place | burial_date | burial_place | caption | christening_date | christening_place | CoA | date of burial | date of christening | death_date | death_place | father | full name | house-type | image | image_size | issue | issue-link | issue-pipe | memorials | module | more | mother | name | native_name | native_name_lang | noble family | occupation | place of burial | place of christening | pre-type | predecessor | reign | reign-type | religion | resting_place_coordinates | signature | spouse | spouse-type | styles | suc-type | succession | successor | title | titles | url | website }}<noinclude>
{{documentation}}
</noinclude>

Latest revision as of 17:41, 25 February 2019