Difference between revisions of "Template:Islandlink"

From Twinsuniverse
Jump to: navigation, search
(Created page with "<includeonly>{{#switch: {{lc:{{{1|}}}}} |twinsun = <span class="articlelink island twinsun"> |moon = <span class="articlelink island moon"> |zeelich = <span class="artic...")
 
(added infobox)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{lc:{{{1|}}}}}
+
<includeonly>{{#if: {{{2|}}}
|twinsun  = <span class="articlelink island twinsun">
+
|{{#switch: {{lc:{{{1|}}}}}
|moon    = <span class="articlelink island moon">
+
    |twinsun  = <span class="articlelink island twinsun">
|zeelich  = <span class="articlelink island zeelich">
+
    |moon    = <span class="articlelink island moon">
|undergas = <span class="articlelink island undergas">
+
    |zeelich  = <span class="articlelink island zeelich">
|#default = <span>
+
    |undergas = <span class="articlelink island undergas">
}}{{#if:{{{2|}}}|[[{{{2}}}]]|[[island]]}}</span></includeonly><noinclude>
+
    |#default = <span>}}[[{{{2}}}]]
 +
}}</span></includeonly><noinclude>{{Infobox Template
 +
|purpose=formatting
 +
|singletag=no
 +
|multiline=no
 +
|gamerelated=yes
 +
|suppressible=
 +
|choice=
 +
|cat1=
 +
|var1=
 +
}}
 +
 
 
This template formats island links in the special Twinsun, Emerald Moon, Zeelich's Surface and Zeelich's Undergas themes.
 
This template formats island links in the special Twinsun, Emerald Moon, Zeelich's Surface and Zeelich's Undergas themes.
 
There is no automatic categorization.
 
There is no automatic categorization.
Line 16: Line 27:
 
#* ''undergas''
 
#* ''undergas''
 
#* any other value will render a normal link.
 
#* any other value will render a normal link.
# The articlename of the island to link to (value is case sensitive, defaults to "island")
+
# The articlename of the island to link to (value is case sensitive, defaults to nothing displayed)
  
 
==Examples==
 
==Examples==
Line 29: Line 40:
 
:<span class="articlelink island zeelich">[[Otringal]]</span>
 
:<span class="articlelink island zeelich">[[Otringal]]</span>
 
:<span class="articlelink island undergas">[[Island of the Wannies]]</span>
 
:<span class="articlelink island undergas">[[Island of the Wannies]]</span>
 
 
You may leave the "island" undefined (which does not raise any maintenance task), by not specifying any valid value, but this will not be very useful, so these all have the same result:
 
<nowiki>{{islandlink|twinsun}}</nowiki>
 
<nowiki>{{islandlink|twinsun|}}</nowiki>
 
<nowiki>{{islandlink|twinsun|1=}}</nowiki>
 
<nowiki>{{islandlink|twinsun|1=  }}</nowiki>
 
<nowiki>{{islandlink|twinsun|5=}}</nowiki>
 
 
:<span class="articlelink island twinsun">[[island]]</span>
 
  
  
Line 47: Line 48:
 
  <nowiki>{{islandlink|1=|Otringal}}</nowiki>
 
  <nowiki>{{islandlink|1=|Otringal}}</nowiki>
 
  <nowiki>{{islandlink|1=    |Otringal}}</nowiki>
 
  <nowiki>{{islandlink|1=    |Otringal}}</nowiki>
 +
<nowiki>{{islandlink|Trouble|Otringal}}</nowiki>
 +
<nowiki>{{islandlink|Earth|Otringal}}</nowiki>
 +
<nowiki>{{islandlink|Twinsuniverse|Otringal}}</nowiki>
  
 
:<span>[[Otringal]]</span>
 
:<span>[[Otringal]]</span>
  
  
[[Category:Formatting Templates]]
+
You may leave the "island" undefined (which does not raise any maintenance task), by not specifying any nonempty value, so these all have the same result (nothing displayed):
 +
<nowiki>{{islandlink|twinsun}}</nowiki>
 +
<nowiki>{{islandlink|twinsun|}}</nowiki>
 +
<nowiki>{{islandlink|twinsun|1=}}</nowiki>
 +
<nowiki>{{islandlink|twinsun|1=  }}</nowiki>
 +
<nowiki>{{islandlink|twinsun|5=}}</nowiki>
 +
 
 
</noinclude>
 
</noinclude>

Latest revision as of 09:49, 4 June 2014

Islandlink
Purpose

Formatting [list all]

Single tag

No [list all]

Multi-line

No [list all]

Protected

No [list all]

Game related

Yes [list all]

Categorization
Categories

none [list all]

Variables
Names

none [list all]

Subpages

This template formats island links in the special Twinsun, Emerald Moon, Zeelich's Surface and Zeelich's Undergas themes. There is no automatic categorization.

Parameters

  1. The shortname of any of the four planet stages, one of the following (values are case insensitive):
    • twinsun
    • moon
    • zeelich
    • undergas
    • any other value will render a normal link.
  2. The articlename of the island to link to (value is case sensitive, defaults to nothing displayed)

Examples

Common use includes both parameters:

{{islandlink|twinsun|Citadel Island}}
{{islandlink|moon|Main Building}}
{{islandlink|zeelich|Otringal}}
{{islandlink|undergas|Island of the Wannies}}
Citadel Island
Main Building
Otringal
Island of the Wannies


You may leave the "planet" undefined (which does not raise any maintenance task), by not specifying any valid value, so these all have the same result:

{{islandlink|2=Otringal}}
{{islandlink||2=Otringal}}
{{islandlink||Otringal}}
{{islandlink|1=|Otringal}}
{{islandlink|1=    |Otringal}}
{{islandlink|Trouble|Otringal}}
{{islandlink|Earth|Otringal}}
{{islandlink|Twinsuniverse|Otringal}}
Otringal


You may leave the "island" undefined (which does not raise any maintenance task), by not specifying any nonempty value, so these all have the same result (nothing displayed):

{{islandlink|twinsun}}
{{islandlink|twinsun|}}
{{islandlink|twinsun|1=}}
{{islandlink|twinsun|1=   }}
{{islandlink|twinsun|5=}}