Template:RareItemProcess: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
m (Protected "Template:RareItemProcess": messing with this could break a LOT of pages ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
(swapped)
 
(2 intermediate revisions by the same user not shown)
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. 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 false or absent, and nothing if it's set to true. This is to allow a check to see if any sources are not rare. Used by [[Template:ItemProperties]].{{Cat|Templates,Templates for Templates}}</noinclude>

Latest revision as of 21:10, 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 false or absent, and nothing if it's set to true. This is to allow a check to see if any sources are not rare. Used by Template:ItemProperties.