Template:Thumbnail: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[[File:{{{1|No.png}}}|200px|thumb|<strong><center>{{{2}}}</center></strong>]]</includeonly><noinclude>
<includeonly>[[File:{{{1|No.png}}}|200px|thumb|<strong><center>{{#if:{{{2|}}}|<!--TRUE-->{{{2}}}|<!--FALSE-->{{PAGENAME}}}}</center></strong>]]</includeonly><noinclude>
 
==Example==
==Example==
{{Thumbnail|StoneCube.png|Stone Cube}}
{{Thumbnail|StoneCube.png|Stone Cube}}{{ClearLine}}<!--
<div style="clear: both;"></div>
-->
==Usage==
==Usage==
The Thumbnail template is meant to be used on all pages for the main image.
The Thumbnail template is meant to be used on all pages for the main image.
<pre>{{Thumbnail|<imagename>|<pageName>}}</pre>
<pre>{{Thumbnail|<imagename>|<pageName>}}</pre>
*The code above can be pasted into your page and edited.
*The code above can be pasted into your page and edited.
*The second variable (pageName) can be omitted. The caption will use the <nowiki>{{PAGENAME}}</nowiki> variable to fill the caption.
{{:Template Ordering}}
{{:Template Ordering}}



Latest revision as of 12:46, 12 September 2018


Example

Stone Cube

Usage

The Thumbnail template is meant to be used on all pages for the main image.

{{Thumbnail|<imagename>|<pageName>}}
  • The code above can be pasted into your page and edited.
  • The second variable (pageName) can be omitted. The caption will use the {{PAGENAME}} variable to fill the caption.

ORDERED TEMPLATE: This template is typically used on pages with other templates. It should be added in the order specified in Template Ordering.


Example Source

{{Thumbnail|StoneCube.png|Stone Cube}}