Module talk:language utilities

Latest comment: 10 years ago by ZxxZxxZ in topic Generating lists

Generating lists edit

It might be a good idea to add a function or functions to generate lists or tables of languages. WT:LANG has three important listings that are likely to contain out-of-date information at any particular time.

  1. WT:LANG#List of languages with exceptional codes
  2. WT:LANG#List of appendix-only constructed languages
  3. WT:LANG#List of languages with multiple names}

There’s also the big WT:LANGLIST. Would be nice if they could be generated automatically from the source. Michael Z. 2013-06-02 22:07 z

It's definitely possible, but does it really belong in this module if it's only used for that one page? —CodeCat 22:08, 2 June 2013 (UTC)Reply
That’s two pages, including the big list which is now becoming obsolete.
A separate module would be okay too, but if such utility scripts are flexible enough to use elsewhere, it makes sense to bundle them here. Unless that adversely affects performance.
Might also be useful to output a single language’s vital statistics, for pages like Category:English language and WT:About EnglishMichael Z. 2013-06-02 22:20 z
I'm thinking more of something that would replace what {{langt}} used to do. Apart from showing all the bits of information associated with the code, it would check for certain pieces of information and add the code to a category if it were missing. So it would show which languages needed a script, or which needed a family, and so on. We can't use categories anymore, but we can make a page that is automatically filled by the function depending on the information, so we could make lists. —CodeCat 22:24, 2 June 2013 (UTC)Reply

I left a note related to this discussion at Module_talk:languages#Standards compliance. --Z 09:39, 4 June 2013 (UTC)Reply

Return to "language utilities" page.