Template:Infobox/Thumbnail: Difference between revisions
Jump to navigation
Jump to search
CptTwinkie (talk | contribs) (Created page with "<includeonly><p style="margin: 0px; padding: 2.5px; border-top: 1px solid rgb(183,143,81)">[[File:{{{image|No.png}}}|200px|frameless|center|{{{text|}}}]]{{#if:{{{image|}}}|<!-...") |
CptTwinkie (talk | contribs) mNo edit summary |
||
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><p style="margin: 0px; padding: 2.5px; | <includeonly><p class="ib-border-top" style="margin: 0px; padding: 2.5px;">[[File:{{#ifeq:{{{image|}}}||<!--TRUE-->No.png|<!--FALSE-->{{{image}}}}}|292px|frameless|center{{#ifeq:{{{caption|}}}||<!--TRUE-->|<!--FALSE-->{{!}}{{{caption|}}}}}]]{{#if:{{{image|}}}|<!--TRUE-->|<!--FALSE-->[[Category:Missing_images]]}}</p></includeonly><noinclude> | ||
==Usage== | ==Usage== | ||
<pre>{{Infobox/Thumbnail|image=<file?>|caption=<text>}}</pre> | |||
<pre> | |||
*The code above can be pasted into your page. | *The code above can be pasted into your page. | ||
*Any of the attributes can be left out entirely and they will use their default value. | |||
*Templates adds [[:Category:Missing_images]] conditionally. | |||
===Base Page=== | |||
''<nowiki>{{Infobox}}</nowiki>'' should be added to the base page of the article. | |||
===Sub-Page=== | |||
The ''Infobox/Thumbnail'' template should be used in a /Infobox sub-page. See [[Template:Infobox]] for more information. | |||
''Infobox/Thumbnail'' Is intended to be used to add a 200px sized thumbnail in the information box. | |||
<span style="color:red;">'''IMPORTANT:'''</span> ''<nowiki>{{Infobox/Start}}</nowiki>'' should always be used in combination with ''<nowiki>{{Infobox/End}}</nowiki>''. Other Infobox templates should be placed between /Start and /End. Changing this order will result in a mess. | |||
[[Category:Templates/Formatting]] | [[Category:Templates/Formatting]] | ||
</noinclude> | </noinclude> |
Latest revision as of 14:34, 24 October 2018
Usage
{{Infobox/Thumbnail|image=<file?>|caption=<text>}}
- The code above can be pasted into your page.
- Any of the attributes can be left out entirely and they will use their default value.
- Templates adds Category:Missing_images conditionally.
Base Page
{{Infobox}} should be added to the base page of the article.
Sub-Page
The Infobox/Thumbnail template should be used in a /Infobox sub-page. See Template:Infobox for more information.
Infobox/Thumbnail Is intended to be used to add a 200px sized thumbnail in the information box.
IMPORTANT: {{Infobox/Start}} should always be used in combination with {{Infobox/End}}. Other Infobox templates should be placed between /Start and /End. Changing this order will result in a mess.