More actions
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
{{#cargo_declare:_table=Factions | {{#cargo_declare:_table=Factions | ||
| Codename=String | | Codename=String | ||
| Enemies=String | |||
| Leader_1=String | | Leader_1=String | ||
| Leader_2=String | | Leader_2=String | ||
Line 23: | Line 24: | ||
|headers=yes | |headers=yes | ||
}} | }} | ||
== Enemies == | |||
{{#cargo_query: | |||
|tables=Factions AS F1, Factions AS F2 | |||
|fields=F1._pageName=Faction, F2._pageName=EnemyFaction | |||
|join on=1=1 | |||
|where=F2.Codename='{{{Codename}}}' AND (F1.Enemies LIKE CONCAT('%,', F2.Codename, ',%') OR F1.Enemies LIKE CONCAT(F2.Codename, ',%') OR F1.Enemies LIKE CONCAT('%,', F2.Codename) OR F1.Enemies = F2.Codename) | |||
|format=table | |||
|headers=yes | |||
}} | |||
</includeonly> | </includeonly> |
Revision as of 03:43, 7 November 2024
This template defines the table "Factions". View table.