User talk:WP 1.0 bot/Historical
Appearance
Template-protected edit request on 5 June 2019
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
The current setup requires users to go into the project list to find the table for a specific wikiproject, which can feel like a bit of too much effort sometimes.
It might be a good idea to make this process smarter by, well, trying to take the project name from PAGENAME:
{{#switch:{{{type|}}} |byquality= Wikiproject article lists can be generated using the [<!-- -->{{#if:{{{projname|{{#ifeq:{{str sub new|s={{FULLPAGENAME}}|i=1|j=37}}|Wikipedia:Version 1.0 Editorial Team/|y|}}<!-- -->}}}|<!-- -->https://tools.wmflabs.org/enwp10/cgi-bin/table.fcgi?project={{uriencode:{{{projname|{{#ifeq:{{str sub new|s={{FULLPAGENAME}}|i=1|j=37}}|Wikipedia:Version 1.0 Editorial Team/|<!-- -->{{str sub new|s={{FULLPAGENAME}}|i=38|j=-21}}}}<!-- -->}}}<!-- -->|WIKI}}|<!-- -->http://tools.wmflabs.org/enwp10/}} WP 1.0 web tool]. }}
Test case (FULLPAGENAME replaced with "Wikipedia:Version 1.0 Editorial Team/Medical genetics articles by quality"):
- Wikiproject article lists can be generated using the WP 1.0 web tool.
(I know this is some wanky code with hardcoded string lengths, substrings, and stuff, but we aren't going to write a Lua module for this, right?) Artoria2e5 🌉 07:24, 5 June 2019 (UTC)
- Done Primefac (talk) 12:19, 5 June 2019 (UTC)
- User:Primefac: apologies for the fuckup, but I mistyped "urlencode" as "uriencode" in the code block above. Could you please fix that? --Artoria2e5 🌉 17:51, 5 June 2019 (UTC)
- Done. Primefac (talk) 10:43, 6 June 2019 (UTC)
- User:Primefac: apologies for the fuckup, but I mistyped "urlencode" as "uriencode" in the code block above. Could you please fix that? --Artoria2e5 🌉 17:51, 5 June 2019 (UTC)