Template:RareItemProcess: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
(adding support for [[Property::rare source]])
Line 1: Line 1:
<includeonly>{{#switch:{{#show:{{{1}}}|?Festival shop}}|true=1|#default=}}</includeonly><noinclude>This template will take a page name and return "1" if it has [[Property:Festival shop]] set to true, and nothing if it's set to false or absent. Used by [[Template:ItemProperties]].{{Cat|Templates,Templates for Templates}}</noinclude>
<includeonly>{{#if:{{#ask:[[{{{1}}}]][[Rare source::true]]}}|1|}}</includeonly><noinclude>This template will take a page name and return "1" if it has [[Property:Rare source]] or it's subproperty of [[Property:Festival shop]] set to true, and nothing if it's set to false or absent. Used by [[Template:ItemProperties]].{{Cat|Templates,Templates for Templates}}</noinclude>

Revision as of 07:43, 22 February 2013

This template will take a page name and return "1" if it has Property:Rare source or it's subproperty of Property:Festival shop set to true, and nothing if it's set to false or absent. Used by Template:ItemProperties.