Difference between revisions of "Template:Infobox area"

From AetoliaWiki
Jump to navigation Jump to search
m (Woops)
 
(4 intermediate revisions by 2 users not shown)
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:{{{protect|}}}|[[Category:Protectorates of {{{protect}}}]]|}}
{{#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}}}]]|}}


|label6=Fishing?
  | label4  = Environment
|data6= {{#if:{{{fish|}}}|[[Fishing|Yes]]|}}
  | 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==
{{infobox area
  | name      = The Swampy Village of Torston
  | track    = EASTERN ITHMIA
  | continent = Sapience
  | env      = Forest
  | protect  = Enorian
}}
<pre>
<pre>
{{infobox area
{{infobox area
   |name=     required
   | name   = The Swampy Village of Torston
   |continent= required
  | track  = EASTERN ITHMIA
   |level=     optional
   | continent = Sapience
   |fish=     optional
   | env    = Forest
   | protect = Enorian
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Latest revision as of 06:56, 8 February 2020


This template is for area pages infoboxes. All fields except name are optional. This template will also add the appropriate categories for areas, environment and protectorates.

Example

The Swampy Village of Torston
ContinentSapience
EnvironmentForest
Protectorate ofEnorian
PATH TRACK EASTERN ITHMIA
{{infobox area
  | name    = The Swampy Village of Torston
  | track   = EASTERN ITHMIA
  | continent = Sapience
  | env     = Forest
  | protect = Enorian
}}