Template:ISearch: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(simplied coding, hopefully) |
||
Line 1: | Line 1: | ||
<includeonly> |
<includeonly>{{#ask: {{#switch:{{{t|}}}|i=[[Category:Items]]|w=[[Category:Weapons]]|s=[[Category:Shields]]|a=[[Category:Armor]]|#default=}} {{#switch:{{lc:{{{n|}}}}}|y|yes=[[noun is::{{lc:{{{1}}}}}]]|[[item type is::{{lc:{{{1}}}}}]]}} {{#if: {{{2|}}}| OR{{#switch:{{lc:{{{n|}}}}}|y|yes=[[noun is::{{lc:{{{2}}}}}]]|[[item type is::{{lc:{{{2}}}}}]]}}}}|format=table| ?Rare item|mainlabel=Item|default=None yet|limit=10}}</includeonly><noinclude>This template is used to list the items that have a [[Property:Item type is]] (or it's subproperty [[Property:Weapon type is]]) matching that of the the page's name. If a variable is added, it will use that instead of the page name. If two variables are added, it will search for all pages with either. If "n=" is set to "y" then it will only search [[Property:Noun is]]. Setting "t=" will allow you to specify a specific item type, "i" (items), "w" (weapons), "a" (armor), "s" (shields). {{cat|Templates}}</noinclude> |
Revision as of 18:58, 4 March 2012
This template is used to list the items that have a Property:Item type is (or it's subproperty Property:Weapon type is) matching that of the the page's name. If a variable is added, it will use that instead of the page name. If two variables are added, it will search for all pages with either. If "n=" is set to "y" then it will only search Property:Noun is. Setting "t=" will allow you to specify a specific item type, "i" (items), "w" (weapons), "a" (armor), "s" (shields).