Template talk:Pt:Place

From OpenStreetMap Wiki
Jump to navigation Jump to search

Suggested revisions

Parameter conversions

  • singular vs. plural populated places: suggest adding in switch syntax to provide the following conversions (the syntax can be adapted from that found in Template:Place)
    • município → Municípios Ceyockey 21:06, 26 November 2009 (UTC)
    • city → Cities Ceyockey 21:06, 26 November 2009 (UTC) → Cidades --Skippern 16:18, 29 November 2009 (UTC)
    • town → Towns Ceyockey 21:06, 26 November 2009 (UTC) → Cidades --Skippern 16:18, 29 November 2009 (UTC)
  • English vs. Portuguese
    • Brazil → Brasil Ceyockey 01:26, 29 November 2009 (UTC)

Autocategorization and the Pt-br namespace

The auto-categorization code as it currently reads is


[[Category:{{{name}}}]] [[Category:{{{area}}}|{{{name}}}]] [[Category:{{{type}}} no {{{area}}}| {{{name}}}]] [[Category:Brazil|{{{name}}}]]

However, there is the question of whether users of this template would want things categorized into the main (English) namespace or the language-specific Brazilian Portuguese namespace (pt-br:). If you would prefer the latter, I would suggest the following revised code


[[Category:Pt-br:{{{name}}}]] [[Category:Pt-br:{{{area}}}|{{{name}}}]] [[Category:Pt-br:{{{type}}} no {{{area}}}| {{{name}}}]] [[Category:Pt-br:Brasil|{{{name}}}]]

--Ceyockey 02:42, 29 November 2009 (UTC)

Does it really matter the language of a list of cities? It would be the same list in any namespace. Besides as far as I know, only one Brazilian city have a project page in several namespaces (Portuguese/English), so there will not be many duplicates in the lists. --Skippern 13:11, 18 February 2010 (UTC)

If it is possible, the template should be updated to reflect the Brazilian-Portuguese translation of types; e.g., "Belém é um city de Brasil com latitude -1.4611 e longitude -48.4917" sounds really weird (should be "Belém é uma cidade no Brasil, com latitude ..."). --Ulf Mehlig 21:13, 1 April 2010 (UTC)
Agree, also it should be able to make plural form of {{{type}}}, so that the category of singular form "cidade" will be "cidades", same with "municipal" will be plural "municipais", "estado" -> "estados" etc. --Skippern 09:37, 3 April 2010 (UTC)