Template:Sources: Difference between revisions

From IdleOn MMO Wiki
No edit summary
(Blanked the page)
Tag: Blanking
 
(39 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude><!--


### Cargo Declare ###
-->{{#cargo_declare:_table=FullSourceLists
  |Item=String (mandatory)
  |Sources=Wikitext
}}</noinclude><includeonly><div style="display: None">{{#invoke:LuaVar|append|name=Sources|value={{#cargo_query:tables=AnvilCraft
|fields=IF(RecipeFrom = "Start", CONCAT("[[Smithing]]"), CONCAT("[[Smithing]] (", RecipeFrom, ")"))
|where=_pageName LIKE "{{{1|{{PAGENAME}}}}}"
|format=list
|order by=_pageName ASC
|default=
}}}}{{#invoke:LuaVar|append|name=Sources|value={{#cargo_query:tables=DropTables
|fields=CONCAT("[[", DropSourceEntity, "]]")
|where=DropItem="{{{1|{{PAGENAME}}}}}" AND NOT DropSourceEntity LIKE "%DropTable%"
|format=list
|group by=DropSourceEntity
|order by=DropSourceEntity ASC
|default=
|intro={{#ifeq:{{#invoke:LuaVar|var|name=Sources}}|Sources is undefined.||, }}
}}}}{{#invoke:LuaVar|append|name=Sources|value={{#cargo_query:tables=Quests
|fields=_pageName
|where=Rewards HOLDS LIKE "%>{{{1|{{PAGENAME}}}}}<%"
|format=list
|group by=_pageName
|default=
|intro={{#ifeq:{{#invoke:LuaVar|var|name=Sources}}|Sources is undefined.||, }}
}}}}{{#invoke:LuaVar|append|name=Sources|value={{#cargo_query:tables=VendorItems
|fields=CONCAT("[[Vendors#", Vendor, "\{\{!\}\}", Vendor, "]]")
|where=Item="{{{1|{{PAGENAME}}}}}"
|format=list
|order by=Vendor
|default=
|intro={{#ifeq:{{#invoke:LuaVar|var|name=Sources}}|Sources is undefined.||, }}
}}}}{{#invoke:LuaVar|append|name=Sources|value={{#cargo_query:tables=Sources
|fields=CONCAT("[[", Link, "]]", IF(SpecialText = "None", "", CONCAT(" (", SpecialText, ")")))
|where=Item="{{{1|{{PAGENAME}}}}}"
|format=list
|order by=Source
|default=
|intro={{#ifeq:{{#invoke:LuaVar|var|name=Sources}}|Sources is undefined.||, }}
}}}}{{#invoke:LuaVar|append|name=Sources|value={{#cargo_query:tables=Sources
|fields=CONCAT("<br/><sup><i>", Item, " can be obtained from any enemy during its event.</i></sup>")
|where=Item="{{{1|{{PAGENAME}}}}}" AND EventRules=1
|format=list
|group by=Item
|default=
}}}}<!--
### Cargo Store ###
-->{{#cargo_store:_table=FullSourceLists
  |Item={{{1|{{PAGENAME}}}}}
  |Sources={{#ifeq:{{#invoke:LuaVar|var|name=Sources}}|Sources is undefined.|{{{backup|Unobtainable}}}|{{#invoke:LuaVar|var|name=Sources}}}}
}}</div><includeonly>

Latest revision as of 15:48, 29 December 2022