Template:Thumbnail: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>[[File:{{{1|No.png}}}|200px|thumb|{{{2}}}]]</includeonly><noinclude> ==Example== {{Thumbnail|StoneCube.png|Stone Cube}} ==Usage== The Image Link template is mean...")
 
mNo edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[[File:{{{1|No.png}}}|200px|thumb|{{{2}}}]]</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}}<!--
 
-->
==Usage==
==Usage==
The Image Link template is meant to be used when adding items to a list that have images.
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}}</pre>
<pre>{{Thumbnail|StoneCube.png|Stone Cube}}</pre>
[[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}}