Template:ISearch: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
m (Undo revision 640769 by ZUERCAT (talk))
Tag: Undo
 
(38 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{lc:{{{n|}}}}}|y|yes={{#if:{{{2|}}}|{{#ask:[[noun is::{{lc:{{{1}}}}}]] OR [[noun is::{{lc:{{{2}}}}}]]{{#switch:{{{t|}}}|i=[[Category:Items]]|w=[[Category:Weapons]]|s=[[Category:Shields]]|a=[[Category:Armor]]|#default=}} |format=table| ?Rare item|mainlabel=Item|default=None yet|limit=10}}|{{#ask:[[noun is::{{#if:{{{1|}}}|{{lc:{{{1}}}}}|{{lc:{{PAGENAME}}}}}}]] |format=table| ?Rare item|mainlabel=Item|default=None yet|limit=10}}}}|#default={{#if:{{{2|}}}|{{#ask:[[item type is::{{lc:{{{1}}}}}]] OR [[item type is::{{lc:{{{2}}}}}]] {{#switch:{{{t|}}}|i=[[Category:Items]]|w=[[Category:Weapons]]|s=[[Category:Shields]]|a=[[Category:Armor]]|#default=}}|format=table| ?Rare item|mainlabel=Item|default=None yet|limit=10}}|{{#ask:[[item type is::{{#if:{{{1|}}}|{{lc:{{{1}}}}}|{{lc:{{PAGENAME}}}}}}]] |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>
<includeonly>{{#ask:{{#switch:{{{t|}}}|i=[[page type is::item]]|w=[[page type is::weapon]]|s=[[page type is::shield]]|a=[[page type is::armor]]|#default=}} {{#switch:{{{n|}}}|y|yes=[[noun is::{{{1}}}{{#if: {{{2|}}}|{{!}}{{!}}{{{2}}}}}{{#if: {{{3|}}}|{{!}}{{!}}{{{3}}}}}]]|[[item type is::{{{1}}}{{#if: {{{2|}}}|{{!}}{{!}}{{{2}}}}}{{#if: {{{3|}}}|{{!}}{{!}}{{{3}}}}}]]}}|format=table|mainlabel=Item| ?Source is|sep=,&nbsp;|?Rare item|?Is incomplete|default=None yet|limit=10}}</includeonly><noinclude>This template is used to list the items that have a [[Property:Item 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 or three 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). To use variables, place an additional | between each desired filter.
{{cat|Templates,Search Templates}}</noinclude>

Latest revision as of 07:21, 26 January 2024

This template is used to list the items that have a Property:Item 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 or three 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). To use variables, place an additional | between each desired filter.