Difference between revisions of "Template:ItemInfobox"

From ZFGCpedia
Jump to: navigation, search
(This approach doesn't work when viewing the main page. Title now required on every transclusion or else you'll see this obnoxious message.)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>{{Infobox
 
<includeonly>{{Infobox
|title = {{SUBPAGENAME}}
+
|title = {{#if:{{{title|}}}|{{{title}}}|EMPTY TITLE FIELD}}
 
|image = {{{img1|}}}
 
|image = {{{img1|}}}
 
|caption = {{{cap1|}}}
 
|caption = {{{cap1|}}}
Line 12: Line 12:
 
|label10 = Obtained
 
|label10 = Obtained
 
|data10 = {{{obtained|}}}
 
|data10 = {{{obtained|}}}
|label15 = Cost
+
|label15 = Required
|data15 = {{{cost|}}}
+
|data15 = {{{required|}}}
|label20 = Damage rate
+
|label20 = Cost
|data20 = {{{damagerate|}}}
+
|data20 = {{{cost|}}}
 +
|label25 = Damage rate
 +
|data25 = {{{damagerate|}}}
 +
|label30 = Ammo
 +
|data30 = {{{ammo|}}}
 
}}</includeonly>
 
}}</includeonly>
 
<noinclude>Infobox used to display information on a KOT item. The infobox appears when this template is transcluded onto a page.
 
<noinclude>Infobox used to display information on a KOT item. The infobox appears when this template is transcluded onto a page.
 
[[Category:King Of Thieves]]
 
[[Category:King Of Thieves]]
 
</noinclude>
 
</noinclude>

Latest revision as of 20:49, 22 September 2012

Infobox used to display information on a KOT item. The infobox appears when this template is transcluded onto a page.