Template:Infobox sp: Difference between revisions
Appearance
Created page with "<includeonly> {{Infobox | above = {{{name|''No name provided''}}} {{#if:{{{verified_icon|}}}|<span class="verified-icon">[[File:{{{verified_icon}}}|20px]]</span>}} | subheader = {{{native_name|}}} | image = {{#if:{{{image|}}}|[[File:{{{image}}}|frameless|upright=1.15|alt={{{name}}}]]}} | caption = {{{image_caption|}}} | header1 = Office | label2 = Position | data2 = {{{office|N/A}}} of {{{organization|N/A}}} | label3 = Term | data3 = {{..." Tags: mobile web edit mobile edit |
No edit summary Tags: mobile web edit mobile edit |
||
Line 5: | Line 5: | ||
| image = {{#if:{{{image|}}}|[[File:{{{image}}}|frameless|upright=1.15|alt={{{name}}}]]}} | | image = {{#if:{{{image|}}}|[[File:{{{image}}}|frameless|upright=1.15|alt={{{name}}}]]}} | ||
| caption = {{{image_caption|}}} | | caption = {{{image_caption|}}} | ||
| | |||
| | ! style="background:#E6E6FA; color:black; text-align:center;" | Office | ||
| | |- | ||
| | | label1 = Position | ||
| | | data1 = {{{office|N/A}}} of {{{organization|N/A}}} | ||
| | | label2 = Term | ||
| | | data2 = {{{term_start|N/A}}} – {{#if:{{{term_end|}}}|{{{term_end}}}|Present}} | ||
| | |||
| | ! style="background:#E6E6FA; color:black; text-align:center;" | Personal details | ||
| | |- | ||
| | | label3 = Born | ||
| | | data3 = {{#if:{{{birth_date|}}}|{{{birth_date}}}|Unknown}} {{#if:{{{birth_place|}}}|in {{{birth_place}}}|}} | ||
| | | label4 = Nationality | ||
| | | data4 = {{{nationality|Unknown}}} | ||
| | | label5 = Occupation | ||
| | | data5 = {{{occupation|Unknown}}} | ||
| | | label6 = Years active | ||
| | | data6 = {{#if:{{{years_active|}}}|{{{years_active}}} – Present|N/A}} | ||
| label7 = Organization | |||
| data7 = {{{organization|N/A}}} | |||
| label8 = Height | |||
| data8 = {{#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|}}}}}} | ||
}} | }} | ||
| | | label9 = Spouse | ||
| | | data9 = {{{spouse|N/A}}} | ||
| | | label10 = Father | ||
| | | data10 = {{{father|N/A}}} | ||
| | | label11 = Awards | ||
| | | data11 = {{{awards|N/A}}} | ||
| | | label12 = Website | ||
| | | data12 = {{#if:{{{website|}}}|[http://{{{website}}} {{{website}}}]|N/A}} | ||
| | |||
| | ! style="background:#E6E6FA; color:black; text-align:center;" | Signature | ||
|- | |||
| data13 = {{#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:16, 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=]]}} ! style="background:#E6E6FA; color:black; text-align:center;" | |
Position | of |
Term | – {{#if:||Present}} ! style="background:#E6E6FA; color:black; text-align:center;" |
Born | {{#if:||Unknown}} {{#if:|in |}} |
Years active | {{#if:| – Present|N/A}} |
Height | {{#if:{Template:Height m} |
}}{{#if: | }}} |
Website | {{#if:|[http:// ]|N/A}} ! style="background:#E6E6FA; color:black; text-align:center;" |
{{#if:|[[File:|150px]]|N/A}} |
{{#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=]]}} ! style="background:#E6E6FA; color:black; text-align:center;" | |
Position | of |
Term | – {{#if:||Present}} ! style="background:#E6E6FA; color:black; text-align:center;" |
Born | {{#if:||Unknown}} {{#if:|in |}} |
Years active | {{#if:| – Present|N/A}} |
Height | {{#if:{Template:Height m} |
}}{{#if: | }}} |
Website | {{#if:|[http:// ]|N/A}} ! style="background:#E6E6FA; color:black; text-align:center;" |
{{#if:|[[File:|150px]]|N/A}} |
{{#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 = }}