Difference between revisions of "Template:Relative location"

From Emps-World Wiki
Jump to: navigation, search
Line 1: Line 1:
{| style="float:{{{float|right}}}; text-align:center; background:#F2F2F2; border: 1px solid #b19e7d; margin:5px; cellpadding:2px; width:{{{width|200px}}}; clear:{{{clear|right}}};"
+
{| style="float:{{{float|right}}}; text-align:center; background:#f8f0cf; border: 1px solid #b19e7d; margin:5px; cellpadding:2px; width:{{{width|200px}}}; clear:{{{clear|right}}};"
| colspan="5" style="background:#A2A2A2; color:white;" class="relativelocation" | Location on [[World Map|<span style="color:white">World Map</span>]]
+
| colspan="5" style="background:#b19e7d" class="relativelocation" |<span style="color:white">Location on '''[[World Map|<span style="color:white">World Map</span>]]'''</span>
 
|-
 
|-
| colspan="5" |{{{north|}}}
+
| colspan="5" |{{#if:{{{north|}}}|[[{{{north|}}}]]|}}
 
|-
 
|-
 
| colspan="5" |{{#if:{{{north|}}}|&uarr;|}}
 
| colspan="5" |{{#if:{{{north|}}}|&uarr;|}}
 
|-
 
|-
| style="width:25%" |{{{west|}}}
+
| style="width:25%" |{{#if:{{{west|}}}|[[{{{west|}}}]]|}}
 
| style="width:7.5%" |{{#if:{{{west|}}}|&larr;|}}
 
| style="width:7.5%" |{{#if:{{{west|}}}|&larr;|}}
| style="width:25%" |'''{{{location|{{#replace:{{#replace:{{PAGENAME}}|(city)|}} |(location)|}}}}}'''
+
| style="width:25%" |'''{{{location|{{rmv|(location)|{{rmv|(city)|{{PAGENAME}}}} }}}}}'''
 
| style="width:7.5%" |{{#if:{{{east|}}}|&rarr;|}}
 
| style="width:7.5%" |{{#if:{{{east|}}}|&rarr;|}}
| style="width:25%" |{{{east|}}}
+
| style="width:25%" |{{#if:{{{east|}}}|[[{{{east|}}}]]|}}
 
|-
 
|-
 
| colspan="5" |{{#if:{{{south|}}}|&darr;|}}
 
| colspan="5" |{{#if:{{{south|}}}|&darr;|}}
 
|-
 
|-
| colspan="5" |{{{south|}}}
+
| colspan="5" |{{#if:{{{south|}}}|[[{{{south|}}}]]|}}
 
|}<noinclude>{{/doc}}</noinclude>
 
|}<noinclude>{{/doc}}</noinclude>

Revision as of 23:06, 10 January 2015

Location on World Map
Template:Rmv
Template:/doc