Difference between revisions of "Template:EnderalSettlements"

From sureai
Jump to: navigation, search
(Usage)
m (Fix rounded corner in newer Firefox versions)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{|width="20%" border="1" cellspacing="1" cellpadding="3" style="float:right; border-collapse:collapse; background-color:#b1ab8f; solid;"
+
{| style = "float: right; background: RGB(177, 171, 143); border-collapse: collapse; margin: 5px 5px 10px 20px; width: 300px; "
  
|align = "center" colspan = "2" style="background-color: #49493b;"|<font color=#FFF> '''{{{name}}}''' <br>[[{{{image}}}|300px|]]</font>  
+
| colspan="2" style="text-align: center; color: white; font-weight: bold; width: 100%; "| <div style="background: RGB(147, 56, 56); border-radius: 5px; font-size: 150%; padding: 0 10px; "> {{{name|{{PAGENAME}}}}} </div>
 
|-
 
|-
|'''Settlement Type'''
+
| colspan="2" style="padding: 5px 0 10px 0; text-align: center; " | <span style="display: inline-block; overflow: hidden; border-radius: 5px;">[[File:{{{image|SureaiLogo2016.png}}}|300px]]</span>
|{{{type}}}
+
 
|-
 
|-
|'''Region'''
+
| style="text-align: right; padding-right: 5px; width: 50%;" | '''Settlement Type'''
|{{{region}}}
+
| style="width: 50%; " | {{{type|-}}}
 
|-
 
|-
|'''Mayor'''
+
|style="text-align: right; padding-right: 5px; width: 50%; " | '''Region'''
|{{{mayor}}}
+
| style="width: 50%; " | {{{region|-}}}
 
|-
 
|-
|'''Population'''
+
|style="text-align: right; padding-right: 5px; width: 50%; " | '''Mayor'''
|{{{pop}}}
+
| style="width: 50%; " | {{{mayor|-}}}
 +
|-
 +
|style="text-align: right; padding-right: 5px; width: 50%; " | '''Population'''
 +
| style="width: 50%; " | {{{pop|-}}}
 
|}
 
|}
  
 
<noinclude>
 
<noinclude>
===Usage===
+
==Usage==
To use this template, insert the following code on the page, and fill in the info. The image link must be formatted like this: "File:Nameoftheimage.jpg
+
 
 +
===Parameters===
 +
* '''Text Parameters:''' name, image, type, region, mayor, pop
 +
If the parameter "name" is not set, the template will use the current page's name (without the namespace) as a name.
 +
 
 +
===Examples===
 +
<pre style = "width: 33%; ">
 +
{{EnderalSettlements
 +
|name = SureAI Wiki
 +
|image = EN-Place-Fogwatch.png
 +
|type = Wiki
 +
|region = The Internet
 +
|mayor = Everyone
 +
|pop= 9001
 +
}}</pre>
 +
 
 +
<div style = "display: inline-block;" >
 +
{{EnderalSettlements
 +
|name = SureAI Wiki
 +
|image = EN-Place-Fogwatch.png
 +
|type = Wiki
 +
|region = The Internet
 +
|mayor = Everyone
 +
|pop= 9001
 +
}}
 +
</div>
 +
 
 +
<pre style = "width: 33%; ">
 +
{{EnderalSettlements}}
 +
</pre>
  
<nowiki>{{EnderalSettlements|name=|image=|type=|region=|mayor=|pop=}}</nowiki>
+
<div style = "display: inline-block;" >
 +
{{EnderalSettlements}}
 +
</div>
  
 +
[[Category:Templates]]
 
<noinclude>
 
<noinclude>

Latest revision as of 15:35, 25 June 2017

EnderalSettlements
SureaiLogo2016.png
Settlement Type -
Region -
Mayor -
Population -


Usage

Parameters

  • Text Parameters: name, image, type, region, mayor, pop

If the parameter "name" is not set, the template will use the current page's name (without the namespace) as a name.

Examples

{{EnderalSettlements
|name = SureAI Wiki
|image = EN-Place-Fogwatch.png
|type = Wiki
|region = The Internet
|mayor = Everyone
|pop= 9001 
}}
SureAI Wiki
EN-Place-Fogwatch.png
Settlement Type Wiki
Region The Internet
Mayor Everyone
Population 9001


{{EnderalSettlements}}
EnderalSettlements
SureaiLogo2016.png
Settlement Type -
Region -
Mayor -
Population -