Template:Imageexists: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(ifexpr for maxwidth) |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifexist: File:{{{file}}} | [[File:{{{file}}}{{ | <includeonly>{{#ifexist: File:{{{file}}} | [[File:{{{file}}}{{ | ||
#if: {{{ | #if: {{{maxwidth|}}} | {{#ifexpr: {{#mediawidth:File:{{{file}}}}}>={{{maxwidth}}} | {{!}}{{{maxwidth}}}px | }}| }}{{ | ||
#if: {{{caption|}}} | {{!}}{{{caption}}} | }}]] | [[File:NoImage.png|link={{fullurl:Special:Upload|wpDestFile={{{file}}}}}|Click to upload a new image...]] {{#if: {{{missingcat|}}} | [[Category:{{{missingcat}}}|{{PAGENAME}}]] | }}<span style="display: none;">[[Media:{{{file}}}|Dummy link]]</span>}}</includeonly><noinclude> | #if: {{{caption|}}} | {{!}}{{{caption}}} | }}]] | [[File:NoImage.png|link={{fullurl:Special:Upload|wpDestFile={{{file}}}}}|Click to upload a new image...]] {{#if: {{{missingcat|}}} | [[Category:{{{missingcat}}}|{{PAGENAME}}]] | }}<span style="display: none;">[[Media:{{{file}}}|Dummy link]]</span>}}</includeonly><noinclude> | ||
Lovingly lifted from TCRF.</noinclude> | Lovingly lifted from TCRF.</noinclude> |
Revision as of 00:57, May 19, 2016
Lovingly lifted from TCRF.