Difference between revisions of "Template:Icon"

From Summertime Saga Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
<onlyinclude><div class="grid-item" style="{{#if:{{{height|}}}|height:{{{height|100px}}};}}{{#if:{{{width|}}}|width:{{{width|100px}}};}}">[[File:{{{name|Name}}} icon.png|{{{size|100x100px}}}|link={{{name}}}]]<p>[[{{{name}}}]]</p>{{#if:{{{description|}}}|<p>{{{description}}}</p>}}</div></onlyinclude><noinclude>
+
<onlyinclude>
Base Icon template. Displays the <Image> icon of <Size> if a file for it exists and links to the page with <Name> also displays <Name> below the icon and a description if applicable. the dimensions are customizable with a default of height and width is 100px.
+
<div class="grid-item" style="{{#if:{{{height|}}}|height:{{{height|100px}}};}}{{#if:{{{width|}}}|width:{{{width|100px}}};}}">[[File:{{{name|Name}}} icon.png|{{{size|100x100px}}}|link={{{name}}}]]<p>[[{{{name}}}]]</p>{{#if:{{{description|}}}|<p>{{{description}}}</p>}}</div>
[[Category:Templates]]</noinclude>
+
</onlyinclude>
 +
<noinclude>
 +
[[Category:Templates]]
 +
</noinclude>

Revision as of 10:02, 5 June 2019

link={{{name}}}

[[{{{name}}}]]