Difference between revisions of "Template:Material"

From The Powder Toy
Jump to: navigation, search
(Created page with "<includeonly>[[Image:{{{mat}}}.png|30px|link=Element:{{{mat}}}|{{{mat}}}]]</includeonly><noinclude>The argument is passed as a name of a material. Do not try to fix the expressio...")
 
(Remove image, since it looks messy when used a lot in large paragraphs. Old behaviour at Template:MaterialBtn)
Line 1: Line 1:
<includeonly>[[Image:{{{mat}}}.png|30px|link=Element:{{{mat}}}|{{{mat}}}]]</includeonly><noinclude>The argument is passed as a name of a material.
+
<includeonly>[[Element:{{#if: {{{mat|}}} | {{{mat}}} | {{{1}}}}} | {{#if: {{{mat|}}} | {{{mat}}} | {{{1}}}}}]]</includeonly><noinclude>Takes one argument, the name of a material.
Do not try to fix the expression errors: if you pass the parameter right, it will work.
+
Example: <nowiki> {{ Material | PSCN }} </nowiki> and you will get:
Example: <nowiki> {{ Material | mat=PSCN }} </nowiki> and you will get:
+
{{ Material | PSCN }}
{{ Material | mat=PSCN }}
 
 
</noinclude>
 
</noinclude>

Revision as of 14:22, 6 October 2014

Takes one argument, the name of a material. Example: {{ Material | PSCN }} and you will get: PSCN