ਸਮੱਗਰੀ 'ਤੇ ਜਾਓ

ਵਿਕੀਪੀਡੀਆ:Lua/To do

ਵਿਕੀਪੀਡੀਆ, ਇੱਕ ਆਜ਼ਾਦ ਵਿਸ਼ਵਕੋਸ਼ ਤੋਂ
 WP:Lua
Project
 WT:Lua
Project talk
 Help
 
 To do
 
 Requests
 
 Resources
en: m: mw: external
 

This is the Lua project's to-do list. Here we list templates to be converted to Lua, and other Lua-related tasks to be done.

Templates to be converted

[ਸੋਧੋ]
Template Difficulty Notes
Template:Asia topic, Template:Europe topic, etc. Medium These templates have a lot of shared code, so one module should probably do for all of them. The country names can be loaded using mw.loadData from a separate data module. It would also be useful to add a custom link parameter for each country, as at the moment editors have to go through and check that all the relevant redirects have been created. It would be much easier to just specify the correct link in the template if it is different from the one that is automatically generated.

Update: there is Module:World topic. See also Wikipedia:Lua/Requests#Re-write Template:World topic as a Lua module.

Template:Automatic taxobox Hardest This template may be even more complex than Template:WPBannerMeta (listed below). It has a large number of subtemplates, many of which were created by User:Taxobot (blocked back in 2011). Much of the complexity is introduced by attempting to emulate a recursive algorithm in template code, which could be greatly simplified with Lua. It will not be simple to convert, though. Just understanding the system of templates will require significant effort, and some careful thought will be required about the architecture of the module(s) and data module(s). It would also be worth thinking how a Lua module system could interact with a (new?) bot, in order to keep the taxonomic data up to date. Required reading: Template:Automatic taxobox/doc/gory technical details.
Template:CountryAbbr, Template:ISO 3166 code and Template:ISO 3166 name Easy Country code from name and name from code conversion templates used in infoboxes that could be sped up considerably and made more manageable with Lua.
Template:Db-multiple Medium Calls Template:Csdcheck, which has already been converted to Lua. Otherwise only has one subtemplate. We could probably do with centralising the data about the different CSD criteria, as it is used in a lot of different places and is a pain to update when criteria are added and removed. But this can always be done later.
Template:Val Medium Numbers can be left as strings to keep precision for those with many digits. Warning, people are very attached to this template! You should take extra care to ensure it's a one-to-one conversion. Basic work and preliminary structuring is done at Module:Val.

Other tasks

[ਸੋਧੋ]
  • Expand Help:Lua for beginners and better integrate it with the project help page.
  • Update the documentation of the templates that are based on Module:Message box to reflect the new parameters.
    • What templates are these? A search didn't help.--Qgil (talk) 00:39, 7 December 2013 (UTC)
      • The ones listed at the top of the module documentation. I should probably do this myself, though, as it won't take that long and I already know how the code works. — Mr. Stradivarius on tour ♪ talk ♪ 04:27, 7 December 2013 (UTC)
  • Make Module:Coordinates use a centralised configuration page/table so that it can be easily internationalised.