Template:Infobox person: Difference between revisions
Content added Content deleted
(update: imageclass = {{image class names|{{{image}}}}}) |
(de-cruft. all this extra code isn't worth it when the doc page is where the template should be shown and not the main template page) |
||
Line 1: | Line 1: | ||
{{ infobox |
|||
| bodyclass = biography vcard |
|||
-->{{Infobox |
|||
| bodystyle = width:{{#if:{{{box_width|}}}|{{{box_width}}} |22em}}; font-size:95%; text-align:left; |
|||
|bodyclass = biography vcard |
|||
| above = '''{{{name|{{PAGENAME}}}}}''' |
|||
|bodystyle = width:{{#if:{{{box_width|}}} |{{{box_width}}} |22em}}; font-size:95%; text-align:left; |
|||
| aboveclass = fn |
|||
|above = '''{{{name|{{PAGENAME}}}}}''' |
|||
| abovestyle = text-align:center; font-size:125%; |
|||
|aboveclass = fn |
|||
| image = {{#if:{{{image|}}}|[[Image:{{{image}}}|{{#if:{{{image_size|{{{imagesize|}}}}}}|{{{image_size|{{{imagesize}}}}}}|225px}}]]}} |
|||
|abovestyle = text-align:center; font-size:125%; |
|||
| |
| imageclass = {{image class names|{{{image}}}}} |
||
| imagestyle = padding:4pt; line-height:1.25em; text-align:center; font-size:8pt; |
|||
| [[Image:{{{image}}}|<!-- |
|||
| caption = <div style="padding-top:2pt;">{{{caption|}}}</div> |
|||
-->{{#if:{{{image_size|{{{imagesize|}}}}}} |
|||
| labelstyle = padding:0.2em 1.0em 0.2em 0.2em; background:transparent; line-height:1.2em; text-align:left; font-size:90%; |
|||
|{{{image_size|{{{imagesize}}}}}} |225px}}<!-- |
|||
| datastyle = padding:0.2em; line-height:1.3em; vertical-align:middle; font-size:90%; |
|||
-->]]<!-- |
|||
-->}} |
|||
|imageclass = {{image class names|{{{image}}}}} |
|||
|imagestyle = padding:4pt; line-height:1.25em; text-align:center; font-size:8pt; |
|||
|caption = <div style="padding-top:2pt;">{{{caption<includeonly>|</includeonly>}}}</div> |
|||
|labelstyle = padding:0.2em 1.0em 0.2em 0.2em; background:transparent; line-height:1.2em; text-align:left; font-size:90%; |
|||
|datastyle = padding:0.2em; line-height:1.3em; vertical-align:middle; font-size:90%; |
|||
|label1 = {{#if:{{{birth_name |
| label1 = {{#if:{{{birth_name|}}}{{{birth_date|}}}{{{birth_place|}}}|Born}} |
||
| data1 = {{#if:{{{birth_name|}}}|{{{birth_name}}}<br />}}{{#if:{{{birth_date|}}} |{{{birth_date}}}<br />}}{{{birth_place|}}} |
|||
| label2 = {{#if:{{{death_date|}}}{{{death_place|}}}|Died }} |
|||
| Born }} |
|||
| |
| data2 = {{#if:{{{death_date|}}}|{{{death_date}}}<br />}}{{{death_place|}}} |
||
| label3 = Cause of death |
|||
-->{{#if:{{{birth_date<includeonly>|</includeonly>}}} |{{{birth_date}}}<br/> }}<!-- |
|||
| data3 = {{{death_cause|}}} |
|||
| label4 = Burial place |
|||
| class4 = label |
|||
| data4 = {{{resting_place|}}}{{#if:{{{resting_place_coordinates|}}}|<br />{{{resting_place_coordinates}}} }} |
|||
| label5 = Residence |
|||
| class5 = label |
|||
| data5 = {{{residence|}}} |
|||
| label6 = Nationality |
|||
| data6 = {{{nationality|}}} |
|||
| label7 = Other names |
|||
| class7 = nickname |
|||
| data7 = {{{other_names|}}} |
|||
| label8 = Education |
|||
| data8 = {{{education|}}} |
|||
| label9 = Alma mater |
|||
| data9 = {{{alma_mater|}}} |
|||
| label10 = Occupation |
|||
| data10 = {{{occupation|}}} |
|||
| label11 = Employers |
|||
| data11 = {{{employer|}}} |
|||
| label12 = Home town |
|||
| data12 = {{{home_town|}}} |
|||
| label13 = Title |
|||
| data13 = {{{title|}}} |
|||
| label14 = Salary |
|||
| data14 = {{{salary|}}} |
|||
| label15 = Net worth |
|||
| data15 = {{{networth|}}} |
|||
| label16 = Height |
|||
| data16 = {{{height|}}} |
|||
| label17 = Weight |
|||
| data17 = {{{weight|}}} |
|||
| label18 = Known for |
|||
| data18 = {{{known|{{{known_for|}}}}}} |
|||
| label19 = Term |
|||
| data19 = {{{term|}}} |
|||
| label20 = Predecessor |
|||
| data20 = {{{predecessor|}}} |
|||
| label21 = Successor |
|||
| data21 = {{{successor|}}} |
|||
| label22 = Political party |
|||
| data22 = {{{party|}}} |
|||
| label23 = Board member of |
|||
| data23 = {{{boards|}}} |
|||
| label24 = Religious beliefs |
|||
| data24 = {{{religion|}}} |
|||
| label25 = Spouse |
|||
| data25 = {{{spouse|}}} |
|||
| label26 = Partner |
|||
| data26 = {{{partner|}}} |
|||
| label27 = Children |
|||
| data27 = {{{children|}}} |
|||
| label28 = Parents |
|||
| data28 = {{{parents|}}} |
|||
| label29 = Relatives |
|||
| data29 = {{{relations|{{{relatives|}}}}}} |
|||
| data30 = {{#if:{{{signature|}}}|'''Signature'''<div style="padding-top:0.3em;">[[Image:{{{signature}}}|128px]]</div>}} |
|||
|label2 = {{#if:{{{death_date<includeonly>|</includeonly>}}}{{{death_place|}}} |Died }} |
|||
| |
| data31 = {{#if:{{{website|}}}| '''Website'''<br />{{{website}}} }} |
||
| data32 = {{#if:{{{footnotes|}}}|<div style="text-align:left;"><div style="border-top:1px solid;">'''Notes'''</div><div style="line-height:1.2em;">{{{footnotes}}}</div></div>}} |
|||
-->{{{death_place<includeonly>|</includeonly>}}} |
|||
}}<noinclude>{{pp-semi-template|small=yes}}{{#ifeq:{{SUBPAGENAME}}|sandbox |{{Template sandbox notice}} }}{{documentation}}<!---Please add metadata to the <includeonly> section at the bottom of the /doc subpage---></noinclude> |
|||
|label3 = Cause of death |
|||
|data3 = {{{death_cause<includeonly>|</includeonly>}}} |
|||
|label4 = Burial place |
|||
|class4 = label |
|||
|data4 = {{{resting_place<includeonly>|</includeonly>}}}<!-- |
|||
-->{{#if:{{{resting_place_coordinates|}}} |
|||
| <br/>{{{resting_place_coordinates}}} }} |
|||
|label5 = Residence |
|||
|class5 = label |
|||
|data5 = {{{residence<includeonly>|</includeonly>}}} |
|||
|label6 = Nationality |
|||
|data6 = {{{nationality<includeonly>|</includeonly>}}} |
|||
|label7 = Other names |
|||
|class7 = nickname |
|||
|data7 = {{{other_names<includeonly>|</includeonly>}}} |
|||
|label8 = Education |
|||
|data8 = {{{education<includeonly>|</includeonly>}}} |
|||
|label9 = Alma mater |
|||
|data9 = {{{alma_mater<includeonly>|</includeonly>}}} |
|||
|label10 = Occupation |
|||
|data10 = {{{occupation<includeonly>|</includeonly>}}} |
|||
|label11 = Employers |
|||
|data11 = {{{employer<includeonly>|</includeonly>}}} |
|||
|label12 = Home town |
|||
|data12 = {{{home_town<includeonly>|</includeonly>}}} |
|||
|label13 = Title |
|||
|data13 = {{{title<includeonly>|</includeonly>}}} |
|||
|label14 = Salary |
|||
|data14 = {{{salary<includeonly>|</includeonly>}}} |
|||
|label15 = Net worth |
|||
|data15 = {{{networth<includeonly>|</includeonly>}}} |
|||
|label16 = Height |
|||
|data16 = {{{height<includeonly>|</includeonly>}}} |
|||
|label17 = Weight |
|||
|data17 = {{{weight<includeonly>|</includeonly>}}} |
|||
|label18 = Known for |
|||
|data18 = {{{known|{{{known_for<includeonly>|</includeonly>}}}}}} |
|||
|label19 = Term |
|||
|data19 = {{{term<includeonly>|</includeonly>}}} |
|||
|label20 = Predecessor |
|||
|data20 = {{{predecessor<includeonly>|</includeonly>}}} |
|||
|label21 = Successor |
|||
|data21 = {{{successor<includeonly>|</includeonly>}}} |
|||
|label22 = Political party |
|||
|data22 = {{{party<includeonly>|</includeonly>}}} |
|||
|label23 = Board member of |
|||
|data23 = {{{boards<includeonly>|</includeonly>}}} |
|||
|label24 = Religious beliefs |
|||
|data24 = {{{religion<includeonly>|</includeonly>}}} |
|||
|label25 = Spouse |
|||
|data25 = {{{spouse<includeonly>|</includeonly>}}} |
|||
|label26 = Partner |
|||
|data26 = {{{partner<includeonly>|</includeonly>}}} |
|||
|label27 = Children |
|||
|data27 = {{{children<includeonly>|</includeonly>}}} |
|||
|label28 = Parents |
|||
|data28 = {{{parents<includeonly>|</includeonly>}}} |
|||
|label29 = Relatives |
|||
|data29 = {{{relations|{{{relatives<includeonly>|</includeonly>}}}}}} |
|||
|data30 = {{#if:{{{signature<includeonly>|</includeonly>}}} |
|||
| '''Signature'''<!-- |
|||
--><div style="padding-top:0.3em;">[[Image:{{{signature}}}|128px]]</div>}} |
|||
|data31 = {{#if:{{{website<includeonly>|</includeonly>}}} |
|||
| '''Website'''<br/>{{{website}}} }} |
|||
|data32 = {{#if:{{{footnotes<includeonly>|</includeonly>}}} |
|||
| <div style="text-align:left;"><!-- |
|||
--><div style="border-top:1px solid;">'''Notes'''</div><!-- |
|||
--><div style="line-height:1.2em;">{{{footnotes}}}</div><!-- |
|||
--></div><!-- |
|||
-->}} |
|||
}}<noinclude> |
|||
{{end infobox page}} |
|||
{{pp-semi-template|small=yes}} |
|||
{{#ifeq:{{SUBPAGENAME}}|sandbox |{{Template sandbox notice}} }} |
|||
<!---Please add metadata to the <includeonly> section at the bottom of the /doc subpage---> |
|||
</noinclude> |