Template:Infobox/Thumbnail: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly><p style="margin: 0px; padding: 2.5px; border-top: 1px solid rgb(183,143,81)">[[File:{{{image|No.png}}}|200px|frameless|center|{{{caption|}}}]]{{#if:{{{image|}}}|<!--TRUE-->|<!--FALSE-->[[Category:Missing_images]]}}</p></includeonly><noinclude>
<includeonly><p style="margin: 0px; padding: 2.5px; border-top: 1px solid rgb(183,143,81)">[[File:{{{image|No.png}}}|200px|frameless|center|{{{caption|}}}]]{{#if:{{{image|}}}|<!--TRUE-->|<!--FALSE-->[[Category:Missing_images]]}}</p></includeonly><noinclude>
==Usage==
==Usage==
todo
<pre>{{Infobox/Thumbnail|image=<file?>|caption=<text>}}</pre>
<pre>{{Infobox/Thumbnail|image=<file?>|caption=<text>}}</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.
*Any of the attributes can be left out entirely and they will use their default value.
*Templates adds [[:Category:Missing_images]] conditionally.
*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>

Revision as of 14:06, 21 December 2017

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.