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...")
 
m (Remove extra space)
 
(One intermediate revision by one other user not shown)
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: {{ Material | PSCN }}
Example: <nowiki> {{ Material | mat=PSCN }} </nowiki> and you will get:
 
{{ Material | mat=PSCN }}
 
 
</noinclude>
 
</noinclude>

Latest revision as of 03:58, 9 July 2021

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