The center for all Wikitravel images!

Category talk:Maps

From Wikitravel Shared
Jump to: navigation, search

Breadcrumbs[edit]

Currently, we are using template:isIn for map categories to point back to the geographical category, e.g., Category:Maps of Illinois uses {{isIn|Illinois}}. I think it might be more useful to use an alternate breadcrumb trail for the map categories, e.g., Category:Maps of Illinois uses {{isIn|Maps of United States}}. Thoughts? --Peter Talk 18:40, 3 June 2009 (EDT)

Indeed breadcrumb is a convenient navigation, but it seems to me that using IsIn template for map categories adulterates geographic data with non-geographic data. On shared, we are actually using Location template for files, not IsIn template. Also, on language versions, we are using IsIn template for destination guides only, not for all articles including itinerary articles and travel topics. Thus, to keep the RDF data clean, I think we should use Map template for map categories or use directly [[Category:Maps of United States]] for Category:Maps of Illinois.
Just an aside, we can use sortkey in the latter case to distinguish special subcategories like map or cuisine from other subcategories in A-Z order. -- Tatata 21:20, 3 June 2009 (EDT)
That makes sense. It would be nice to be able to use an alternate breadcrumb trail for categories of files other than geographical locations, but I assume that would not be easy. --Peter Talk 22:19, 3 June 2009 (EDT)

Excuse my French, but fuck RDF. If I as a human being go to (say) Category:Illinois, I definitely want to know if there are any maps of the place — there's no reason for me to have to do a second search under Maps to find them again! Jpatokal 23:03, 3 June 2009 (EDT)

...or is the cunning plan to have the maps themselves double-indexed, so they still show up at Category:Illinois as files? Jpatokal 23:04, 3 June 2009 (EDT)
Sorry if I'm doing pointless thing, maybe I don't exactly understand "double-indexed". But how about this? You can find Category:Maps of Illinois at the top of Category:Illinois among more than 200 subcategories. -- Tatata 00:30, 4 June 2009 (EDT)
Ah, that was my mistake—should have replaced the isIn with a cat, as Tatata has now done.
But yes, as of now we are double-indexing maps, e.g., Image:Illinois regions map.png appears in both category:Maps of Illinois and category:Illinois. I would like to change this, but for the fact that the millions of blank locode-bot-created subcategories of every geographical entity would make it hard to find the maps category. --Peter Talk 02:10, 4 June 2009 (EDT)


Not all under "M"[edit]

If we use the Standaard {{map|Country}} for all "Maps of X", they will appear under "M" in the category above. category:Maps of Alaska to category:Maps of Texas sort under "M" in category:Maps of United States. Using [[Category:Maps of United States|Alaska]] puts "Maps of Alaska" under "A" in "Maps of United States".

It is possible to rewrite template map to a form with to inputs like {{map|Country (or Region)|region (or city)}}

I hope the above is clear because English isn't my first language.

By the way: I don't think that every "Maps of region X" and "Maps of city Y" category must also appear in the highest "Maps" Category. So I welcome the Breadcrumbs discussed above. There are more than 200 countries in the world. --Rein N. 03:11, 8 June 2009 (EDT)

Category:Maps of Middle East illustrates the situation without my corrections. All subcats under "M"! --Rein N. 04:15, 8 June 2009 (EDT)
That makes perfect sense. It would be nice to rework the template to allow the additional parameter (but I won't fix it, since I don't understand template voodoo). --Peter 05:02, 8 June 2009 (EDT)
You need to enter the category manually as [[Category:Maps|Countryname]] to get the sorting right. I just attempted to add the second parameter, but couldn't figure out a way to make it to spit out the "|" character, since the #if parserfunction also uses that... would a second {{mapcat|country}} template make any sense? Jpatokal 05:09, 8 June 2009 (EDT)
And oh, I definitely agree that maps should only be placed once in the map hierarchy, so Maps of Chicago go under Maps of Illinois, not under Maps. Jpatokal 05:12, 8 June 2009 (EDT)
I had used C++ in the past, in that language is more than one inputvar common practice. Rein N. 05:57, 8 June 2009 (EDT)

I'd like to modify the template to {{map|xxxxx|yyyyy}} style. My plan is,

  1. On category page with one parameter like {{map|xxxxx}}, the template returns [[Category:Maps of xxxxx]]. This case is the same of current template.
  2. On category page with two parameters like {{map|xxxxx|yyyyy}}, the template returns [[Category:Maps of xxxxx|yyyyy]] and [[Category:yyyyy|!]]. In this case, xxxxx is Country (or Region) and yyyyy is region (or city), as Rein N. wrote {{map|Country (or Region)|region (or city)}} above.
  3. On non-category page (normally, image page) with one parameter like {{map|xxxxx}}, the template returns [[Category:Maps of xxxxx]]. This case is the same of current template.
  4. On non-category page (normally, image page) with two parameters like {{map|xxxxx|yyyyy}}, the template returns [[Category:Maps of xxxxx]] and [[Category:Maps of yyyyy]]. This case is the same of using the template twice; {{map|xxxxx}} and {{map|yyyyy}}.

Can I try this? -- Tatata 10:07, 8 June 2009 (EDT)

I modified the template as described above. If this modification makes trouble, please let me know. -- Tatata 21:57, 15 June 2009 (EDT)

Variants

Actions

In other languages