The Sims Medieval Wiki
m (→‎Usage: updated template)
m
 
(One intermediate revision 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
 
<pre>
 
<includeonly><onlyinclude>{{Armor
 
| {{{1}}}
 
| name=
 
| desc=
 
| image=
 
| imagewidth=
 
| caption=
 
| icon=
 
| defense=
 
| weight=
 
| bestdefense=
 
| bestweight=
 
| recipe=
 
| notes=
 
}}</onlyinclude></includeonly><noinclude>
 
{{infobox item2|{{PAGENAME}}}}
 
[[{{:{{PAGENAME}}|icon}}|left]]
 
<blockquote>''"{{:{{PAGENAME}}|desc}}"''</blockquote>
 
 
 
==Description==
 
 
==Uses==
 
 
==Sources==
 
 
==Also See==
 
 
 
{{Equipment}}
 
</noinclude>
 
</pre>
 
 
2. Use the syntax <nowiki>{{:PAGENAME|<property>}}</nowiki> to extract properties from the generated page.
 
E.g.
 
 
===Expression===
 
----
 
<nowiki>{{:Doomplate|name}} is a {{:Doomplate|type}} (Defense:{{:Doomplate|defense}, Weight:{{:Doomplate|weight}})</nowiki>
 
 
----
 
===Output===
 
 
----
 
 
{{:Doomplate|name}} is a {{:Doomplate|type}} (Defense:{{:Doomplate|defense}}, Weight:{{:Doomplate|weight}})
 
----
 
 
{{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?)