Difference between revisions of "Template:Army/Preload"

From Australis Ultima 30k
Jump to: navigation, search
m
 
(34 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!--Welcome to the Army preloader/creator. This page is pre-configured with the normal headings and required -->
+
{{Army Header
[[Category:Template]]              <!--REMOVE -->
+
|army name=Enter Army Name        <!-- The name of your Army/Force -->
 +
}}
  
{{Preset Army Data}}
+
{{Preset Army Data}}               <!--DO NOT REMOVE -->
[[Category:{{#var:legio}}]]        <!--DO NOT REMOVE -->
+
[[Category:{{#var:designation}}]]  <!--DO NOT REMOVE -->
+
[[Category:Player]]                <!--DO NOT REMOVE -->
+
[[Category:{{FULLPAGENAME}}]]      <!--DO NOT REMOVE -->
+
[[Category:Uncompleted Army]]      <!-- Change this to Completed Army ONLY when the fluff has been entered -->
+
  
  
 
+
[[Category:Uncompleted Army]]              <!-- Change this to Completed Army ONLY when the History/Fluff has been entered -->
{{Infobox Army
+
[[Category:Template]]                      <!--REMOVE -->
|Box title    = {{FULLPAGENAME}}          <!-- No need to adjust this one -->
+
{{Infobox Army                             <!--DO NOT CHANGE  -->
|image        = File:{{#var:legio}}.png           <!-- The image used to represent your army, replace stock Legio image -->
+
|image        = File:Legio Nil.png         <!-- The image used to represent your army, replace stock Legio image options: http://aus30k.com/30kwiki/index.php?title=Category:Force_Image -->
|imagewidth  = 100                        <!-- No need to adjust this one -->
+
|imagelink    = {{FULLPAGENAME}}          <!-- No need to adjust this one -->
+
 
|caption      =                            <!-- Can be left blank or Description of Image; i.e. Company Badge, Force Commander etc -->
 
|caption      =                            <!-- Can be left blank or Description of Image; i.e. Company Badge, Force Commander etc -->
|Legio        = I                          <!-- No need to update this one -->
+
|Cognomen    =                           <!-- The name of your Army/Force -->
|Designation  = {{FULLPAGENAME}}          <!-- No need to adjust this one -->
+
|allegiance   =                           <!-- Loyalist/Traitor/Undecided/Unknown -->
|Allegiance   = [[Loyalist]]              <!-- Loyalist or Traitor -->
+
|Owner        =                            <!-- Enter your User Name here, it can be found in the top right hand corner of the screen -->
|Major Battles=                            <!-- This will update automatically with Battle Reports -->
+
|Minor Battles=                            <!-- This will update automatically with Battle Reports -->
+
|image2      =Image:Loyalist.png          <!-- Represents your armies allegiance, change if required -->
+
|imagewidth2  =140                        <!-- No need to adjust this one -->
+
|imagelink2  =                            <!-- Leave blank to have no link -->
+
|caption2    =                            <!-- Normally Left Blank -->
+
 
}}                                        <!--DO NOT CHANGE  -->
 
}}                                        <!--DO NOT CHANGE  -->
 
 
  
 
<!-- You are free to enter other headings other than the 4 detailed below or subheadings under these headings -->
 
<!-- You are free to enter other headings other than the 4 detailed below or subheadings under these headings -->
 
 
  
 
==History==
 
==History==
<!-- Enter History Information  -->
+
Enter your armies fluff history and background here. Feel free to add subheadings and images as you need under this area to flesh out your army. Suggested subheadings, Notable hero's, famous battles, general history and current leader.
  
==Battles participated in the Australis Ultima Sector==
 
<!--Please do not edit this section it auto updates if your battle report has been classified correctly. It can take up-to 24 hours for a battlereport to be added please be patient-->
 
===Major===
 
{{#dpl:category=Battlereport
 
  |category=Major
 
  |category={{FULLPAGENAME}}
 
  |includepage={Battlereport} dpl6,#Battle Report[200..more..]
 
  |addpagecounter=true
 
  |format=¶{¦ class="wikitable sortable"
 
    ¶!Battle Name
 
    ¶!Date
 
    ¶!Sub-Sector
 
    ¶!System
 
    ¶!Planet
 
    ¶!Outcome
 
    ¶!Battle Summary,¶¦-¶¦[[%PAGE%]],,¶¦}
 
  |secseparators=¶¦
 
}}
 
  
 +
==Combat Reports for {{PAGENAME}}==
 +
<!-------------------------------------------------------------------------->
 +
<!-------------------------------------------------------------------------->
 +
<!--Please do not edit this section it auto updates if your battle report has
 +
been classified correctly. It can take up-to 24 hours for a battlereport to be
 +
added please be patient-->
 +
<!-------------------------------------------------------------------------->
 +
<!-------------------------------------------------------------------------->
 +
===Campaigns===
 +
<!--Do Not Edit-->
 +
{{Template:Campaign Summary}}
  
===Minor===
 
<!--Please do not edit this section (except to update the planet name indicated below) it auto updates if your battle report has been classified correctly. It can take up-to 24 hours for a battlereport to be added please be patient-->
 
  
==== Contributed to a Major Battle ====
+
===Battles===
 +
<!--Do Not Edit-->
 +
{{Template:Battle Summary}}
  
 
+
[[Category:{{#var:legio}}]]        <!--DO NOT REMOVE -->
<!--extract the dpl this is done strangely so the page name is attached at the end
+
[[Category:{{#var:designation}}]]  <!--DO NOT REMOVE -->
of each string of minor battle report allows for a link back to the main battle report below.
+
[[Category:Player]]               <!--DO NOT REMOVE -->
Then its a bunch of find and replace stuff so that all the wikitable formatting is removed or most of it,
+
[[Category:{{FULLPAGENAME}}]]     <!--DO NOT REMOVE -->
very painful to remove | had to use bracketed {{!}}-->
+
 
+
{{#vardefine:x|{{#dpl:|category={{FULLPAGENAME}}|category=Battlereport|category=Major|includepage={battlereportminor2}:player1:player2:Outcome:Skirmish name:%PAGE%|table= ,- }}}}
+
{{#vardefine:x|{{#replace:{{#var:x}}|{{!}}|@}}}}
+
{{#vardefine:x|{{#replace:{{#var:x}}|{@class=wikitable|}}}}
+
{{#vardefine:x|{{#replace:{{#var:x}}|}|}}}}
+
{{#vardefine:x|{{#replace:{{#var:x}}|@-|$}}}}
+
{{#vardefine:x|{{#replace:{{#var:x}}|$ |$}}}}
+
 
+
<!-- Builds the array splitting on dollar sign, this leaves a string in the rough format of @player @player @Outcome @Text @BattlereportPage, there are few vagrant spaces around the place but these get ignored below -->
+
{{#arraydefine:minorall|{{#var:x}}|$}}
+
 
+
 
+
<!-- This is the loop to filter out and rebuild the report list so that only those skirmishes relating to this army are displayed-->
+
{{ #vardefine: i | 0 }}
+
{{ #vardefine: asize |{{#arraysize:minorall}}}}
+
{{
+
  #while:
+
  | {{ #ifexpr: {{ #var: i }} < {{ #var: asize }} | true }}
+
  |<nowiki/>
+
{{#ifeq: {{FULLPAGENAME}} |{{#explode:{{#arrayindex:minorall|{{ #var: i }}}}|@|1}} |
+
{{#vardefine: Lplayer |{{#explode:{{#arrayindex:minorall|{{ #var: i }}}}|@|1}}}}
+
{{#vardefine: Tplayer |{{#explode:{{#arrayindex:minorall|{{ #var: i }}}}|@|2}}}}
+
{{#vardefine: Outcome |{{#explode:{{#arrayindex:minorall|{{ #var: i }}}}|@|3}}}}
+
{{#vardefine: Text |{{#explode:{{#arrayindex:minorall|{{ #var: i }}}}|@|4}}}}
+
{{#vardefine: Mainbattle |{{#explode:{{#arrayindex:minorall|{{ #var: i }}}}|@|5}}}}
+
* {{#var:Text}} - {{#var:Lplayer}} vs {{#var:Tplayer}} - {{#ifeq: {{#var:Outcome}} | TW | Traitor Victory | {{#ifeq: {{#var:Outcome}} | LW | Loyalist Victory| Stalemate }}  }} - Fought as part of Major Batlle:[[{{#var:Mainbattle}}]]  
+
| {{#ifeq: {{FULLPAGENAME}} |{{#explode:{{#arrayindex:minorall|{{ #var: i }}}}|@|2}} |
+
{{#vardefine: Lplayer |{{#explode:{{#arrayindex:minorall|{{ #var: i }}}}|@|1}}}}
+
{{#vardefine: Tplayer |{{#explode:{{#arrayindex:minorall|{{ #var: i }}}}|@|2}}}}
+
{{#vardefine: Outcome |{{#explode:{{#arrayindex:minorall|{{ #var: i }}}}|@|3}}}}
+
{{#vardefine: Text |{{#explode:{{#arrayindex:minorall|{{ #var: i }}}}|@|4}}}}
+
{{#vardefine: Mainbattle |{{#explode:{{#arrayindex:minorall|{{ #var: i }}}}|@|5}}}}
+
* {{#var:Text}} - {{#var:Lplayer}} vs {{#var:Tplayer}} - {{#ifeq: {{#var:Outcome}} | TW | Traitor Victory | {{#ifeq: {{#var:Outcome}} | LW | Loyalist Victory| Stalemate }}  }} - Fought as part of Major Batlle:[[{{#var:Mainbattle}}]] }}}}
+
{{ #vardefine: i | {{ #expr: {{ #var: i }} + 1 }} }}
+
}}
+
 
+
==== Standalone Minor Skirmish ====
+
{{#dpl:category=Battlereport
+
  |category=Minor
+
  |category={{FULLPAGENAME}}
+
  |includepage={Battlereportskirmish} dpl,
+
  |mode=userformat
+
  |format=,*[[%PAGE%]] - ,,\n
+
}}
+

Latest revision as of 21:28, 15 February 2018

Enter Army Name
Army/Preload
Legio Nil.png
'



Division

Primus

Designation:

Template:Army/Preload

Cognomen:

Allegiance:

Undecided

Owner:

[[User:]]


NonLegio.png


History

Enter your armies fluff history and background here. Feel free to add subheadings and images as you need under this area to flesh out your army. Suggested subheadings, Notable hero's, famous battles, general history and current leader.


Combat Reports for Army/Preload

Campaigns

Imperial Search....No Result


Battles

Imperial Search....No Result

[[Category:]] [[Category:]]