imported>Kiokurashi |
|
(20 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| <includeonly><!-- | | <includeonly>{{#invoke:Usedin|main|{{{1|{{PAGENAME}}}}}}}</includeonly> |
| | <!-- OLD METHOD FOR BACKUP |
|
| |
|
| ## Anvil Section. | | ## Anvil, Stamps, and UsedinExtra Section. |
| -->{{#cargo_compound_query:
| | {{#cargo_compound_query: |
| table=AnvilCraft;where=Resource1="{{{1|{{PAGENAME}}}";fields=CONCAT("[[",_pageName,"]]")=Name,Quantity1=Quantity, CONCAT("Smithing")=Source
| | tables=AnvilCraft;where=Resource1="{{{1|{{PAGENAME}}}}}";fields=Item=Icon,CONCAT("[[",Item,"]]")=Name,Quantity1=Quantity, CONCAT("Smithing")=Source |
| |table=AnvilCraft;where=Resource2="{{{1|{{PAGENAME}}}";fields=CONCAT("[[",_pageName,"]]")=Name,Quantity2=Quantity, CONCAT("Smithing")=Source | | |tables=AnvilCraft;where=Resource2="{{{1|{{PAGENAME}}}}}";fields=Item=Icon,CONCAT("[[",Item,"]]")=Name,Quantity2=Quantity, CONCAT("Smithing")=Source |
| |table=AnvilCraft;where=Resource3="{{{1|{{PAGENAME}}}";fields=CONCAT("[[",_pageName,"]]")=Name,Quantity3=Quantity, CONCAT("Smithing")=Source | | |tables=AnvilCraft;where=Resource3="{{{1|{{PAGENAME}}}}}";fields=Item=Icon,CONCAT("[[",Item,"]]")=Name,Quantity3=Quantity, CONCAT("Smithing")=Source |
| |table=AnvilCraft;where=Resource4="{{{1|{{PAGENAME}}}";fields=CONCAT("[[",_pageName,"]]")=Name,Quantity4=Quantity, CONCAT("Smithing")=Source | | |tables=AnvilCraft;where=Resource4="{{{1|{{PAGENAME}}}}}";fields=Item=Icon,CONCAT("[[",Item,"]]")=Name,Quantity4=Quantity, CONCAT("Smithing")=Source |
| |format=template | | |tables=Stamps;where=Material="{{{1|{{PAGENAME}}}}}";fields=_pageName=Icon,CONCAT("[[",_pageName,"]]")=Name, CONCAT("Lots")=Quantity, CONCAT("Stamps")=Source, Bonus=TooltipString |
| |template=Usedin/row
| | |tables=UsedinExtraData;where=Item="{{{1|{{PAGENAME}}}}}";fields=Icon=Icon,CONCAT("[[",Source,"]]")=Name, Amount=Quantity, Type=Source;order by=Source ASC |
| |named args=yes
| |
| |default=
| |
| }}
| |
| <!-- Old way for reserve
| |
| {{#cargo_query:tables=AnvilCraft
| |
| |fields=CONCAT("[[",_pageName,"]]")=Name, Quantity1=Quantity, CONCAT("Smithing")=Source
| |
| |where=Resource1="{{{1|{{PAGENAME}}}}}"
| |
| |format=template
| |
| |template=Usedin/row
| |
| |named args=yes
| |
| |default=
| |
| }}{{#cargo_query:tables=AnvilCraft
| |
| |fields=CONCAT("[[",_pageName,"]]")=Name, Quantity2=Quantity, CONCAT("Smithing")=Source
| |
| |where=Resource2="{{{1|{{PAGENAME}}}}}" | |
| |format=template
| |
| |template=Usedin/row
| |
| |named args=yes
| |
| |default=
| |
| }}{{#cargo_query:tables=AnvilCraft
| |
| |fields=CONCAT("[[",_pageName,"]]")=Name, Quantity3=Quantity, CONCAT("Smithing")=Source
| |
| |where=Resource3="{{{1|{{PAGENAME}}}}}"
| |
| |format=template
| |
| |template=Usedin/row
| |
| |named args=yes | | |named args=yes |
| |default=
| |
| }}{{#cargo_query:tables=AnvilCraft
| |
| |fields=CONCAT("[[",_pageName,"]]")=Name, Quantity4=Quantity, CONCAT("Smithing")=Source
| |
| |where=Resource4="{{{1|{{PAGENAME}}}}}"
| |
| |format=template | | |format=template |
| |template=Usedin/row
| |
| |named args=yes
| |
| |default=
| |
| }}--><!--
| |
|
| |
|
| ## Quests Section.
| |
| -->{{#cargo_query:tables=Quests
| |
| |fields=CONCAT("[[",_pageName,"#",QuestName,"|",QuestName,"]]")=Name, Requirements=Quantity, CONCAT("Quests")=Source
| |
| |where=(Requirements LIKE "%>{{{1|{{PAGENAME}}}}}<%") AND NOT (Requirements LIKE "%{{PAGENAME}} Tooth%"
| |
| OR Requirements LIKE "%Sticky {{PAGENAME}}%")
| |
| |format=template
| |
| |template=Usedin/questsrow
| |
| |named args=yes
| |
| |default=
| |
| }}<!--
| |
|
| |
| ## Stamps Section.
| |
| -->{{#cargo_query:tables=Stamps
| |
| |fields=CONCAT("[[",_pageName,"]]")=Name, CONCAT("Lots")=Quantity, CONCAT("Stamps")=Source
| |
| |where=Material="{{{1|{{PAGENAME}}}}}"
| |
| |format=template
| |
| |template=Usedin/row | | |template=Usedin/row |
| |named args=yes
| |
| |default= | | |default= |
| }}<!-- | | }}<!-- |
|
| |
|
| ## Extra Data Section. (Things not in the above sections) | | ## Quests Section. Separate because needs different template. |
| -->{{#cargo_query:tables=UsedinExtraData
| | {{#cargo_query:tables=Quests |
| |fields=CONCAT("[[",Source,"]]")=Name, Amount=Quantity, Type=Source | | |fields=_pageName=Icon, CONCAT("[[",_pageName,"#",QuestName,"|",QuestName,"]]")=Name, Requirements=Quantity, CONCAT("Quests")=Source |
| |where=Item="{{{1|{{PAGENAME}}}}}" | | |where=Requirements LIKE "%>{{{1|{{PAGENAME}}}}}<%" |
| |format=template | | |format=template |
| |template=Usedin/row | | |template=Usedin/questsrow |
| |named args=yes | | |named args=yes |
| |default= | | |default= |
| }}</includeonly> | | }} |
| | --> |