Template:Infobox/Thumbnail: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><p style="margin: 0px; padding: 2.5px; border-top: 1px solid rgb(183,143,81)">[[File:{{{image|No.png}}}|270px|frameless|center|{{{caption|}}}]]{{#if:{{{image|}}}|<!--TRUE-->|<!--FALSE-->[[Category:Missing_images]]}}</p></includeonly><noinclude>
<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>{{Infobox/Thumbnail|image=<file?>|caption=<text>}}</pre>

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.