Difference between revisions of "Template:Settlement"

From Wurmpedia
Jump to navigation Jump to search
m
(Checking single table)
Line 1: Line 1:
{| style="float:right; background: transparent;" cellpadding="0" cellspacing="0"
+
<includeonly>
|+style="font-weight: bold" | {{{name|{{PAGENAME}}}}}
 
|-
 
|
 
 
{| style="float:right; margin:1em; width:200px;" cellpadding="3" cellspacing="1" border="1"
 
{| style="float:right; margin:1em; width:200px;" cellpadding="3" cellspacing="1" border="1"
|+ style="text-type: italic;" | ''{{{motto|A village like any other}}}''
+
|+ '''{{{name|{{PAGENAME}}}}}''' <br> ''{{{motto|A village like any other}}}''
 
|-
 
|-
| align="center" |
+
| style="text-align: center;" |
 
{{#switch:{{{type}}}
 
{{#switch:{{{type}}}
|no
+
|no|No
|none
+
|none|None
 
='''Undeeded settlement'''
 
='''Undeeded settlement'''
|v
+
|v|V
|Village
+
|village|Village
={{#if:{{{size|}}}|'''Size {{{size}}}'''|}} '''village'''
+
={{#if:{{{size|}}}|'''Size {{{size}}}'''|}} '''Village'''
|hs
+
|hs|HS
|homestead
+
|homestead|Homestead
={{#if:{{{size|}}}|'''Size {{{size}}}'''|}} '''homestead'''
+
={{#if:{{{size|}}}|'''Size {{{size}}}'''|}} '''Homestead'''
 
|Deed info missing
 
|Deed info missing
 
}}
 
}}
Line 22: Line 19:
 
! style="background-color:#3c5;" | Mayor
 
! style="background-color:#3c5;" | Mayor
 
|-
 
|-
| style="text-align: center;"|{{{mayor|Unknown}}}
+
| style="text-align: center;" | {{{mayor|Unknown}}}
 
|-
 
|-
 
! style="background-color:#3c5;" | Population
 
! style="background-color:#3c5;" | Population
 
|-
 
|-
| style="text-align: center;"|
+
| style="text-align: center;" | {{{population|Unknown}}}
{{{population|Unknown}}}
 
 
|-
 
|-
 
! style="background-color:#3c5;" | Allies
 
! style="background-color:#3c5;" | Allies
Line 39: Line 35:
 
{{{enemies|Unknown}}}
 
{{{enemies|Unknown}}}
 
|}
 
|}
|}
+
</includeonly><noinclude>
  
<noinclude>
+
== Usage examples ==
Usage example:
+
 
 +
{{settlement
 +
|name=Roadside
 +
|motto=All for one and every man for himself
 +
|type=Village
 +
|size=10
 +
|mayor=Roadsidemayor
 +
|population=21
 +
|allies=
 +
*[[Camelot]]
 +
*[[Broken Hills]]
 +
*[[Westport]]
 +
|enemies=None
 +
}}
  
 
<pre>{{settlement
 
<pre>{{settlement
Line 73: Line 82:
 
</pre>
 
</pre>
  
[[Category:Template]]
 
 
*For type write either v or village for a village, homestead or hs for a homestead or no or none for an undeeded settlement.
 
*For type write either v or village for a village, homestead or hs for a homestead or no or none for an undeeded settlement.
 
*To use the default value, erase the 'equals'-sign after a parameter.
 
*To use the default value, erase the 'equals'-sign after a parameter.
 
*Links, lists and other wiki formatting works fine.
 
*Links, lists and other wiki formatting works fine.
 +
 +
[[Category:Template]]
 
</noinclude>
 
</noinclude>

Revision as of 00:08, 10 November 2007


Usage examples

Roadside
All for one and every man for himself

Size 10 Village

Mayor
Roadsidemayor
Population
21
Allies
Enemies

None


{{settlement
|name=Roadside
|motto=All for one and every man for himself
|type=Village
|size=10
|mayor=Roadsidemayor
|population=21
|allies=
*[[Camelot]]
*[[Broken Hills]]
*[[Westport]]
|enemies=None
}}

Empty template thing for copypasters:

{{settlement
|name=
|motto=
|type=
|size=
|mayor=
|population=
|allies=
|enemies=
}}
  • For type write either v or village for a village, homestead or hs for a homestead or no or none for an undeeded settlement.
  • To use the default value, erase the 'equals'-sign after a parameter.
  • Links, lists and other wiki formatting works fine.