Difference between revisions of "Template:Legio Header"
From Australis Ultima 30k
m (→Example Working) |
m (→Example Working) |
||
Line 68: | Line 68: | ||
</div> | </div> | ||
− | {{#switch: | + | {{#switch: 5 |
| 0 = no dpl | | 0 = no dpl | ||
| <10 = dpl + extra | | <10 = dpl + extra |
Revision as of 16:49, 31 August 2014
Example Working
default result
Explanation
- The first DPL extract returns a count of the number of pages that are going to be returned in the Query and sets the variable "cyclecnt" to this number.
- The second block starts of by checking the value of "cyclecnt" if this is less than 10 then it runs through an alternate output which pushes a number of greyed out or place holder marine graphics along the top of the page such that the minimum number of marine icons across the top of the page is 10, mostly for aesthetic reasons.
- If a Legio already has 10 armies present then simply the number of army graphics is displayed whether this is 10 or more.