Difference between revisions of "Template:Infobox noble"
Jump to navigation
Jump to search
imported>Jonesey95 (Fix too small font per MOS:FONTSIZE.) |
imported>Primefac (merge with Template:Infobox peer) |
||
| Line 3: | Line 3: | ||
| bodystyle = width: 22.5em; | | bodystyle = width: 22.5em; | ||
| datastyle = text-align: left; | | datastyle = text-align: left; | ||
| − | | abovestyle = background: #{{#switch: {{{1}}} | + | | abovestyle = {{if empty|{{{abovestyle|}}}|background: #{{#switch: {{{1}}} |
| relative = E8E4EF | | relative = E8E4EF | ||
| none = E8E4EF | | none = E8E4EF | ||
| Line 19: | Line 19: | ||
| 000000 | | 000000 | ||
}}; | }}; | ||
| + | }} | ||
| aboveclass = fn | | aboveclass = fn | ||
| − | | above = {{{name< | + | | above = {{Br separated entries |
| + | | 1 = {{#if:{{{honorific prefix|{{{honorific_prefix|{{{honorific-prefix|{{{pre-nominals|}}}}}}}}}}}}|<div class="honorific-prefix" style="font-size: 77%; font-weight: normal; display:inline;">{{{honorific prefix|{{{honorific_prefix|{{{honorific-prefix|{{{pre-nominals|}}}}}}}}}}}}</div>}} | ||
| + | | 2 = <div class="fn" style="display:inline">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}</div> | ||
| + | | 3 = {{#if:{{{honorific suffix|{{{honorific_suffix|{{{honorific-suffix|{{{post-nominals|}}}}}}}}}}}}|<div class="honorific-suffix" style="font-size: 77%; font-weight: normal; display:inline;">{{{honorific suffix|{{{honorific_suffix|{{{honorific-suffix|{{{post-nominals|}}}}}}}}}}}}</div>}} | ||
| + | }} | ||
| subheader = {{{title|}}} | | subheader = {{{title|}}} | ||
| Line 33: | Line 38: | ||
| label3 = [[Coat of arms]] | | label3 = [[Coat of arms]] | ||
| data3 = {{{CoA|}}} | | data3 = {{{CoA|}}} | ||
| − | |||
| label4 = {{if empty|{{{reign-type|}}}|{{#switch:{{{2}}}|consort=Consort|Reign}}}} | | label4 = {{if empty|{{{reign-type|}}}|{{#switch:{{{2}}}|consort=Consort|Reign}}}} | ||
| data4 = {{{reign|}}} | | data4 = {{{reign|}}} | ||
| − | + | | label5 = Tenure | |
| − | | | + | | data5 = {{{tenure|}}} |
| − | | | + | | label6 = {{if empty|{{{pre-type|}}}|Predecessor}} |
| − | + | | data6 = {{{previous|{{{predecessor|{{{preceded by|{{{preceded_by|}}}}}}}}}}}} | |
| − | | | + | | label7 = {{if empty|{{{suc-type|}}}|Successor}} |
| − | | | + | | data7 = {{{successor|{{{succeeded by|{{{succeeded_by|}}}}}}}}} |
| header10 = {{#if: {{{succession|}}} | <span style="height: 4px"> </span>}} | | header10 = {{#if: {{{succession|}}} | <span style="height: 4px"> </span>}} | ||
| Line 49: | Line 53: | ||
{{{full name}}}</div> | {{{full name}}}</div> | ||
}} | }} | ||
| − | |||
| label12 = Native name | | label12 = Native name | ||
| data12 = {{#if:{{{native_name|}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span>}} | | data12 = {{#if:{{{native_name|}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span>}} | ||
| − | |||
| data13 = {{#if: {{{styles|}}}{{{titles|}}}| | | data13 = {{#if: {{{styles|}}}{{{titles|}}}| | ||
<div style="float: right; font-weight: bold;">''[[#Titles and styles|Detail]]''</div>'''Titles and styles'''<div style="width:100%; padding-left:0.5em"> | <div style="float: right; font-weight: bold;">''[[#Titles and styles|Detail]]''</div>'''Titles and styles'''<div style="width:100%; padding-left:0.5em"> | ||
{{#if:{{{styles|}}}|{{{styles}}}|{{{titles|}}}}}</div> | {{#if:{{{styles|}}}|{{{styles}}}|{{{titles|}}}}}</div> | ||
}} | }} | ||
| + | | label14 = Other titles | ||
| + | | data14 = {{{other_titles|}}} | ||
| + | | label15 = Other names | ||
| + | | class15 = nickname | ||
| + | | data15 = {{{other_names|}}} | ||
| + | | label16 = Known for | ||
| + | | data16 = {{{known|{{{known_for|}}}}}} | ||
| + | | label17 = Years active | ||
| + | | data17 = {{{years_active|}}} | ||
| + | | label18 = Born | ||
| + | | data18 = {{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>}}}} | ||
| + | | label19 = Baptised | ||
| + | | data19 = {{br separated entries| {{if empty|{{{christening_date|}}}|{{{date of christening|}}}}} | {{if empty|{{{christening_place|}}}|{{{place of christening|}}}}} }} | ||
| + | | label20 = Died | ||
| + | | data20 = {{br separated entries|{{{death_date|}}}|{{{death_place|}}}}} | ||
| + | | label23 = Cause of death | ||
| + | | data23 = {{{death_cause|}}} | ||
| + | | label24 = Body discovered | ||
| + | | data24 = {{{body_discovered|}}} | ||
| + | | label27 = Buried | ||
| + | | data27 = {{br separated entries| {{if empty|{{{burial_date|}}}|{{{date of burial|}}}}} | {{#if:{{{burial_place|}}}{{{place of burial|}}}{{{resting_place|}}}| <span class="label">{{if empty|{{{burial_place|}}}|{{{place of burial|}}}|{{{resting_place|}}}}}</span> }} | {{{resting_place_coordinates|}}} }} | ||
| + | | label32 = Nationality | ||
| + | | data32 = {{{nationality|}}} | ||
| + | | label33 = Residence | ||
| + | | class33 = label | ||
| + | | data33 = {{{residence|}}} | ||
| + | | label34 = Locality | ||
| + | | data34 = {{{locality|}}} | ||
| + | | label35 = Net worth | ||
| + | | data35 = {{{networth|}}} | ||
| + | | label36 = Wars and battles | ||
| + | | data36 = {{{wars_and_battles|}}} | ||
| + | | label37 = Offices | ||
| + | | data37 = {{{offices|}}} | ||
| + | | label38 = [[{{#if:{{{house-type|}}}|{{{house-type}}}|Nobility}}|{{#if:{{{house-type|}}}|Family|Noble family}}]] | ||
| + | | data38 = {{{noble family|}}} | ||
| + | | label39 = {{if empty|{{{spouse-type|}}}|{{#switch:{{{2}}}|consort=Consort to|{{#switch:{{{1}}}|monarch=Consort|majesty=Consort|Spouse(s)}}}}}} | ||
| + | | data39 = {{{spouse|}}} | ||
| − | | | + | | data40 = {{#if:{{{issue|}}} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
{{#if:{{{issue-link|}}}|<div style="float: right; font-weight: bold;">''[[{{{issue-link}}}|{{#if:{{{issue-pipe|}}}|{{{issue-pipe}}}|Detail}}]]''</div> }} | {{#if:{{{issue-link|}}}|<div style="float: right; font-weight: bold;">''[[{{{issue-link}}}|{{#if:{{{issue-pipe|}}}|{{{issue-pipe}}}|Detail}}]]''</div> }} | ||
'''Issue'''<div style="width:100%; padding-left:0.5em"> | '''Issue'''<div style="width:100%; padding-left:0.5em"> | ||
| Line 82: | Line 104: | ||
}} | }} | ||
| − | | | + | | label50 = {{{heir-type|Heir}}} |
| − | | | + | | data50 = {{{heir|}}} |
| + | |||
| + | | label53 = Parents | ||
| + | | data53 = {{{parents|}}} | ||
| + | |||
| + | | label55 = Father | ||
| + | | data55 = {{{father|}}} | ||
| + | |||
| + | | label56 = Mother | ||
| + | | data56 = {{{mother|}}} | ||
| − | | | + | | label57 = Signature |
| − | | | + | | data57 = {{{signature|}}} |
| − | | | + | | label58 = Religion |
| − | | | + | | data58 = {{{religion|}}} |
| − | | | + | | label59 = Occupation |
| − | | | + | | data59 = {{{occupation|}}} |
| − | | | + | | label60 = Memorials |
| − | | | + | | data60 = {{{memorials|}}} |
| − | | | + | | label61 = Website |
| − | | | + | | data61 = {{{website|{{{url|}}}}}} |
| − | | | + | | header67 = {{#if:{{{footnotes|}}}|Notes}} |
| − | + | | data68 = {{{footnotes|}}} | |
| − | | | + | | data72 = {{{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> | + | | data73 = {{{misc|}}} |
| + | }}{{#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 | abovestyle | alt | birth_date | birth_name | birthname | birth_place | body_discovered | burial_date | burial_place | caption | christening_date | christening_place | CoA | date of burial | date of christening | death_cause | death_date | death_place | father | footnotes | full name | heir | heir-type | honorific prefix | honorific_prefix | honorific-prefix | honorific suffix | honorific_suffix | honorific-suffix | house-type | image | image_size | issue | issue-link | issue-pipe | known | known_for | locality | memorials | misc | module | more | mother | name | nationality | native_name | native_name_lang | net_worth | noble family | occupation | offices | other_names | other_titles | parents | place of burial | place of christening | post-nominals | pre-nominals | pre-type | preceded by | preceded_by | predecessor | previous | reign | reign-type | religion | residence | resting_place | resting_place_coordinates | signature | spouse | spouse-type | styles | suc-type | succeeded by | succeeded_by | succession | successor | tenure | title | titles | url | wars_and_battles | website | years_active }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 23:27, 3 May 2020
| Baptised | Script error: No such module "If empty". Script error: No such module "If empty". |
|---|---|
| Buried | Script error: No such module "If empty". |
[[Category:Infobox templates|Template:Remove first word]]
| This template uses Lua: |
Contents
Usage
Template:Parameter names example
{{Infobox noble|type
| name =
| title =
| image =
| caption =
| alt =
| CoA =
| more = no
| succession =
| reign =
| reign-type =
| predecessor =
| successor =
| suc-type =
| spouse =
| spouse-type =
| issue =
| issue-link =
| issue-pipe =
| full name =
| native_name =
| styles =
| titles =
| noble family =
| house-type =
| father =
| mother =
| birth_name =
| birth_date = <!-- {{Birth date and age|YYYY|MM|DD|df=y}} -->
| birth_place =
| christening_date =
| christening_place =
| death_date = <!-- {{Death date and age|YYYY|MM|DD|YYYY|MM|DD|df=y}} -->
| death_place =
| burial_date =
| burial_place =
| religion =
| occupation =
| memorials =
| website = <!-- {{{URL|example.com}} -->
| module =
}}
If the parameter "house type" is set it alters the display of the label next to the noble "family parameter". Instead of displaying the default "Noble family" ( with a link to the article Nobility), the link is change to whatever the "house type" is set to and the word "Family" is displayed in place of "Noble family". So for example if house-type=Gentry is entered then the label is changed to Family.
Examples
For more examples, see What links here.
Tracking category
See also
- {{Infobox royalty}}
- {{Infobox person}}
| The above documentation is transcluded from Template:Infobox noble/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |