Template:Px

From Arcade Otaku Wiki
Revision as of 00:26, 13 December 2010 by Davewellington (talk | contribs) (Created page with "{{#if:{{{1|}}} |{{{1}}}{{#iferror:{{#expr:{{{1}}}>0}}||px}} |{{#if:{{{2|}}} |{{{2}}}{{#iferror:{{#expr:{{{2}}}>0}}||px}} |{{{3|}}}{{#iferror:{{#expr:{{{3|}}}>0}}||px}} }} ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


This is the

meta-template.

It helps other templates, such as infoboxes, to take image size parameters in both of the forms "40" or "40px". It takes up to three parameters and returns the first one that has any content. That is, the first one that is defined (not null) and not empty. Thus a default value for the width of the image can be fed as the second or third parameter.