Template:ISearch: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(added a source display; slightly modified the initial sorting display, removed extraneous sort commands)
(Undo revision 497365 by ZUERCAT (talk))
Line 1: Line 1:
<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=Rare|?Is incomplete=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). {{cat|Templates,Search 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|?Rare item=Rare|?Is incomplete=Incomplete|sort=Rare item,|order=ascending,ascending|mainlabel=Item|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). {{cat|Templates,Search Templates}}</noinclude>

Revision as of 20:15, 1 December 2018

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).