Difference between revisions of "Template:Meta-Sidebar-Location"

From NSV13
Jump to navigationJump to search
(Created page with "{{Sidebar | name = {{{name|{{PAGENAME}}}}} | pretitle = | title = {{{area|}}} | style = width:auto;background:#f5faff;font-size:90%;line-height:1.6em; | basestyle = backgroun...")
 
m (More testing.)
Line 2: Line 2:
 
| name = {{{name|{{PAGENAME}}}}}
 
| name = {{{name|{{PAGENAME}}}}}
 
| pretitle =  
 
| pretitle =  
| title = {{{area|}}}
+
| title = {{{area|NSV13:Test_area}}}
 
| style = width:auto;background:#f5faff;font-size:90%;line-height:1.6em;
 
| style = width:auto;background:#f5faff;font-size:90%;line-height:1.6em;
 
| basestyle = background:#cee0f2;
 
| basestyle = background:#cee0f2;
Line 8: Line 8:
 
| above = Maps
 
| above = Maps
  
|{{#ifeq: {{{tycoon|-}}}|{{{tycoon|+}}}| heading1 = [[Arrivals ({{{area|}}})|Tycoon]]|}}
+
|{{#ifeq: {{{tycoon|}}}|1| heading1 = [[{{{area|}}} (Tycoon)|Tycoon]]}}
|{{#ifeq: {{{sausage|-}}}|{{{sausage|+}}}| heading2 = [[Arrivals ({{{area|}}})|Jolly Sausage]]|}}
+
|{{#ifeq: {{{sausage|}}}|1| heading2 = [[{{{area|}}} (Sausage)|Jolly Sausage]]}}
|{{#ifeq: {{{aether|-}}}|{{{aether|+}}}| heading3 = [[Arrivals ({{{area|}}})|Aetherwhisp]]|}}
+
|{{#ifeq: {{{aether|}}}|1| heading3 = [[{{{area|}}} (Aetherwhisp)|Aetherwhisp]]}}
|{{#ifeq: {{{jeppison|-}}}|{{{jeppison|+}}}| heading4 = [[Arrivals ({{{area|}}})|Jeppison]]|}}
+
|{{#ifeq: {{{jeppison|}}}|1| heading4 = [[{{{area|}}} (Jeppison)|Jeppison]]}}
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Revision as of 19:12, 4 August 2020

Template documentation[view] [edit] [history] [purge]

This is a meta-template for creating location navigation templates.

Usage

Map Postfixes are automatically populated as follows:

[[Arrivals ({{{area|}}})|Tycoon]]

Define the following parameters to show them in the sidebar:

  • tycoon=1
  • sausage=1
  • aether=1
  • jeppison=1
  • hammerhead=1
  • vago=1
  • gladius=1
  • eclipse=1

You must also define the type of area using:

  • areatype = General

For the correct areatype, refer to the area's placement in the location template.