Actions

Template

Difference between revisions of "Raw material"

From London's Ghost Acres

(ID from Database)
 
(18 intermediate revisions by 3 users not shown)
Line 6: Line 6:
 
|comes from=
 
|comes from=
 
|has_commodity_id=  
 
|has_commodity_id=  
 +
|has description=
 
}}
 
}}
 
</pre>
 
</pre>
Line 11: Line 12:
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
 +
{{#if:{{{has description|}}} | {{{has description}}} }}
 +
 +
 +
{{#if:{{{comes from|}}} |
 
==Imported from==
 
==Imported from==
{{#arraymap:{{{comes from|}}}|,|x|[[Comes from::x]] }}
+
<ul>
 +
<li>
 +
{{#arraymap:{{{comes from|}}}|,|x|[[Comes from::x]]|<li> }}
 +
</ul>
 +
}}
  
==Used to make==
 
{{#ask:[[Made from::{{SUBJECTPAGENAME}}]]|format=list}}
 
  
==ID from Database==
+
{{#ask:[[Made from::{{SUBJECTPAGENAME}}]]
 +
|format=ul
 +
|intro=<h2>Used to Make</h2>
 +
}}
  
 +
 +
{{#if:{{{has commodity id|}}} |
 +
==ID in Database==
 +
[[Has commodity id::{{{has_commodity_id}}}]]
 +
}}
  
 
[[Category:Raw materials]]
 
[[Category:Raw materials]]
 
</includeonly>
 
</includeonly>

Latest revision as of 14:53, 10 May 2016

This is the "Raw material" template. It should be called in the following format:

{{Raw material
|comes from=
|has_commodity_id= 
|has description= 
}}

Edit the page to see the template text.