Difference between revisions of "Template:MaterialBtn"

From The Powder Toy
Jump to: navigation, search
(Enter a short summary [alt-shift-b])
(add image caption back in, in case the image doesn't exist)
Line 1: Line 1:
<includeonly>[[Image:{{#if: {{{mat|}}} | {{{mat|}}} | {{{1|}}}}}.png|30px|link=Element:{{#if: {{{mat|}}} | {{{mat|}}} | {{{1|}}}}}]]</includeonly><noinclude>Displays the menu-button image for an element, and links it to the element page. Takes one argument, the name of a material.
+
<includeonly>[[File:{{#if: {{{mat|}}} | {{{mat}}} | {{{1}}}}}.png|30px|link=Element:{{#if: {{{mat|}}} | {{{mat}}} | {{{1}}}}}|{{#if: {{{mat|}}} | {{{mat}}} | {{{1}}}}}]]</includeonly><noinclude>Displays the menu-button image for an element, and links it to the element page. Takes one argument, the name of a material.
 
Example: <nowiki> {{ MaterialBtn | PSCN }} </nowiki> and you will get:
 
Example: <nowiki> {{ MaterialBtn | PSCN }} </nowiki> and you will get:
 
{{ MaterialBtn | PSCN }}
 
{{ MaterialBtn | PSCN }}
 
</noinclude>
 
</noinclude>

Revision as of 14:20, 6 October 2014

Displays the menu-button image for an element, and links it to the element page. Takes one argument, the name of a material. Example: {{ MaterialBtn | PSCN }} and you will get: PSCN.png