Difference between revisions of "Template:InfoboxScreenshot/Loader"
From Istaria Lexica
Line 1: | Line 1: | ||
− | <includeonly>< | + | <includeonly><div class="InfoboxScreenshot">{{#if:{{{1|}}}|{{Exists|page=File:{{{1|}}}|then=[[File:{{{1|}}}|{{{2|}}}]]|else=<div class="InfoboxScreenshot textmiddle">[[File:TitleTemplate.png|{{{2|}}}|link={{fullurl:Special:Upload|wpDestFile={{{1|}}}}}]]</div>}}}}</div></includeonly><noinclude>[[Category:Infobox Templates]][[Category:Non-standalone Templates]]{{Documentation}}</noinclude> |
Revision as of 15:05, 3 October 2022
Template documentation (for the template shown above, sometimes hidden or invisible)
Description[edit]
Shows a provided image. If the image does not exist, a fancy 'add image' picture is shown instead. If the image filename is not provided, do nothing.
Other features:
- Find pages using this template
Syntax[edit]
{{InfoboxScreenshot/Loader|image name|width|setprop}}
Parameters[edit]
The parameters are unnamed.
{{InfoboxScreenshot/Loader | = the filename of the image | = the final width of the box | = if set to 'true' and if the image exists, set a filename property (Primaryimage) for further use }}
Examples[edit]
{{InfoboxScreenshot/Loader|picture.jpg|200px}} {{InfoboxScreenshot/Loader|anotherpicture.jpg}} {{InfoboxScreenshot/Loader|yetanotherpicture.jpg|true}}
Visit Template:InfoboxScreenshot/Loader/doc to edit this text. (How to: document correctly)