Template:Thumbnail: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[[File:{{{1|No.png}}}|200px|thumb|<strong><center>T_{{{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}}<br/><br/><br/><br/><br/><br/><br/><br/>
{{Thumbnail|StoneCube.png|Stone Cube}}{{ClearLine}}<!--
 
-->
==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>|<caption>}}</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}}


==Example Source==
==Example Source==
<pre>{{Thumbnail|StoneCube.png|Stone Cube}}<br/><br/><br/><br/><br/><br/><br/><br/></pre>
<pre>{{Thumbnail|StoneCube.png|Stone Cube}}</pre>
*Extra line breaks added to prevent the image from overlapping the next heading.
[[Category:Templates/Formatting]]</noinclude>
[[Category:Templates/Formatting]]</noinclude>

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}}