Template:Infobox person: Difference between revisions
Revert recent changes to location of Nationality and default image size. If this causes a distorted image, fix it on the affected page by adding " image_size = 180px " or other appropriate size. |
fix errors in coding left after a prior edit removed deprecated parameters, plus temp code to locate templates using imagesize, known or relations parameters |
||
| Line 1: | Line 1: | ||
<noinclude>{{#ifeq:{{SUBPAGENAME}}|sandbox|{{Template sandbox notice}}}}</noinclude> | <noinclude>{{#ifeq:{{SUBPAGENAME}}|sandbox|{{Template sandbox notice}}}}</noinclude> | ||
<table class="infobox biography vcard" style="width:{{{box_width|22em}}}; font-size:90%; text-align: left;" cellspacing="2"> | <table class="infobox biography vcard" style="width:{{{box_width|22em}}}; font-size:90%; text-align: left;" cellspacing="2"> | ||
<tr><th colspan="2" style="text-align:center; font-size:larger;" class="fn">{{ | <tr><th colspan="2" style="text-align:center; font-size:larger;" class="fn">{{#if: {{{name<includeonly>|</includeonly>}}} | {{{name}}} | {{PAGENAME}} | ||
#if: | |||
| {{PAGENAME}} | |||
}}{{ | }}{{ | ||
#if: | #if: {{{image<includeonly>|</includeonly>}}} | | ||
<tr><td colspan="2" style="text-align: center;">[[Image:{{{image | <tr><td colspan="2" style="text-align: center;">[[Image:{{{image}}}|{{#if: {{{image_size|{{{imagesize|}}}}}} | {{{image_size|{{{imagesize}}}}}} | 225px}}|]]<br />{{{caption<includeonly>|</includeonly>}}} | ||
#if: {{{image_size|{{{imagesize|}}}}}} | |||
| {{{image_size|{{{imagesize}}}}}} | |||
| 225px | |||
}}|]]<br />{{{caption<includeonly>|</includeonly>}}} | |||
}}{{ | }}{{ | ||
#if: {{{birth_name<includeonly>|</includeonly>}}} {{{birth_date|}}} {{{birth_place|}}} | | #if: {{{birth_name<includeonly>|</includeonly>}}} {{{birth_date|}}} {{{birth_place|}}} | | ||
| Line 114: | Line 107: | ||
<tr><th colspan="2" style="font-size: smaller;">{{{footnotes}}} | <tr><th colspan="2" style="font-size: smaller;">{{{footnotes}}} | ||
}}</tr> | }}</tr> | ||
</table><noinclude> | </table>{{ | ||
#if: {{{imagesize|}}} {{{known|}}} {{{relations|}}} | | |||
[[Category:Infobox Person using deprecated parameters]] | |||
}}<noinclude> | |||
{{{{BASEPAGENAME}}/doc}}<!--allows /doc to display when template code is used in /sandbox--> | {{{{BASEPAGENAME}}/doc}}<!--allows /doc to display when template code is used in /sandbox--> | ||
<!-- Please add categories and interwikis to the /doc subpage, not here. --> | <!-- Please add categories and interwikis to the /doc subpage, not here. --> | ||
</noinclude> | </noinclude> | ||