Difference between revisions of "Template:Server"

From Wurmpedia
Jump to navigation Jump to search
(New template for server pages)
 
m
(22 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
{| class="wikitable" style="float:right; margin:1em; width:250px;" cellpadding="3" cellspacing="0" border="1"
 
{| class="wikitable" style="float:right; margin:1em; width:250px;" cellpadding="3" cellspacing="0" border="1"
|+ style="font-weight: bold" | {{{name|{{PAGENAME}}}}} <br /> {{#switch: {{lc:{{{cluster}}}}} |f|freedom = '''Freedom Cluster''' |e|epic = '''Epic Cluster''' |#default = '''Special Server'''}}
+
|+ style="font-weight: bold" | {{{name|{{PAGENAME}}}}}<br />{{#switch: {{lc:{{{cluster}}}}} |f|freedom = '''Southern Freedom Isles''' |n|northern = '''Northern Freedom Isles''' |e|epic = '''Epic Cluster''' |#default = '''Special Server'''}}
 
|-
 
|-
 
|
 
|
{{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.jpg}}}
+
{{#if:{{{noimage|}}}
| [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|200px|A {{{name|{{PAGENAME}}}}}]]
+
| '''No image published'''
    | {{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.png}}}
+
}}
        | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|200px|{{{name|{{PAGENAME}}}}}]]
+
{{#if:{{{image|}}}
        | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|200px|{{{name|{{PAGENAME}}}}}]] [[Category:Needs image]]
+
| [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|250px|A {{{name|{{PAGENAME}}}}}]]
    }}
 
 
}}
 
}}
 
|-
 
|-
Line 16: Line 15:
 
|
 
|
 
{{#if:{{{date|}}}
 
{{#if:{{{date|}}}
  | '''Date Added''': {{{date}}}<br />
+
  | '''Genesis''': {{{date}}}<br />
 
}}
 
}}
 
{{#if:{{{size|}}}
 
{{#if:{{{size|}}}
  | '''Size in Tiles''': {{{size}}}<br />
+
  | '''Tiles''': {{{size}}}<br />
 
}}
 
}}
 
{{#if:{{{twitter|}}}
 
{{#if:{{{twitter|}}}
 
  | '''Twitter''': [http://twitter.com/{{{twitter}}} @{{{twitter}}}]<br />
 
  | '''Twitter''': [http://twitter.com/{{{twitter}}} @{{{twitter}}}]<br />
 
}}
 
}}
{{#if:{{{altname|}}}
+
{{#if:{{{mrtg-name|}}}
  | '''Alternative Name''': {{{altname}}}<br />
+
  | '''MRTG''': {{#switch: {{lc:{{{mrtg-name}}}}}
}}
+
  |elevation
 +
  |affliction
 +
  |desertion
 +
  |serenity = [http://{{{mrtg-name}}}.wurmonline.com/mrtg/ {{{mrtg-name}}}]<br />
 +
  |#default = [http://{{{mrtg-name}}}.game.wurmonline.com/mrtg/ {{{mrtg-name}}}]<br />
 +
}}}}
 
{{#if:{{{forum-url|}}}
 
{{#if:{{{forum-url|}}}
 
  | '''Forum''': [{{{forum-url}}} {{PAGENAME}}]
 
  | '''Forum''': [{{{forum-url}}} {{PAGENAME}}]
Line 51: Line 55:
 
{{#ifeq:{{lc:{{{deeds}}}}}|influence|;Deeds: [[Settlements]] can only be placed within kingdom influence.|;Deeds: [[Settlements]] can be placed anywhere.}}
 
{{#ifeq:{{lc:{{{deeds}}}}}|influence|;Deeds: [[Settlements]] can only be placed within kingdom influence.|;Deeds: [[Settlements]] can be placed anywhere.}}
 
{{#ifeq:{{lc:{{{guard-towers}}}}}|yes|;Guard Towers: Required to expand kingdom influence.|;Guard Towers: Optional}}
 
{{#ifeq:{{lc:{{{guard-towers}}}}}|yes|;Guard Towers: Required to expand kingdom influence.|;Guard Towers: Optional}}
{{#ifeq:{{lc:{{{champions}}}}}|yes|;Champions: Yes, players may become [[champions]].|;Champions: No, players cannot become [[champions]]}}
+
{{#ifeq:{{lc:{{{champions}}}}}|yes|;Champions: Yes, players may become [[Champion_player|champions]].|;Champions: No, players cannot become [[Champion_player|champions]]}}
{{#ifeq:{{lc:{{{artifacts}}}}}|yes|;Artifacts: Yes, [[artifacts]] spawn in the world.|;Artifacts: No, [[artifacts]] do not spawn.}}
+
{{#ifeq:{{lc:{{{artifacts}}}}}|yes|;Artifacts: Yes, [[Locate_Artifact#List_of_artifacts|artifacts]] spawn in the world.|;Artifacts: No, [[Locate_Artifact#List_of_artifacts|artifacts]] do not spawn.}}
 
{{#if:{{{faiths|}}}|;Allowed Faiths: {{{faiths}}}|&nbsp;}}
 
{{#if:{{{faiths|}}}|;Allowed Faiths: {{{faiths}}}|&nbsp;}}
 
{{#ifeq:{{lc:{{{traders}}}}}|no|;Traders: Cannot be placed by players.|&nbsp;}}
 
{{#ifeq:{{lc:{{{traders}}}}}|no|;Traders: Cannot be placed by players.|&nbsp;}}
Line 70: Line 74:
 
</includeonly>
 
</includeonly>
  
'''Usage'''
+
<noinclude>
 +
Creates a sidebar containing information about a server.
  
TBC
+
==Usage Example==
 +
<pre>
 +
{{server
 +
|image=Exodus_250.jpg
 +
|cluster=freedom
 +
|date=September 15th, 2011
 +
|size=2048x2048
 +
|twitter=freedom003
 +
|mrtg-name=Freedom003
 +
|forum-url=http://forum.wurmonline.com/index.php?/forum/72-exodus/
 +
|start-towns=[[Settlement:Esert|Esert]]
 +
|faiths=Vynora, Fo, Magranon, Tosiek, Nahjo, Nathan
 +
|kingdoms=[[Freedom]]
 +
}}
 +
</pre>
 +
[[Category:Template]]
 +
</noinclude>

Revision as of 07:16, 10 August 2020


Creates a sidebar containing information about a server.

Usage Example

{{server
|image=Exodus_250.jpg
|cluster=freedom
|date=September 15th, 2011
|size=2048x2048
|twitter=freedom003
|mrtg-name=Freedom003
|forum-url=http://forum.wurmonline.com/index.php?/forum/72-exodus/
|start-towns=[[Settlement:Esert|Esert]]
|faiths=Vynora, Fo, Magranon, Tosiek, Nahjo, Nathan
|kingdoms=[[Freedom]]
}}