Discussioni modulo:Nazioni

Da Wikipedia, l'enciclopedia libera.
Vai alla navigazione Vai alla ricerca

Sorry for writing in English. I can read Italian, though. I just want to highlight thew fact that these templates and modules that you have created have a big overlap with Template:Flags. Having looked at the code of this template and related modules, I believe Flags is simpler and easier to sync across different languages: all modules are common in any language except Module:Flags/LocaleData, which contains all the localizations (here in Italian, in http://ca.wikipedia.org in Catalan, etc). We have been using Flags in ca.wiki since June or so, and currently 1965 pages are using it. Please have a look and let us know what you think. And in any case: thank you for your efforts improving flags templates with Lua! :) --QuimGil (msg) 06:38, 1 nov 2013 (CET)[rispondi]

Hi QuimGil, thanks for your answer. There is a misunderstanding. This module is not related (only) to flags, and it's not written thinking to (only) flags at all :) Compare the two tables:
  • Modulo:Flags/MasterData, a row in module Flags is: nationcode => flagname.
  • Modulo:Naz/Nazioni, a row in module Naz is: nationcode => { flagname, statename, statenamelink, dependency, prepositions, adjectives, article, ... }
On it.wiki we have hundreds of thousands of pages that given a nationcode need not only the flagname, but also these informations or that don't need flagname at all. For example {{Palmarès}} or {{Aeroporti}} (look for "AggNaz" inside) need only the "masculine plural adjective" or the "di" preposition for a given nation. The purpose of the module is to provide these informations to pages, templates, modules, and there is just 1 relevant method: "queryNazioni" (two lines of code). Before this module, the information for a 1 single nation (e.g. ABW, the first one in Modulo:Naz/Nazioni) was here and here. For all the nations we had 2800 pages: 844 in Categoria:Template Naz + 1199 redirects + 290 in Categoria:Template AggNaz + 462 redirects. So, with two pages (Modulo:Naz/Nazioni and Modulo:Naz/Alias) I have replaced 2800 pages. Now I think you can understand our situation.
Then, I have added other 3 lua classes (Bandiera, Band and Naz) just to replace templates {{Naz}}, {{AggNaz}}, {{NazBD}}, {{NazBA}}, {{NazNB}}, {{NazU}}, {{Bandiera}}, {{Band dip}}, {{Band}}, to simplify their code and get better performances, because they all access intensively these datas.
If you have any questions feel free to ask, cya. --Rotpunkt (msg) 09:42, 1 nov 2013 (CET)[rispondi]