Template:Main page event tab



{{#if:{{#var:banner}} | {{#if:{{{portalType|}}} | Armament | {{#vardefine:armements|{{#cargo_query:table=Portal__featuredArmaments,Portal }} }}
 * join on=Portal__featuredArmaments._rowId=Portal._ID
 * fields=CONCAT("'", _value, "'")
 * where=Portal.name='{{EscQ|{{#var:banner}}}}'
 * default=''
 * no html

{{#invoke:Loops|parseList }} {{#vardefine:units|{{#cargo_query:table=Portal__featuredUnits,Portal }} }}
 * list={{#var:armaments}}
 * delimiter=,
 * format=
 * $1
 * replaceString=$1
 * join on=Portal__featuredUnits._rowId=Portal._ID
 * fields=CONCAT("'", _value, "'")
 * where=Portal.name='{{EscQ|{{#var:banner}}}}'
 * default=''
 * no html

{{#invoke:Loops|parseList }} }}
 * list={{#var:units}}
 * delimiter=,
 * format=
 * $1
 * replaceString=$1