Difference between revisions of "Template:Infobox area"

Jump to navigation Jump to search
m
no edit summary
m (Added newbie area option)
m
Line 2: Line 2:
{{#ifeq:{{{continent}}}|Sapience|[[Category:Areas of Sapience]]|}}
{{#ifeq:{{{continent}}}|Sapience|[[Category:Areas of Sapience]]|}}
{{#ifeq:{{{continent}}}|Albedos|[[Category:Areas of Albedos]]|}}
{{#ifeq:{{{continent}}}|Albedos|[[Category:Areas of Albedos]]|}}
{{#if:{{{fish|}}}|[[Category:Areas with Fishing Holes]]}}
{{#if:{{{protect|}}}|[[Category:Protectorates of {{{protect}}}]]|}}
{{#if:{{{newbie|}}}|[[Category:Newbie Areas]]}}
{{#if:{{{env|}}}|[[Category:Areas/{{{env}}} Areas]]|}}


{{infobox
{{infobox
|above={{{name}}}
  | above   = {{{name}}}


|label2=Continent
  | below    = {{#if:{{{track|}}}|PATH TRACK '''{{{track}}}'''|}}
|data2=[[{{{continent}}}]]


|label4=Recommended [[level]]
  | label3  = Continent
|data4={{{level|}}}
  | data3    = {{#if:{{{continent|}}}|[[{{{continent}}}]]|}}


|header6={{#if:{{{newbie|}}}|This is a [[newbie]] area.|}}
  | label4  = Environment
|header7={{#if:{{{fish|}}}|This area contains [[fishing]] holes.|}}
  | data4    = {{#if:{{{env|}}}|[[Environments|{{{env}}}]]|}}


  | label6  = [[Protectorate]] of
  | data6    = {{#if:{{{protect|}}}|[[{{{protect}}}]]|}}
}}</includeonly>
}}</includeonly>
<noinclude>
<noinclude>
Infobox template for area pages.
This template is for [[Areas|area]] pages infoboxes. All fields except '''name''' are optional. This template will also add the appropriate categories for areas, environment and protectorates.


Usage:
==Example==
<pre>
{{infobox area
{{infobox area
   |name=     required
   | name     = The Swampy Village of Torston
   |continent= required
   | track    = EASTERN ITHMIA
   |level=     optional
   | continent = Sapience
   |newbie=   boolean
   | env      = Forest
   |fish=     boolean
   | protect  = Enorian
}}
}}
</pre>
Example:
<pre>
<pre>
{{infobox area
{{infobox area
   |name=Mandre's Tower
   | name   = The Swampy Village of Torston
   |continent=Sapience
   | track  = EASTERN ITHMIA
   |level=99
   | continent = Sapience
   |newbie=1
   | env    = Forest
   |fish=1
   | protect = Enorian
}}
}}
</pre>
</pre>
Results:
{{infobox area
  |name=Mandre's Tower
  |continent=Sapience
  |level=99
  |newbie=1
  |fish=1
}}
</noinclude>
</noinclude>

Navigation menu