The Sims Medieval Wiki
m (Created page with "<includeonly>{{#switch:{{{1}}} | type=Armor | name={{{name}}} | desc={{{desc|No Description}}} | image={{{image|File:Placeholder}}} | imagewidth={{{imagewidth|200}}} | caption={{...")
 
m
Line 7: Line 7:
 
| caption={{{caption|}}}
 
| caption={{{caption|}}}
 
| icon={{{icon|File:Placeholder}}}
 
| icon={{{icon|File:Placeholder}}}
| attack={{{attack|0}}}
+
| defense={{{defense|0}}}
 
| weight={{{weight|0}}}
 
| weight={{{weight|0}}}
 
| notes={{{notes}}}
 
| notes={{{notes}}}

Revision as of 10:38, 30 March 2011

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

{{Sword
| {{{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
| attack=5
| weight=5
| 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}})

Output:

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