Difference between revisions of "Template:Alliance"

From eRepublik Official Wiki
Jump to: navigation, search
m (Usage)
(Fixes ()
Line 1: Line 1:
 
<includeonly><div style="float:right; clear:right; opacity:1; width:250px; border:2px solid #C6E4F2; -moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;font-size:98%; background-color:#F1FAFF; margin:0px 0px 10px 10px; padding:10px 0px 5px 0px; text-align:left;">
 
<includeonly><div style="float:right; clear:right; opacity:1; width:250px; border:2px solid #C6E4F2; -moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;font-size:98%; background-color:#F1FAFF; margin:0px 0px 10px 10px; padding:10px 0px 5px 0px; text-align:left;">
<div align="center"><span class="plainlinks" style="padding:1px; font-size:130%; font-weight:bold; text-align:center; color:#3C8FA7">{{#if: {{{alliance number|}}}|[http://www.erepublik.com/en/main/alliances/{{{alliance number|}}} <span style="border-bottom:1px dotted #C4E1E9; color:#3C8FA7">{{{alliance name|Unnamed Alliance}}}</span>]|{{{alliance name|<font color="{{{border|#C6E4F2}}}">Unnamed Alliance</font>}}}}} </span>
+
<div align="center"><span class="plainlinks" style="padding:1px; font-size:130%; font-weight:bold; text-align:center; color:#3C8FA7">{{#if: {{{alliance number|}}}|[http://www.erepublik.com/en/main/alliances/{{{alliance number|}}} <span style="border-bottom:1px dotted #C4E1E9; color:#3C8FA7">{{{alliance name|Unnamed Alliance}}}</span>]|{{{alliance name|<font color="{{{border|#C6E4F2}}}">Unnamed Alliance</font>}}}}} </span>
 
<div style="padding: 5px 8px 5px 8px; margin:10px 5px; width:222px; border:1px solid #C6E4F2; background-color:white"  align="center">
 
<div style="padding: 5px 8px 5px 8px; margin:10px 5px; width:222px; border:1px solid #C6E4F2; background-color:white"  align="center">
 
{| style="background:transparent;"
 
{| style="background:transparent;"
Line 36: Line 36:
 
<pre>{{Alliance
 
<pre>{{Alliance
 
<!-- constant variables -->  
 
<!-- constant variables -->  
   |alliance name=  
+
   |alliance name =  
   |alliance number=  
+
   |alliance number =  
   |alliance flag=  
+
   |alliance flag =  
   |alliance map=  
+
   |alliance map =  
  
 
<!-- military variables -->  
 
<!-- military variables -->  
   |formation=  
+
   |formation =  
   |dissolution=  
+
   |dissolution =  
   |type=  
+
   |type =  
   |headquarters=  
+
   |headquarters =  
   |secretary general=  
+
   |secretary general =  
   |members=  
+
   |members =  
   |trial members=  
+
   |trial members =  
   |newspaper=  
+
   |newspaper =  
   |soldiers=  
+
   |soldiers =  
   |average strength=  
+
   |average strength =  
 
}}</pre>
 
}}</pre>
  
Line 74: Line 74:
 
== Example ==
 
== Example ==
  
<pre>{{Alliance|
+
<pre>{{Alliance
  <!-- constant variables --> |
+
<!-- constant variables -->
   alliance name=PEACE Global Community<br>PEACEKeeping Force<br> |
+
   |alliance name = PEACE Global Community<br>PEACEKeeping Force
   alliance flag=Seal-PEACE-DPKO.jpg |
+
  |alliance number = <!-- add in-game alliance page number if exists -->
   alliance map=PEACE-GC-Map.gif|
+
   |alliance flag = Seal-PEACE-DPKO.jpg
 +
   |alliance map = PEACE-GC-Map.gif
 
    
 
    
  <!-- military variables --> |
+
<!-- military variables -->
   formation=August 26, 2008 |
+
   |formation = August 26, 2008
   headquarters=Islamabad, [[Pakistan]] (''de facto'') |
+
  |dissolution = December 2009
   secretary general=[[Nicolae Carpathia]] |
+
   |type = Military
   members=15 |
+
  |headquarters = Islamabad, [[Pakistan]] (''de facto'')
   trial members= 7|
+
   |secretary general = [[Nicolae Carpathia]]
   soldiers=14,000 |
+
   |members = 15
   average strength=2.3 |
+
   |trial members = Test (4)
 +
  |newspaper = No official newspaper reported
 +
   |soldiers = 14,000
 +
   |average strength = 2.3
 
}}</pre>
 
}}</pre>
 
[[Category:Main Templates|Alliance]]
 
[[Category:Main Templates|Alliance]]
 
</noinclude>
 
</noinclude>

Revision as of 16:54, 6 April 2019

NOTE

FOR TRANSLATION USE Template:IAlliance!!!

Usage

{{Alliance
<!-- constant variables --> 
  |alliance name = 
  |alliance number = 
  |alliance flag = 
  |alliance map = 

<!-- military variables --> 
  |formation = 
  |dissolution = 
  |type = 
  |headquarters = 
  |secretary general = 
  |members = 
  |trial members = 
  |newspaper = 
  |soldiers = 
  |average strength = 
}}

All variables have a default value.

PEACE Global Community
PEACEKeeping Force
Formation August 26, 2008
Headquarters Islamabad, Pakistan (de facto)
Secretary-General Nicolae Carpathia
Members 15
Trial Members 7
Soldiers 14,000
Average Strength 2.3


Example

{{Alliance
<!-- constant variables -->
  |alliance name = PEACE Global Community<br>PEACEKeeping Force
  |alliance number = <!-- add in-game alliance page number if exists -->
  |alliance flag = Seal-PEACE-DPKO.jpg
  |alliance map = PEACE-GC-Map.gif
  
<!-- military variables -->
  |formation = August 26, 2008
  |dissolution = December 2009
  |type = Military
  |headquarters = Islamabad, [[Pakistan]] (''de facto'')
  |secretary general = [[Nicolae Carpathia]]
  |members = 15
  |trial members = Test (4)
  |newspaper = No official newspaper reported
  |soldiers = 14,000
  |average strength = 2.3
}}