Difference between revisions of "Template:Legio Battle Extract"
From Australis Ultima 30k
(Created page with "{| class="wikitable" style="" {{#vardefine:errcheck|{{#sub:{{#dpl: |category =Battlereport |category =Battle |category ={{PAGENAME}} |notnamespace=Template }}|3|9}}}} {{#ifeq:...") |
m |
||
Line 32: | Line 32: | ||
|category =Battle | |category =Battle | ||
|category ={{PAGENAME}} | |category ={{PAGENAME}} | ||
− | |include= | + | |include={Battlereport}:date,{armyname}:armyname,{Battlereport}:outcome,#Battle Summary[200], |
|notnamespace=Template | |notnamespace=Template | ||
|format=,[[%PAGE%]],$ | |format=,[[%PAGE%]],$ | ||
|secseparators=¶¦ | |secseparators=¶¦ | ||
− | }}|$}} | + | }}|$}}{{!!}}Date |
− | + | ||
− | {{!!}}Date | + | |
{{!!}}Campaign Name | {{!!}}Campaign Name | ||
{{!!}}Campaign Summary | {{!!}}Campaign Summary | ||
Line 51: | Line 49: | ||
| {{ #ifexpr: {{ #var: ilc }} < {{#expr:{{#var:cntlegiocam}}-1}} | true }} | | {{ #ifexpr: {{ #var: ilc }} < {{#expr:{{#var:cntlegiocam}}-1}} | true }} | ||
|{{!-}} | |{{!-}} | ||
− | {{!}} | + | {{!}}{{#explode:{{#arrayindex:legiocam|{{#var: ilc}}}}|{{!}}|1}} |
− | + | ||
{{!}}{{#explode:{{#arrayindex:legiocam|{{#var: ilc}}}}|{{!}}|0}} | {{!}}{{#explode:{{#arrayindex:legiocam|{{#var: ilc}}}}|{{!}}|0}} | ||
− | {{!}}{{#explode:{{#arrayindex:legiocam|{{#var: ilc}}}}|{{!}}| | + | {{!}}{{#explode:{{#arrayindex:legiocam|{{#var: ilc}}}}|{{!}}|4}}{{!}}{{#explode:{{#arrayindex:legiocam|{{#var: ilc}}}}|{{!}}|5}} |
− | {{!}}{{#explode:{{#arrayindex:legiocam|{{#var: ilc}}}}|{{!}}| | + | {{!}}{{#explode:{{#arrayindex:legiocam|{{#var: ilc}}}}|{{!}}|3}} |
− | {{#arraydefine:llegiocam|{{#sub:{{#explode:{{#replace:{{#arrayindex:legiocam|{{#var: ilc}}}}|L|@L}}|{{!}}| | + | {{#arraydefine:llegiocam|{{#sub:{{#explode:{{#replace:{{#arrayindex:legiocam|{{#var: ilc}}}}|L|@L}}|{{!}}|2}}|1|{{#len:{{#replace:{{#arrayindex:legiocam|{{#var: ilc}}}}|L|@L}}}}}}|@}}{{#vardefine:cntllegiocam|{{#arraysize:llegiocam}}}}{{ #vardefine: ilc2 | 0 }}{{!}} |
{{#while: | {{#while: | ||
| {{ #ifexpr: {{ #var: ilc2 }} < {{#var:cntllegiocam}} | true }} | | {{ #ifexpr: {{ #var: ilc2 }} < {{#var:cntllegiocam}} | true }} |