Template:Infobox sp: Difference between revisions
No edit summary Tags: mobile web edit mobile edit |
No edit summary Tags: mobile web edit mobile edit |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{Infobox | {{Infobox | ||
| abovestyle = background:#efefef; | | abovestyle = background:#efefef; padding:0.3em; font-size: 1.25em; font-weight: bold; text-align: center; | ||
| above | | above = {{{name|''No name provided''}}} {{#if:{{{verified_icon|}}}|<span class="verified-icon">[[File:{{{verified_icon}}}|20px]]</span>}} | ||
| subheader | | subheader = {{{native_name|}}} | ||
| image | | image = {{#if:{{{image|}}}|[[File:{{{image}}}|frameless|upright=1.15|alt={{{name}}}]]}} | ||
| caption | | caption = {{{image_caption|}}} | ||
| headerstyle = background:# | | headerstyle = background:#C3CDE6; color:black; font-weight:bold; text-align:center; | ||
| header1 | | header1 = '''{{{office|N/A}}}''' of the '''[[{{{organization|N/A}}}]]''' | ||
| label2 = '''In office''' | |||
| data2 = {{{term_start|N/A}}} – {{#if:{{{term_end|}}}|{{{term_end}}}|Present}} | |||
| | |||
| | |||
| headerstyle = background:#E6E6FA; color:black; font-weight:bold; text-align:center; | | headerstyle = background:#E6E6FA; color:black; font-weight:bold; text-align:center; | ||
| | | header3 = Personal details | ||
| | | label4 = Born | ||
| | | data4 = {{#if:{{{birth_date|}}}|{{{birth_date}}}|Unknown}} {{#if:{{{birth_place|}}}|in {{{birth_place}}}|}} | ||
| | | label5 = Nationality | ||
| | | data5 = {{{nationality|Unknown}}} | ||
| | | label6 = Occupation | ||
| | | data6 = {{{occupation|Unknown}}} | ||
| | | label7 = Years active | ||
| | | data7 = {{#if:{{{years_active|}}}|{{{years_active}}} – Present|N/A}} | ||
| | | label8 = Organization | ||
| | | data8 = {{{organization|N/A}}} | ||
| | | label9 = Height | ||
| | | data9 = {{#if:{{{height_m|{{{height_cm|}}}}}{{{height_ft|}}}{{{height_in|}}}} | | ||
{{convinfobox|{{{height_m|{{{height_cm|}}}}}}|{{#if:{{{height_m|}}}|m|cm}}|{{{height_ft|}}}|ft|{{{height_in|}}}|in}} | {{convinfobox|{{{height_m|{{{height_cm|}}}}}}|{{#if:{{{height_m|}}}|m|cm}}|{{{height_ft|}}}|ft|{{{height_in|}}}|in}} | ||
}}{{#if:{{{height|}}} | {{infobox person/height|{{{height|}}}}}} | }}{{#if:{{{height|}}} | {{infobox person/height|{{{height|}}}}}} | ||
}} | }} | ||
| | | label10 = Spouse | ||
| | | data10 = {{{spouse|N/A}}} | ||
| | | label11 = Father | ||
| | | data11 = {{{father|N/A}}} | ||
| | | label12 = Awards | ||
| | | data12 = {{{awards|N/A}}} | ||
| | | label13 = Website | ||
| | | data13 = {{#if:{{{website|}}}|[http://{{{website}}} {{{website}}}]|N/A}} | ||
| headerstyle = background:#E6E6FA; color:black; font-weight:bold; text-align:center; | | headerstyle = background:#E6E6FA; color:black; font-weight:bold; text-align:center; | ||
| | | header14 = Signature | ||
| | | data14 = {{#if:{{{signature|}}}|[[File:{{{signature}}}|150px]]|N/A}} | ||
}} | }} | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
== Usage == | |||
To use this template, copy and paste the following code into the article: | |||
```wiki | |||
{{Infobox sp | |||
| name = | |||
| verified_icon = | |||
| native_name = | |||
| image = | |||
| image_caption = | |||
| office = | |||
| organization = | |||
| term_start = | |||
| term_end = | |||
| birth_date = | |||
| birth_place = | |||
| nationality = | |||
| occupation = | |||
| years_active = | |||
| height_m = | |||
| height_cm = | |||
| height_ft = | |||
| height_in = | |||
| height = | |||
| spouse = | |||
| father = | |||
| awards = | |||
| website = | |||
| signature = | |||
}} | |||
== Usage == | == Usage == | ||
To use this template, copy and paste the following code into the article: | To use this template, copy and paste the following code into the article: |
Revision as of 04:29, 4 March 2025
Usage
To use this template, copy and paste the following code into the article:
```wiki
<templatestyles src="Module:Infobox/styles.css"></templatestyles>
{{#if:| | }}|
---|---|
{{#if:|[[File:|frameless|upright=1.15|alt=]]}} | |
' of the [[]]' | |
In office | – {{#if:||Present}} |
Personal details | |
Born | {{#if:||Unknown}} {{#if:|in |}} |
Years active | {{#if:| – Present|N/A}} |
Height | {{#if:{Template:Height m} |
}}{{#if: | }}} |
Website | {{#if:|[http:// ]|N/A}} |
Signature |
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template|Template | template | other }} }}
| template = {{#ifeq:Infobox sp|Infobox||{{#ifeq:Template:Str left|Infobox|[[Category:Infobox templates|Template:Remove first word]]}}}} | other | #default = }}
Usage
To use this template, copy and paste the following code into the article:
```wiki
<templatestyles src="Module:Infobox/styles.css"></templatestyles>
{{#if:| | }}|
---|---|
{{#if:|[[File:|frameless|upright=1.15|alt=]]}} | |
' of the [[]]' | |
In office | – {{#if:||Present}} |
Personal details | |
Born | {{#if:||Unknown}} {{#if:|in |}} |
Years active | {{#if:| – Present|N/A}} |
Height | {{#if:{Template:Height m} |
}}{{#if: | }}} |
Website | {{#if:|[http:// ]|N/A}} |
Signature |
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template|Template | template | other }} }}
| template = {{#ifeq:Infobox sp|Infobox||{{#ifeq:Template:Str left|Infobox|[[Category:Infobox templates|Template:Remove first word]]}}}} | other | #default = }}
Usage
To use this template, copy and paste the following code into the article:
```wiki
<templatestyles src="Module:Infobox/styles.css"></templatestyles>
{{#if:| | }}|
---|---|
{{#if:|[[File:|frameless|upright=1.15|alt=]]}} | |
' of the [[]]' | |
In office | – {{#if:||Present}} |
Personal details | |
Born | {{#if:||Unknown}} {{#if:|in |}} |
Years active | {{#if:| – Present|N/A}} |
Height | {{#if:{Template:Height m} |
}}{{#if: | }}} |
Website | {{#if:|[http:// ]|N/A}} |
Signature |
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template|Template | template | other }} }}
| template = {{#ifeq:Infobox sp|Infobox||{{#ifeq:Template:Str left|Infobox|[[Category:Infobox templates|Template:Remove first word]]}}}} | other | #default = }}
Usage
To use this template, copy and paste the following code into the article:
```wiki
<templatestyles src="Module:Infobox/styles.css"></templatestyles>
{{#if:| | }}|
---|---|
{{#if:|[[File:|frameless|upright=1.15|alt=]]}} | |
' of the [[]]' | |
In office | – {{#if:||Present}} |
Personal details | |
Born | {{#if:||Unknown}} {{#if:|in |}} |
Years active | {{#if:| – Present|N/A}} |
Height | {{#if:{Template:Height m} |
}}{{#if: | }}} |
Website | {{#if:|[http:// ]|N/A}} |
Signature |
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template|Template | template | other }} }}
| template = {{#ifeq:Infobox sp|Infobox||{{#ifeq:Template:Str left|Infobox|[[Category:Infobox templates|Template:Remove first word]]}}}} | other | #default = }}