Template:Sources: Difference between revisions

From IdleOn MMO Wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#invoke:LuaVar|append|name=Sources|value={{#cargo_query:tables=AnvilCraft
<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, ")"))
|fields=IF(RecipeFrom = "Start", CONCAT("[[Smithing]]"), CONCAT("[[Smithing]] (", RecipeFrom, ")"))
|where=_pageName LIKE "{{{1|{{PAGENAME}}}}}"
|where=_pageName LIKE "{{{1|{{PAGENAME}}}}}"
Line 35: Line 41:
|intro={{#ifeq:{{#invoke:LuaVar|var|name=Sources}}|Sources is undefined.||, }}
|intro={{#ifeq:{{#invoke:LuaVar|var|name=Sources}}|Sources is undefined.||, }}
}}}}{{#invoke:LuaVar|append|name=Sources|value={{#cargo_query:tables=Sources
}}}}{{#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>")
|fields=CONCAT("<br/><sup><i>", Item, " can be obtained from any enemy during its event.</i></sup>")
|where=Item="{{{1|{{PAGENAME}}}}}" AND EventRules=1
|where=Item="{{{1|{{PAGENAME}}}}}" AND EventRules=1
|format=list
|format=list
|group by=Item
|group by=Item
|default=
|default=
}}}}<includeonly>
}}}}<!--
 
### Cargo Store ###
-->{{#cargo_store:_table=Sources
  |Item={{{1|{{PAGENAME}}}}}
  |Sources={{#ifeq:{{#invoke:LuaVar|var|name=Sources}}|Sources is undefined.|{{{backup|Unobtainable}}}|{{#invoke:LuaVar|var|name=Sources}}}}
}}</div><includeonly>

Revision as of 16:08, 27 December 2022

This template defines the table "FullSourceLists". This table has not been created yet.