Template:Locationblockmerge: Difference between revisions
From The Urban Dead Wiki
Jump to navigationJump to search
Krazy Monkey (talk | contribs) mNo edit summary |
The Rooster (talk | contribs) (subst'd component parts, code tidy, deprecated notice) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{Protect}}</noinclude> | <noinclude>{{Protect}}</noinclude><includeonly>[[Category:{{{suburb}}}]]</includeonly> | ||
<includeonly>[[Category:{{{suburb | {| align=right cellpadding=5 cellspacing=0 style="background:#EEF; border:1px solid #DDE; margin:0 0 5px 5px; width:316px" | ||
{{ | |- align=center | ||
|'''{{{This_location}}}''' | |||
[[{{{suburb}}}]] ''[{{{coordinates}}}]'' | |||
{| align=center cellpadding=5 cellspacing=1 style="border:1px solid black; text-align:center; width:100%" | |||
|style="width:100px; height:80px; {{{{{NW_color}}}}}"|{{{NW_location}}} | |||
|style="width:100px; height:80px; {{{{{N_color}}}}}"|{{{N_location}}} | |||
|style="width:100px; height:80px; {{{{{NE_color}}}}}"|{{{NE_location}}} | |||
|- | |||
|style="width:100px; height:80px; {{{{{W_color}}}}}"|{{{W_location}}} | |||
|style="width:100px; height:80px; {{{{{location_color}}}}}"|'''{{{This_location}}}''' | |||
|style="width:100px; height:80px; {{{{{E_color}}}}}"|{{{E_location}}} | |||
|- | |||
|style="width:100px; height:80px; {{{{{SW_color}}}}}"|{{{SW_location}}} | |||
|style="width:100px; height:80px; {{{{{S_color}}}}}"|{{{S_location}}} | |||
|style="width:100px; height:80px; {{{{{SE_color}}}}}"|{{{SE_location}}} | |||
|} | |||
|}<noinclude><br style="clear:right" /> | |||
|}<noinclude> | |||
==Usage== | ==Usage== | ||
{| align=center style="border:10px double darkred; color:red; text-align:center; font-size:3em; line-height:100%" | |||
|MERGED PAGES AND THIS TEMPLATE ARE DEPRECATED!<br>DO NOT USE THIS TEMPLATE! | |||
|} | |||
For merged pages, it's pretty redundant to see the same basic info on every location navigation template. So, instead of using the traditional {{tl|Locationblock}}, these pages should instead use these ''two'' templates: '''Template:Locationblockmerge''' and {{tl|Infomerge}}. | For merged pages, it's pretty redundant to see the same basic info on every location navigation template. So, instead of using the traditional {{tl|Locationblock}}, these pages should instead use these ''two'' templates: '''Template:Locationblockmerge''' and {{tl|Infomerge}}. | ||
This template should occur once for each location, and has syntax as follows | This template should occur once for each location, and has syntax as follows | ||
:'''''Note:''''' the template syntax is ''nearly'' identical to {{tl|Locationblock}}. No change to the template call structure should be necessary to turn a call to {{tl|Locationblock}} into a call to {{[[Template:Locationblockmerge#Usage|Locationblockmerge]]}} | :'''''Note:''''' the template syntax is ''nearly'' identical to {{tl|Locationblock}}. No change to the template call structure should be necessary to turn a call to {{tl|Locationblock}} into a call to {{[[Template:Locationblockmerge#Usage|Locationblockmerge]]}} | ||
'''Usage:''' | '''Usage:''' | ||
<nowiki>{{Locationblockmerge| | |||
|suburb=XXXX | |||
suburb=XXXX| | |coordinates=XX,YY | ||
coordinates=XX,YY| | |NW_location=[[XXXX]]|NW_color=XXXX | ||
NW_location=[[XXXX]]|NW_color=XXXX| | |N_location=[[XXXX]]|N_color=XXXX | ||
N_location=[[XXXX]]|N_color=XXXX| | |NE_location=[[XXXX]]|NE_color=XXXX | ||
NE_location=[[XXXX]]|NE_color=XXXX| | |W_location=[[XXXX]]|W_color=XXXX | ||
W_location=[[XXXX]]|W_color=XXXX| | |This_location=XXXX|location_color=XXXX | ||
This_location=XXXX|location_color=XXXX| | |E_location=[[XXXX]]|E_color=XXXX | ||
E_location=[[XXXX]]|E_color=XXXX| | |SW_location=[[XXXX]]|SW_color=XXXX | ||
SW_location=[[XXXX]]|SW_color=XXXX| | |S_location=[[XXXX]]|S_color=XXXX | ||
S_location=[[XXXX]]|S_color=XXXX| | |SE_location=[[XXXX]]|SE_color=XXXX | ||
SE_location=[[XXXX]]|SE_color=XXXX}}</ | }}</nowiki> | ||
{{Locationblock/Colors}} | {{Locationblock/Colors}} | ||
[[Category:Templates|{{PAGENAME}}]]</noinclude> | [[Category:Templates|{{PAGENAME}}]]</noinclude> |
Latest revision as of 15:33, 15 July 2009
Administration Services — Protection. This page has been protected against editing. See the archive of recent actions or the Protections log. |
{{{This_location}}}
[[{{{suburb}}}]] [{{{coordinates}}}]
|
Usage
MERGED PAGES AND THIS TEMPLATE ARE DEPRECATED! DO NOT USE THIS TEMPLATE! |
For merged pages, it's pretty redundant to see the same basic info on every location navigation template. So, instead of using the traditional {{Locationblock}}, these pages should instead use these two templates: Template:Locationblockmerge and {{Infomerge}}.
This template should occur once for each location, and has syntax as follows
- Note: the template syntax is nearly identical to {{Locationblock}}. No change to the template call structure should be necessary to turn a call to {{Locationblock}} into a call to {{Locationblockmerge}}
Usage:
{{Locationblockmerge| |suburb=XXXX |coordinates=XX,YY |NW_location=[[XXXX]]|NW_color=XXXX |N_location=[[XXXX]]|N_color=XXXX |NE_location=[[XXXX]]|NE_color=XXXX |W_location=[[XXXX]]|W_color=XXXX |This_location=XXXX|location_color=XXXX |E_location=[[XXXX]]|E_color=XXXX |SW_location=[[XXXX]]|SW_color=XXXX |S_location=[[XXXX]]|S_color=XXXX |SE_location=[[XXXX]]|SE_color=XXXX }}
- "suburb" is the name of the suburb this location is in. This will generate an automatic link to that suburbs page.
- "coordinates" is the x-y coordinates of that location, in the format XX,YY.
- "*_location" is the name of the location in that direction, "This_location" being the name of the location the template shows.
- "*_color" is the Hex Color Code (In full caps) for that location, or the type of building the location is. Valid entries for Colors are show below.
Valid Entries, Words | Deprecated Entries, Words | |||
---|---|---|---|---|
Armoury | Cinema | Mansion | School | Car Park |