Template talk:Zone table row

From Guild Wars 2 Wiki
Jump to navigationJump to search

Heh I wanted to power this using

{| {{STDT|location sortable}}
|-
! Min lvl !! Max lvl !! Zone !! Region
{{#ask: [[Has location type::Explorable zone]]
| ?Has zone minimum level
| ?Has zone maximum level
| ?Located in
| format = template
| template = Zone table row format
| sort = Has zone minimum level, Has zone maximum level
}}
|}

but we don't store the recommended level semantically, and a bunch of pvp + event zones creep in. I guess it won't work. -Chieftain AlexUser Chieftain Alex sig.png 13:51, 16 November 2013 (UTC)

You can grab zones with renown heart if we had the property as you're really grabbing zones with objectives.--Relyk ~ talk < 14:09, 16 November 2013 (UTC)
I wouldn't know how to #ask that. (chain query?). -Chieftain AlexUser Chieftain Alex sig.png 15:07, 16 November 2013 (UTC)
{{#ask:[[Has location type::Explorable zone]][[Has renown hearts::+]]}}. You could also do {{#ask:[[Located in.Has location type::Explorable zone]]}} if we didn't put other zones within a region (cause they kind of aren't). We do need to cover the other zones on that page, otherwise you might as well stick the table on map completion.--Relyk ~ talk < 17:02, 16 November 2013 (UTC)
Why would you want to query this table in any case? We've had a single zone added since launch, it's not like this data is changing with every release - a static table works just fine. —Dr Ishmael User Dr ishmael Diablo the chicken.png 17:13, 16 November 2013 (UTC)
^I don't think we need a template for this at all since it's used on one page, but I'm humoring it.--Relyk ~ talk < 20:01, 16 November 2013 (UTC)

Original codes[edit]

Saving them here for when the subpage templates get deleted:

  • [[Zone/Template/Color]]
{{#switch:{{{1}}}
|A=CC9933
|K=66CC66
|MJ=66CC99
|RoO=999966
|SM=66CCFF
|B8B8B8
}}
  • [[Zone/Template/Region]]
{{#switch:{{{1}}}
|A=[[Ascalon]]
|K=[[Kryta]]
|MJ=[[Maguuma Jungle]]
|RoO=[[Ruins of Orr]]
|SM=[[Shiverpeak Mountains]]
|Unknown
}}
  • [[Zone/Template]]
|-
|style="text-align:center;"|{{{1}}}
|style="text-align:center;"|{{{2}}}
|<span style="display:none">{{{3}}}</span>
{|width="900px" border="0" cellspacing="0" cellpadding="4"
|width="{{#expr:{{{1}}}*8}}"| 
|width="{{#expr:({{{2}}}-{{{1}}}+2)*8}}" bgcolor="#{{:Zone/Template/Color|{{{4}}}}}" style="border-bottom:1px dotted #444; text-align:center;"|{{{1}}}{{#ifeq: {{{1}}} | {{{2}}} | | -{{{2}}} }}
| {{{3}}}
|}
|{{:Zone/Template/Region|{{{4}}}}}

--Lon-ami (talk) 15:25, 16 November 2013 (UTC)

I'll request a history merge / merge the history if I get adminship :p -Chieftain AlexUser Chieftain Alex sig.png 15:35, 16 November 2013 (UTC)
for reference, the reason i didn't replace your template at the start was that I was hopeful that I would be able to automate it separately, and then replace your template, rather than making a muck up on the main zone page + of your template. -Chieftain AlexUser Chieftain Alex sig.png 15:41, 16 November 2013 (UTC)
I don't understand at all why you created those subpages just to paste their contents here. I'm going to clean them up now. —Dr Ishmael User Dr ishmael Diablo the chicken.png 17:20, 16 November 2013 (UTC)
Check the history, they were created before the template, and I posted their content here so it was safe to delete them (You could have merged the history instead, but well).--Lon-ami (talk) 18:38, 16 November 2013 (UTC)