Jump to content

Template:Infobox person: Difference between revisions

use template to had placeholder images rather than lots of #ifs
(more common combinations)
(use template to had placeholder images rather than lots of #ifs)
Line 3:
| 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>}}
| image = {{#ifeqif:{{{image|}}}|replaceHide thisif imageplaceholder 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|}}}]]}} }} }} }} }} }} }} }} }}
| imageclass = {{image class names|{{{image}}}}}
| caption = {{{image caption|{{{caption|{{{image_caption|}}}}}}}}}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.