Difference between revisions of "Template:Legio Battle Extract"
From Australis Ultima 30k
m |
|||
(6 intermediate revisions by 2 users not shown) | |||
Line 28: | Line 28: | ||
| Legio XX ={{#vardefine:lcel|L-XX}} | | Legio XX ={{#vardefine:lcel|L-XX}} | ||
| Adeptus Mechanicus ={{#vardefine:lcel|A-MECH}} | | Adeptus Mechanicus ={{#vardefine:lcel|A-MECH}} | ||
+ | | Questoris Familia ={{#vardefine:lcel|Q-KNT}} | ||
}}{{#arraydefine:legiocam|{{#dpl: | }}{{#arraydefine:legiocam|{{#dpl: | ||
|category =Battlereport | |category =Battlereport | ||
|category =Battle | |category =Battle | ||
|category ={{PAGENAME}} | |category ={{PAGENAME}} | ||
− | |include={Battlereport}:date,{armyname}:armyname,{Battlereport}: | + | |include={Battlereport}:date,{armyname}:armyname,{Battlereport}:victor,#Battle Summary[100], |
|notnamespace=Template | |notnamespace=Template | ||
|format=,[[%PAGE%]],$ | |format=,[[%PAGE%]],$ | ||
Line 41: | Line 42: | ||
{{!!}}Battle Name | {{!!}}Battle Name | ||
{{!!}}Battle Summary | {{!!}}Battle Summary | ||
− | {{!!}} | + | {{!!}}Victor |
{{!!}}{{PAGENAME}} Participants | {{!!}}{{PAGENAME}} Participants | ||
{{!-}} | {{!-}} | ||
Line 55: | Line 56: | ||
{{!}}{{#explode:{{#arrayindex:legiocam|{{#var: ilc}}}}|{{!}}|4}}{{!}}{{#explode:{{#arrayindex:legiocam|{{#var: ilc}}}}|{{!}}|5}} | {{!}}{{#explode:{{#arrayindex:legiocam|{{#var: ilc}}}}|{{!}}|4}}{{!}}{{#explode:{{#arrayindex:legiocam|{{#var: ilc}}}}|{{!}}|5}} | ||
{{!}}{{#explode:{{#arrayindex:legiocam|{{#var: ilc}}}}|{{!}}|3}} | {{!}}{{#explode:{{#arrayindex:legiocam|{{#var: ilc}}}}|{{!}}|3}} | ||
− | {{#arraydefine:llegiocam|{{#sub:{{#explode:{{#replace:{{#replace:{{#arrayindex:legiocam|{{#var: ilc}}}}|L|@L}}|A|@A}}|{{!}}| | + | {{#arraydefine:llegiocam|{{#sub:{{#explode:{{#replace:{{#replace:{{#arrayindex:legiocam|{{#var: ilc}}}}|L|@L}}|A|@A}}|{{!}}|2}}|1|{{#len:{{#replace:{{#replace:{{#arrayindex:legiocam|{{#var: ilc}}}}|L|@L}}|A|@A}}}}}}|@}}{{#vardefine:cntllegiocam|{{#arraysize:llegiocam}}}}{{ #vardefine: ilc2 | 0 }}{{!}} |
{{#while: | {{#while: | ||
| {{ #ifexpr: {{ #var: ilc2 }} < {{#var:cntllegiocam}} | true }} | | {{ #ifexpr: {{ #var: ilc2 }} < {{#var:cntllegiocam}} | true }} | ||
Line 66: | Line 67: | ||
}} | }} | ||
{{!}}} | {{!}}} | ||
− | }} | + | }}<noinclude> |
+ | |||
+ | ==Explanation== | ||
+ | This works very similarly to [[Template:Legio Campaign Extract]], minor differences in the volume of data (1 less field returned) and slightly different target Battles instead of Campaigns. | ||
+ | </noinclude> |
Latest revision as of 03:54, 1 May 2019
Imperial Search....No Result
Explanation
This works very similarly to Template:Legio Campaign Extract, minor differences in the volume of data (1 less field returned) and slightly different target Battles instead of Campaigns.