The Sims Medieval Wiki
m (→‎Usage: clean up categories)
m
 
(2 intermediate revisions by the same user not shown)
Line 11: Line 11:
 
| bestdefense={{{bestdefense|}}}
 
| bestdefense={{{bestdefense|}}}
 
| bestweight={{{bestweight|}}}
 
| bestweight={{{bestweight|}}}
| notes={{{notes}}}
+
| notes={{{notes|}}}
 
| recipe={{{recipe|{{#ifexist:{{{1}}}/recipe|{{{1}}}/recipe|}}}}}
 
| recipe={{{recipe|{{#ifexist:{{{1}}}/recipe|{{{1}}}/recipe|}}}}}
 
| craftable={{#if:{{{recipe|}}}|1|0}}
 
| craftable={{#if:{{{recipe|}}}|1|0}}
 
|}}</onlyinclude></includeonly><noinclude>
 
|}}</onlyinclude></includeonly><noinclude>
  +
{{documentation}}
This template generates a Armor object with queriable properties.
 
 
===Usage===
 
1. Use this template to define the object in its own page, for example, in a page Shield of Invisibility<pre>
 
{{Armor
 
| {{{1}}}
 
| name=Shield of Invisibility
 
| desc=No, this shield does not make you invisible. The shield IS invisible. In fact, you can't really know for sure whether it is there or not.
 
| image=File:Shield_of_invisibility.png
 
| imagewidth=200
 
| caption=Caption for image
 
| icon=File:Shield_of_invisibility_icon.png
 
| defense=5
 
| weight=5
 
| bestdefense=6
 
| bestweight=4
 
| notes=This shield don't exists, in-game or otherwise.
 
}}
 
</pre>
 
 
2. Use the following way to extract properties from the generated page.
 
<pre>
 
{{:Shield of Invisibility|name}} is a {{:Shield of Invisibility|type}} (Defense:{{:Shield of Invisibility|defense}, Weight:{{:Shield of Invisibility|weight}})
 
</pre>
 
Output:
 
<pre>
 
Shield of Invisibility is a Armor(Defense:5, Weight:5)
 
</pre>
 
 
{{Equipment}}
 
</noinclude><noinclude>
 
[[Category:Items]]
 
[[Category:Gear]]
 
[[Category:Armor]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 20:27, 11 April 2011

Template documentation (for the above template, sometimes hidden or invisible)

Visit Template:Armor/doc to edit this text! (How does this work?)