The Sims Medieval Wiki
m (→‎Usage: updated template)
m
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}}

Revision as of 20:25, 11 April 2011

This template generates a Armor object with queriable properties.

Usage

1. Use this template to define the object in its own page

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

2. Use the syntax {{:PAGENAME|<property>}} to extract properties from the generated page. E.g.

Expression


{{:Doomplate|name}} is a {{:Doomplate|type}} (Defense:{{:Doomplate|defense}, Weight:{{:Doomplate|weight}})


Output


DoomplateTemplate loop detected: Template:Armor is a ArmorTemplate loop detected: Template:Armor (Defense:10Template loop detected: Template:Armor, Weight:5Template loop detected: Template:Armor)