Template:Infobox pretender: Difference between revisions
Plastikspork (talk | contribs) colour contrast |
m fix data typo |
||
(29 intermediate revisions by 11 users not shown) | |||
Line 1: | Line 1: | ||
{{ |
{{infobox |
||
| child = {{#ifeq:{{lc:{{{embed|}}}}}|yes|yes}} |
|||
| bodyclass |
| bodyclass = vcard |
||
| subheader = <includeonly>'''Pretender'''</includeonly> |
| subheader = {{#ifeq:{{Yesno|{{{embed|no}}}}}|yes|{{#if:{{{header-color|}}}|<hr style="background-color: {{{header-color|transparent}}}; height: 3px;" />|}}<div style="text-align: center;">'''Pretender information'''</div>|<includeonly>'''Pretender'''</includeonly>}} |
||
| subheaderstyle = background-color: #2554C7; color: white |
| subheaderstyle = background-color: {{#ifeq:{{Yesno|{{{embed|no}}}}}|yes|lavender|#2554C7}}; color: {{#ifeq:{{Yesno|{{{embed|no}}}}}|yes|black|white}}; |
||
| above = {{{name|{{{English name|<includeonly>{{ |
| above = {{{name|{{{English name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}}}} |
||
| aboveclass = fn |
| aboveclass = fn |
||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}|suppressplaceholder=yes}} |
|||
⚫ | |||
| caption = {{{caption|}}} |
| caption = {{{caption|}}} |
||
| label1 = Born |
| label1 = Born |
||
| data1 = {{br separated entries| |
| data1 = {{br separated entries| |
||
{{#if: {{{birth_name|}}} | {{{birth_name}}} }} | |
|||
{{#if: {{{birth_date|}}} | {{{birth_date}}} }} | |
|||
{{#if: {{{birthplace|{{{birth_place|}}}}}} | {{{birthplace|{{{birth_place}}}}}} }} |
|||
}} |
|||
| label2 = Died |
| label2 = Died |
||
Line 35: | Line 40: | ||
| data8 = {{{king|}}} |
| data8 = {{{king|}}} |
||
| label9 = Connection with |
| label9 = Connection with last monarch |
||
| data9 = {{{ |
| data9 = {{{relationship_with_last_monarch|}}} |
||
| label10 = |
| label10 = Connection with |
||
| data10 = {{{ |
| data10 = {{{relationship|}}} |
||
| label11 = |
| label11 = Royal House |
||
| data11 = {{{ |
| data11 = {{{house|}}} |
||
| label12 = |
| label12 = Father |
||
| data12 = {{{ |
| data12 = {{{father|}}} |
||
| label13 = |
| label13 = Mother |
||
| data13 = {{{ |
| data13 = {{{mother|}}} |
||
| label14 = |
| label14 = Spouse |
||
| data14 = |
| data14 = {{{spouse|}}} |
||
| label15 = |
| label15 = Children |
||
| data15 = {{{ |
| data15 = {{{children|}}} |
||
| label16 = |
| label16 = Siblings |
||
| data16 = {{{ |
| data16 = {{{siblings|}}} |
||
| label17 = Predecessor |
|||
| data17 = {{{predecessor|}}} |
|||
| label18 = Successor |
|||
⚫ | |||
| label19 = Religion |
|||
| data19 = {{{religion|}}} |
|||
| label20 = {{#if:{{{signature_type|}}}| {{{signature_type}}} | Signature }} |
|||
| data20 = {{#if:{{{signature|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{signature|}}}|size=125px|class=notpageimage|alt={{{signature_alt|}}}|title={{{name<includeonly>|{{PAGENAMEBASE}}</includeonly>}}}'s signature}}}} |
|||
| below = {{{footnotes|}}} |
| below = {{{footnotes|}}} |
||
| data21 = {{{module|}}} |
|||
}}<noinclude> |
}}<noinclude> |
||
{{documentation}} |
{{documentation}} |
Latest revision as of 15:41, 4 February 2024
The design and content of biographical infoboxes must follow Wikipedia's verifiability policy, as well as infobox and biographical style guideline. All content displayed in this template must adhere to the biographies of living persons policy if applicable. Unsourced or poorly sourced contentious material must be removed immediately from the article and its infobox, especially if potentially libellous. |
This template uses Lua: |
Usage
[edit]{{{name}}} | |
---|---|
Pretender | |
[[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}|upright=1]] | |
Born | {{{birth_date}}} {{{birth_place}}} |
Died | {{{death_date}}} {{{death_place}}} |
Regnal name claimed | {{{regnal}}} |
Title(s) | {{{title}}} |
Throne(s) claimed | {{{throne}}} |
Pretend from | {{{pretend from}}} |
Monarchy abolished | {{{year}}} |
Last monarch | {{{king}}} |
Connection with | {{{relationship}}} |
Royal House | {{{house}}} |
Father | {{{father}}} |
Mother | {{{mother}}} |
Spouse | {{{spouse}}} |
Children | {{{children}}} |
Predecessor | {{{predecessor}}} |
Successor | {{{successor}}} |
{{{footnotes}}} |
{{Infobox pretender
| name =
| image =
| birth_date =
| birth_place =
| death_date =
| death_place =
| regnal =
| title =
| throne =
| pretend from =
| year =
| king =
| relationship =
| house =
| father =
| mother =
| spouse =
| children =
| predecessor =
| successor =
| signature =
| footnotes =
}}
Microformat
[edit]The HTML markup produced by this template includes an hCard microformat, which makes the person's details parsable by computers, either acting automatically to catalogue articles across Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book or database. For more information about the use of microformats on Wikipedia, please see the microformat project.
Sub-templates
[edit]Date-of-birth ("bday") information will only be included in the microformat if {{birth date}}, or {{birth date and age}} are used in the infobox. (Do not use these if the date is before 1583). Be cautious about using these if the person is still living, per WP:DOB.
To include a URL, use {{URL}}.
Please do not remove instances of these sub-templates.
Classes
[edit]hCard uses HTML classes including:
- adr
- agent
- bday
- birthplace
- category
- country-name
- deathdate
- deathplace
- extended-address
- family-name
- fn (required)
- given-name
- honorific-prefix
- honorific-suffix
- label
- locality
- n
- nickname
- note
- org
- role
- url
- vcard
Please do not rename or remove these classes nor collapse nested elements which use them.