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; | |||
| above = {{{name|''No name provided''}}} {{#if:{{{verified_icon|}}}|<span class="verified-icon">[[File:{{{verified_icon}}}|20px]]</span>}} | | above = {{{name|''No name provided''}}} {{#if:{{{verified_icon|}}}|<span class="verified-icon">[[File:{{{verified_icon}}}|20px]]</span>}} | ||
| subheader = {{{native_name|}}} | | subheader = {{{native_name|}}} | ||
Line 6: | Line 7: | ||
| caption = {{{image_caption|}}} | | caption = {{{image_caption|}}} | ||
| headerstyle = background:#E6E6FA; color:black; font-weight:bold; text-align:center; | |||
| | | header1 = Office | ||
| label2 = Position | |||
| | | data2 = {{{office|N/A}}} of {{{organization|N/A}}} | ||
| | | label3 = Term | ||
| | | data3 = {{{term_start|N/A}}} – {{#if:{{{term_end|}}}|{{{term_end}}}|Present}} | ||
| headerstyle = background:#E6E6FA; color:black; font-weight:bold; text-align:center; | |||
| | | header4 = Personal details | ||
| label5 = Born | |||
| | | data5 = {{#if:{{{birth_date|}}}|{{{birth_date}}}|Unknown}} {{#if:{{{birth_place|}}}|in {{{birth_place}}}|}} | ||
| | | label6 = Nationality | ||
| | | data6 = {{{nationality|Unknown}}} | ||
| | | label7 = Occupation | ||
| | | data7 = {{{occupation|Unknown}}} | ||
| | | label8 = Years active | ||
| | | data8 = {{#if:{{{years_active|}}}|{{{years_active}}} – Present|N/A}} | ||
| | | label9 = Organization | ||
| | | data9 = {{{organization|N/A}}} | ||
| | | label10 = Height | ||
| | | data10 = {{#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|}}}}}} | ||
}} | }} | ||
| | | label11 = Spouse | ||
| | | data11 = {{{spouse|N/A}}} | ||
| | | label12 = Father | ||
| | | data12 = {{{father|N/A}}} | ||
| | | label13 = Awards | ||
| | | data13 = {{{awards|N/A}}} | ||
| | | label14 = Website | ||
| | | data14 = {{#if:{{{website|}}}|[http://{{{website}}} {{{website}}}]|N/A}} | ||
| headerstyle = background:#E6E6FA; color:black; font-weight:bold; text-align:center; | |||
| | | header15 = Signature | ||
| data15 = {{#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:25, 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=]]}} | |
Office | |
Position | of |
Term | – {{#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=]]}} | |
Office | |
Position | of |
Term | – {{#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=]]}} | |
Office | |
Position | of |
Term | – {{#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 = }}