Difference between revisions of "Template:MaterialBtn"
(Enter a short summary [alt-shift-b]) |
(add image caption back in, in case the image doesn't exist) |
||
Line 1: | Line 1: | ||
− | <includeonly>[[ | + | <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> |