Template:Infobox person: Difference between revisions

Content added Content deleted
(more common combinations)
(use template to had placeholder images rather than lots of #ifs)
Line 3: Line 3:
| bodystyle = {{#if:{{{box_width|}}}|width:{{{box_width}}};}}
| bodystyle = {{#if:{{{box_width|}}}|width:{{{box_width}}};}}
| above = {{#if:{{{honorific prefix|{{{honorific_prefix|}}}}}}|<span class="honorific-prefix" style="font-size: small">{{{honorific prefix|{{{honorific_prefix|}}}}}}</span><br />}}<includeonly><span class="fn">{{{name|{{PAGENAME}}}}}</span></includeonly>{{#if:{{{honorific suffix|{{{honorific_suffix|}}}}}}|<br /><span class="honorific-suffix" style="font-size: small">{{{honorific suffix|{{{honorific_suffix|}}}}}}</span>}}
| above = {{#if:{{{honorific prefix|{{{honorific_prefix|}}}}}}|<span class="honorific-prefix" style="font-size: small">{{{honorific prefix|{{{honorific_prefix|}}}}}}</span><br />}}<includeonly><span class="fn">{{{name|{{PAGENAME}}}}}</span></includeonly>{{#if:{{{honorific suffix|{{{honorific_suffix|}}}}}}|<br /><span class="honorific-suffix" style="font-size: small">{{{honorific suffix|{{{honorific_suffix|}}}}}}</span>}}
| image = {{#ifeq:{{{image|}}}|replace this image male.svg||{{#ifeq:{{{image|}}}|replace this image female.svg||{{#ifeq:{{{image|}}}|Replace_this_image_male.svg||{{#ifeq:{{{image|}}}|Replace_this_image_female.svg||{{#ifeq:{{{image|}}}|Replace this image male.svg||{{#ifeq:{{{image|}}}|Replace this image female.svg||{{#ifeq:{{{image|}}}|[[Image:Replace this image male.svg]]||{{#ifeq:{{{image|}}}|[[Image:Replace this image female.svg]]||{{#if:{{{image|}}}|[[File:{{{image}}}|{{px|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|frameless}}|alt={{{alt|}}}]]}} }} }} }} }} }} }} }} }}
| image = {{#if:{{Hide if placeholder image|{{{image|}}}}}|[[File:{{{image}}}|{{px|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|frameless}}|alt={{{alt|}}}]]}}
| imageclass = {{image class names|{{{image}}}}}
| imageclass = {{image class names|{{{image}}}}}
| caption = {{{image caption|{{{caption|{{{image_caption|}}}}}}}}}
| caption = {{{image caption|{{{caption|{{{image_caption|}}}}}}}}}