Template:Creature navbox query: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><span style="display:inline-block">{{#invoke:CargoQuery| main |q?tables=CreatureFactions,GeneralData | <includeonly><span style="display:inline-block">{{#invoke:CargoQuery| main | ||
|q?join= | |q?tables=CreatureFactions=CF,GeneralData=GD,ExtraInfo=EI | ||
|q?where=Faction= | |q?join=CF._pageName=GD._pageName, CF._pageName=EI._pageName | ||
| | |q?fields=GD.PlainName=Page | ||
| | |q?where=Faction='{{#replace:{{{1|}}}|'|\'}}' AND GD._pageNamespace ='0' {{#switch:{{{2|_NULL_}}}|common= AND (EI.Info NOT LIKE "%Unique,%" OR EI.Info IS NULL)|unique= AND EI.Info LIKE "%Unique,%"|}} | ||
|template=favilink | |template=favilink | ||
|delimiter= - </span><span style="display:inline-block">}}</span></includeonly><noinclude>[[Category:Query Templates]]</noinclude> | |delimiter= - </span><span style="display:inline-block">}}</span></includeonly><noinclude>[[Category:Query Templates]] | ||
A query that returns all creatures favilinked within a faction, delimited by hyphens. First argument must be the faction name. | |||
{|class="wikitable" | |||
!second argument | |||
!returns | |||
|- | |||
!common | |||
|returns all common creatures (not unique) | |||
|- | |||
!unique | |||
|returns all unique creatures | |||
|} | |||
By default, all creatures will be returned together regardless of unique status. | |||
</noinclude> |
Revision as of 15:55, 10 September 2019
A query that returns all creatures favilinked within a faction, delimited by hyphens. First argument must be the faction name.
second argument | returns |
---|---|
common | returns all common creatures (not unique) |
unique | returns all unique creatures |
By default, all creatures will be returned together regardless of unique status.