The Sims Medieval Wiki
Line 12: Line 12:
| bestweight={{{bestweight|}}}
| bestweight={{{bestweight|}}}
| notes={{{notes}}}
| notes={{{notes}}}
| recipe={{{recipe|{{#ifexists:{{{name}}}/recipe|{{{name}}}/recipe|}}}}}
| recipe={{{recipe|{{#ifexist:{{{1}}}/recipe|{{{1}}}/recipe|}}}}}
| craftable={{#if:{{{recipe|}}}|1|0}}
| craftable={{#if:{{{recipe|}}}|1|0}}

Revision as of 01:16, 7 April 2011

This template generates a Armor object with queriable properties.


1. Use this template to define the object in its own page, for example, in a page Shield of Invisibility

| {{{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.

2. Use the following way to extract properties from the generated page.

{{:Shield of Invisibility|name}} is a {{:Shield of Invisibility|type}} (Defense:{{:Shield of Invisibility|defense}, Weight:{{:Shield of Invisibility|weight}})


Shield of Invisibility is a Armor(Defense:5, Weight:5)