Jump to content

Template:Infobox person: Difference between revisions

fix errors in coding left after a prior edit removed deprecated parameters, plus temp code to locate templates using imagesize, known or relations parameters
(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:
<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">
<tr><th colspan="2" style="text-align:center; font-size:larger;" class="fn">{{#if: {{{name<includeonly>|</includeonly>}}} | {{{name}}} | {{PAGENAME}}
#if: {{{name|}}} {{{name<includeonly>|</includeonly>}}}
| {{{name|{{{name}}}}}}
| {{PAGENAME}}
}}{{
#if: {{{image|{{{image<includeonly>|</includeonly>}}}}}} |
<tr><td colspan="2" style="text-align: center;">[[Image:{{{image}}}|{{#if: {image{{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|}}} |
Line 114 ⟶ 107:
<tr><th colspan="2" style="font-size: smaller;">{{{footnotes}}}
}}</tr>
</table><noinclude>{{
#if: {{{imagesize|}}} {{{known|}}} {{{relations|}}} |
[[Category:Infobox Person using deprecated parameters]]
}}<noinclude>
{{{{BASEPAGENAME}}/doc}}<!--allows /doc to display when template code is used in /sandbox-->
<!-- Please add categories and interwikis to the /doc subpage, not here. -->
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.