Central Global Repository for Templates, Lua modules, and Gadgets

edit
Tracked in Phabricator:
Task T41610
Tracked in Phabricator:
Task T1238
Tracked in Phabricator:
Task T6547

We could use a single location where to keep templates, Lua modules, and Gadgets that are used on all the wikipedia projects. Just like images from commons can be used on other projects, code from such site would be visible to all the projects. The current system of 100's of out of sync copies of the same templates or Lua modules occasionally synchronized with the original is very hard to maintain. --Jarekt (talk) 20:06, 10 November 2015 (UTC)[reply]

Earlier discussion and endorsements

Votes

edit
  1.   Support 4nn1l2 (talk) 03:24, 30 November 2015 (UTC)[reply]
  2.   Support MisterSynergy (talk) 09:10, 30 November 2015 (UTC)[reply]
  3.   Support --Tobias1984 (talk) 11:34, 30 November 2015 (UTC)[reply]
  4.   Support Goldzahn (talk) 12:46, 30 November 2015 (UTC)[reply]
  5.   Support As a prerequisite for a centralised gadget repository, the long-running "Gadgets 2.0" project needs to be finished off, which is something I'd also like to see Community Tech work on as part of this wishlist item (should it pass the voting phase). This, that and the other (talk) 13:25, 30 November 2015 (UTC)[reply]
  6.   Support soon or later a centralised repository of this items has to be offered.--Alexmar983 (talk) 16:32, 30 November 2015 (UTC)[reply]
  7.   Support. --Stryn (talk) 19:14, 30 November 2015 (UTC)[reply]
  8.   Support Orlodrim (talk) 20:19, 30 November 2015 (UTC)[reply]
  9.   Support Grind24 (talk) 20:37, 30 November 2015 (UTC)[reply]
  10.   Support Voll (talk) 21:47, 30 November 2015 (UTC)[reply]
  11.   Support --° (Gradzeichen) 22:03, 30 November 2015 (UTC)[reply]
  12.   Support --UV (talk) 23:16, 30 November 2015 (UTC)[reply]
  13.   Support --Leyo (talk) 23:19, 30 November 2015 (UTC)[reply]
  14.   Support --provided that local communities can always override anything from the repository. xaosflux Talk 00:28, 1 December 2015 (UTC)[reply]
  15.   Support --EugeneZelenko (talk) 00:49, 1 December 2015 (UTC)[reply]
  16.   Support per TTO John Vandenberg (talk) 01:51, 1 December 2015 (UTC)[reply]
  17.   Support--Shizhao (talk) 09:44, 1 December 2015 (UTC)[reply]
  18.   Support--Purodha Blissenbach (talk) 10:11, 1 December 2015 (UTC)[reply]
  19.   Support --Oetterer (talk) 10:52, 1 December 2015 (UTC) and pretty, pretty please make it portable to user maintained wiki families[reply]
  20.   Support --Steinsplitter (talk) 11:25, 1 December 2015 (UTC)[reply]
  21.   Support --mfb (talk) 12:29, 1 December 2015 (UTC)[reply]
  22.   Support -- Amir (talk) 12:50, 1 December 2015 (UTC)[reply]
  23.   Support --Arnd (talk) 14:57, 1 December 2015 (UTC)[reply]
  24.   Support Matiia (talk) 15:08, 1 December 2015 (UTC)[reply]
  25.   Support - Whaledad (talk) 15:21, 1 December 2015 (UTC)[reply]
  26.   Support --Continua Evoluzione (talk) 15:22, 1 December 2015 (UTC)[reply]
  27.   Support Sadads (talk) 16:14, 1 December 2015 (UTC)[reply]
  28.   Support Snipre (talk) 16:01, 1 December 2015 (UTC)[reply]
  29.   Support JackPotte (talk) 16:20, 1 December 2015 (UTC)[reply]
  30.   Support --Silraks (talk) 16:22, 1 December 2015 (UTC)[reply]
  31.   Support Goombiis (talk) 16:35, 1 December 2015 (UTC)[reply]
  32.   Support Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:44, 1 December 2015 (UTC)[reply]
  33.   Support -- Singhalawap (talk) 16:57, 1 December 2015 (UTC)[reply]
  34.   Support --Dodi123 (talk) 17:12, 1 December 2015 (UTC)[reply]
  35.   Support Papuass (talk) 17:33, 1 December 2015 (UTC)[reply]
  36.   Support --Isacdaavid (talk) 17:43, 1 December 2015 (UTC)[reply]
  37.   Support Matěj Suchánek (talk) 18:08, 1 December 2015 (UTC)[reply]
  38.   Oppose for cultural reasons: I fear that this repository would start, exist and end on the basis and with the structure of one specific, big edition, with a lot of bot imports. The template problem needs a solution based on consensus, with explanations of how where when and why, not a technical superstructure. → «« Man77 »» [de] 18:12, 1 December 2015 (UTC)[reply]
  39.   Support--Calak (talk) 18:36, 1 December 2015 (UTC)[reply]
  40.   Support --Wesalius (talk) 19:13, 1 December 2015 (UTC)[reply]
  41.   Support Gap9551 (talk) 20:48, 1 December 2015 (UTC)[reply]
  42.   Support --Oriciu (talk) 21:38, 1 December 2015 (UTC)[reply]
  43.   Support --Usien6 (talk) 21:46, 1 December 2015 (UTC) // Let a new era be born for smaller projects.[reply]
  44.   Support Seems reasonable, though not necessarily all that useful for the average editor (who would be using templates, etc. within their own Wikimedia projects, not creating new ones). -- 2ReinreB2 (talk) 21:48, 1 December 2015 (UTC)[reply]
  45.   Support Mwaldeck msg 21:53, 1 December 2015 (UTC)[reply]
  46.   Support --Nouill (talk) 21:58, 1 December 2015 (UTC)[reply]
  47.   Support --Stegop (talk) 22:07, 1 December 2015 (UTC)[reply]
  48.   Strong support Trizek from FR 22:15, 1 December 2015 (UTC)[reply]
  49.   Support, although allowing (some?) templates to be transcluded cross-wiki might be a lower-impact solution. StevenJ81 (talk) 22:42, 1 December 2015 (UTC)[reply]
  50.   Support Helder 23:15, 1 December 2015 (UTC)[reply]
  51.   Support Tar Lócesilion (queta) 00:14, 2 December 2015 (UTC)[reply]
  52.   Support --Gbeckmann (talk) 01:02, 2 December 2015 (UTC)[reply]
  53.   Support Popcorndude (talk) 03:49, 2 December 2015 (UTC)[reply]
  54.   Support Risker (talk) 04:32, 2 December 2015 (UTC)[reply]
  55.   Support--Jarekt (talk) 05:02, 2 December 2015 (UTC)[reply]
  56.   Support but only if will be possibile override the module - I think can be useful but only for very generic module like string.--Moroboshi (talk) 06:55, 2 December 2015 (UTC)[reply]
  57.   Support Bgwhite (talk) 09:42, 2 December 2015 (UTC)[reply]
  58.   Support Yes. Regards, Kertraon (talk) 13:37, 2 December 2015 (UTC)[reply]
  59.   Support with the caveat that there needs to be some tolerance of templates/etc. that are designed to work on a specific wiki. Making templates/etc. that work on all wikis sounds enticing, but I imagine there will be many cases where such animals will become bloaty and/or difficult to use. Also, multilingual documentation would have to be provided for. Stevie is the man! TalkWork 13:44, 2 December 2015 (UTC)[reply]
  60.   Support --β16 - (talk) 14:25, 2 December 2015 (UTC)[reply]
  61.   Support. A good feature but templates must be customisable for each wiki (add or remove fields depending on needs) — NickK (talk) 15:41, 2 December 2015 (UTC)[reply]
  62.   Support--Manlleus (talk) 15:50, 2 December 2015 (UTC)[reply]
  63.   SupportBeleg Tâl (talk) 16:56, 2 December 2015 (UTC)[reply]
  64.   Support though it will probably need a high standard for documentation and implemented testcases to remain useful. Pengo (talk) 21:42, 2 December 2015 (UTC)[reply]
  65.   Support -- Dave Braunschweig (talk) 22:27, 2 December 2015 (UTC)[reply]
  66.   Support --Trollramsac (talk) 22:50, 2 December 2015 (UTC)[reply]
  67.   Support Mike Peel (talk) 23:23, 2 December 2015 (UTC)[reply]
  68.   Support Rzuwig 11:07, 3 December 2015 (UTC)[reply]
  69.   Support --Candalua (talk) 11:55, 3 December 2015 (UTC)[reply]
  70.   Support - tucoxn\talk 14:12, 3 December 2015 (UTC)[reply]
  71.   SupportArkanosis 14:21, 3 December 2015 (UTC)[reply]
  72.   Support --Sampayu (talk) 16:19, 3 December 2015 (UTC)[reply]
  73.   Support though this could get very complex to support multiple languages. Graeme Bartlett (talk) 03:55, 4 December 2015 (UTC)[reply]
  74.   Support SantiLak (talk) 10:52, 4 December 2015 (UTC)[reply]
  75.   Support --Jane023 (talk) 18:27, 4 December 2015 (UTC)[reply]
  76.   Support Bináris tell me 19:01, 4 December 2015 (UTC)[reply]
  77.   Support Halibutt (talk) 00:31, 5 December 2015 (UTC)[reply]
  78.   Support --FocalPoint (talk) 06:32, 5 December 2015 (UTC)[reply]
  79.   Support --Ttzavaras (talk) 19:24, 5 December 2015 (UTC)[reply]
  80.   Support -- Gts-tg (talk) 01:37, 6 December 2015 (UTC)[reply]
  81.   Support --  Montjoie-Saint-Denis !!! συζήτηση 01:50, 6 December 2015 (UTC)[reply]
  82.   Support --Dipa1965 (talk) 22:35, 6 December 2015 (UTC)[reply]
  83.   Support --Waldir (talk) 12:49, 7 December 2015 (UTC)[reply]
  84.   Neutral --Templates are not "Just like images from commons". For example, many/most templates display text and are complex already; adding further code to display the text appropriate to the language (de=Yahre, en=Year...) would make them virtually unmaintainable. Also, it's not unusual (on en wp) to see cases where the functionality and the documentation of a template aren't in synch - how much worse would this be if changing one template meant that documentation in 100 languages then needed to be changed. There may be solutions to these problems, but these sort of things should be carefully considered before making major changes. DexDor (talk) 19:32, 9 December 2015 (UTC)[reply]
  85.   Support --Z 12:33, 13 December 2015 (UTC)[reply]
  86.   Support --ESM (talk) 16:36, 13 December 2015 (UTC)[reply]
  87.   Support Alkamid (talk) 22:37, 13 December 2015 (UTC)[reply]
  88.   Support Great, it wuld improve significantly the quality of the templates. Could this central repository be the Wikimedia Commons?--MisterSanderson (talk) 01:12, 14 December 2015 (UTC)[reply]
  89.   Support Ijon (talk) 10:29, 14 December 2015 (UTC)[reply]
  90.  Klaas `Z4␟` V10:08, 22 December 2015 (UTC) Would make things a lot easier e.g. using templates from WikiData (or a new one like WikiTemp with only a language-parameter or so[reply]

Inserting templates (tables) in PDF and Books

edit

Since... well, don't know since when, books and PDFs are not rendering information inside templates. As lots of information is inside templates (also happens with tables) all of this is not rendered when you download the file in PDF. -Theklan (talk) 22:18, 9 November 2015 (UTC)[reply]

Earlier discussion and endorsements
I think that it comes from the templates, some of them contain the "class=noprint" because the local community decided it.
But if you want to generate some books with their recurrent templates (eg: disclaimer), dynamically from its table of content, I recommend you to export my Lua module. JackPotte (talk) 23:11, 9 November 2015 (UTC)[reply]
  Endorsed @JackPotte, the problem it's not the "class=noprint", the current pdf engine is especially buggy in rendering table and dont show template containing table (like infobox). On november 2014 a message from Erik Moeller on wikitech ambassors mailing list describe the current status and said that is not a high priority project to fix them.--Moroboshi (talk) 07:30, 10 November 2015 (UTC)[reply]
As the author of the PDF backend, I can confirm that the issue is not with templates, it is with tables. We have a large number of very complicated tables in our projects, and it is a non-trivial task to figure out how to lay them out in LaTeX. Basic patch here: https://gerrit.wikimedia.org/r/107587 -- but it would break more pages than it would help at this point. Help wanted, of course! But it would be even better to write an HTML-based PDF backend for mw:OCG and bypass LaTeX altogether. Hopefully we could use phantomjs 2.0 and not lose the nice support for Indic languages that we currently have. Cscott (talk) 18:39, 11 November 2015 (UTC)[reply]

Votes

edit
  1.   Support בנימין (talk) 07:35, 30 November 2015 (UTC)[reply]
  2.   Support Very much non-trivial to fix. But Collection/OCG is essentially unmaintained, so it would be nice for Community Tech to take this on and fix our half-baked PDF generation system. This, that and the other (talk) 13:26, 30 November 2015 (UTC)[reply]
  3.   Support Table support should have been part of the MVP. John Vandenberg (talk) 01:54, 1 December 2015 (UTC)[reply]
  4.   Support --Purodha Blissenbach (talk) 10:12, 1 December 2015 (UTC)[reply]
  5.   Support - Whaledad (talk) 15:21, 1 December 2015 (UTC)[reply]
  6.   Support JackPotte (talk) 16:22, 1 December 2015 (UTC)[reply]
  7.   Support -- Singhalawap (talk) 16:58, 1 December 2015 (UTC)[reply]
  8.   Support Gap9551 (talk) 20:49, 1 December 2015 (UTC)[reply]
  9.   Support --Samuele Madini (talk) 01:16, 2 December 2015 (UTC)[reply]
  10.   Support Natuur12 (talk) 02:12, 2 December 2015 (UTC)[reply]
  11.   Support --Moroboshi (talk) 06:51, 2 December 2015 (UTC)[reply]
  12.   Support Mule hollandaise (talk) 07:49, 2 December 2015 (UTC)[reply]
  13.   Support Kvardek du (talk) 09:32, 2 December 2015 (UTC)[reply]
  14.   Support Yes. Regards, Kertraon (talk) 13:39, 2 December 2015 (UTC)[reply]
  15.   Support Stevie is the man! TalkWork 13:52, 2 December 2015 (UTC)[reply]
  16.   Support--Manlleus (talk) 15:50, 2 December 2015 (UTC)[reply]
  17.   SupportBeleg Tâl (talk) 16:55, 2 December 2015 (UTC)[reply]
  18.   Support This deficiency is VERY frustrating! YBG (talk) 06:47, 3 December 2015 (UTC)[reply]
  19.   Support SantiLak (talk) 10:52, 4 December 2015 (UTC)[reply]
  20.   Support Snipre (talk) 13:59, 4 December 2015 (UTC)[reply]
  21.   SupportDavid Eppstein (talk) 07:01, 5 December 2015 (UTC)[reply]
  22.   Support«« Man77 »» [de] 18:12, 11 December 2015 (UTC)[reply]
  23.   Support --NaBUru38 (talk)

A powerful, handy TemplateTiger

edit

Currently, TemplateTiger feeds on dumps and is very unhandy, if you are dealing with high-use templates. Therefore please, oh WMF, please provide a tiger which prowls through templates live and which can be piloted as easy as catscan (when it's available). → «« Man77 »» [de] 18:40, 10 November 2015 (UTC)[reply]

Earlier discussion and endorsements
  Endorsed Having a live version would definitely be useful. Other things that would be useful for maintenance are detection of invalid parameters (I maintain a similar tool that provides this for frwiki, but unfortunately, I don't have resources and time to run it for any other wiki). Orlodrim (talk) 19:04, 10 November 2015 (UTC)[reply]
  EndorsedMisterSynergy (talk) 21:07, 10 November 2015 (UTC)[reply]

Votes

edit
  1.   Support MisterSynergy (talk) 09:10, 30 November 2015 (UTC)[reply]
  2.   Support PerfektesChaos (talk) 11:35, 30 November 2015 (UTC)[reply]
  3.   Support Orlodrim (talk) 20:19, 30 November 2015 (UTC)[reply]
  4.   Support --Leyo (talk) 23:19, 30 November 2015 (UTC)[reply]
  5.   Comment No matter how optimized such a tool may be, it'll surely feed on dumps. --Ricordisamoa 06:54, 1 December 2015 (UTC)[reply]
  6.   Support I don't expect a live version to be more time-consuming than some expensive regex searches. --mfb (talk) 12:32, 1 December 2015 (UTC)[reply]
  7.   Support --Manlleus (talk) 15:50, 2 December 2015 (UTC)[reply]
  8.   Support --Waldir (talk) 12:51, 7 December 2015 (UTC)[reply]