User:Johnuniq/index#NUMBEROF
This is an index of pages relating to modules I have developed.
- Special:PrefixIndex/User:Johnuniq • Current user subpages.
- Special:PrefixIndex/Module:Sandbox/Johnuniq • Sandbox modules.
Miscellaneous
- User:Johnuniq/invoke can be used to simulate a template invoking a function in a module. Example using defaults to call age_generic in Module:Age/sandbox:
→ {{user:johnuniq/invoke|template=age_in_years|2001|March 2016}}{{user:johnuniq/invoke|template=age_in_years|2001|March 2016}}
= Page tracking categories =
More at Wikipedia:Template limits (with "recent additions" links).
- :Category:ParserFunction errors
- :Category:Pages where post-expand include size is exceeded • [https://en.wikipedia.org/w/api.php?action=query&list=categorymembers&cmtitle=Category%3APages%20where%20post-expand%20include%20size%20is%20exceeded&cmprop=title&cmlimit=500&cmnamespace=0&format=xml articles]
- :Category:Pages with script errors • [https://en.wikipedia.org/w/api.php?action=query&list=categorymembers&cmprop=title&cmlimit=500&cmnamespace=0&format=xml&cmtitle=Category:Pages_with_script_errors articles]
= Temporary experiments =
- User:Johnuniq/temp • Template which invokes module.
- User talk:Johnuniq/temp • Results showing calls to template and module.
- Module:Sandbox/Johnuniq/temp • Module which displays frame/parent.
Age/date
- Module:Age • Intended to implement a variety of age and duration templates.
- Module:Date • Implements date-handling functions for other modules (not templates). Works with dates from 9999 BCE to 9999 CE using proleptic Gregorian or Julian dates.
- Module:Date/doc • Documentation (more to do!).
- Module:Date/example • Demonstration showing how Module:Date may be used.
- Module talk:Date/example • Output from the demonstration.
Age/date modules
{{#invoke:convert/tester|compare|Age|Date}}
Age/date templates
- Template:Extract • New template for operations on a single date.
- Template:Time interval • New template proposed by JFG for handling most age-related processing.
- Template:Time interval/doc • Documentation.
- Module:Age/doc#Templates supported • Other supported templates.
- Wikipedia:Age calculation templates • List with more related templates.
- :Category:Age error • Tracking category used by module.
- :Category:Pages using age template with invalid date • Tracking category used by other date templates.
Authority control
These templates and modules were created by others; I have just done some minor tweaks but want to have an easy way to find related items.
- Template talk:Authority control • Discussion for template and module.
- Template:Authority control • Invokes Module:Authority_control
- Template:Authority control/sandbox • Invokes Module:Authority_control/sandbox
- Template:Authority control/testcases • Tests appearance of main and sandbox templates.
- Template:Authority control/testcases2 • Tests whether main and sandbox templates generate identical wikitext.
Categories
- Module:Authority control#Tracking categories
- :Category:Wikipedia articles with authority control information
- :Category:Wikipedia articles with faulty authority control information
Authority control modules
{{#invoke:convert/tester|compare|Authority control}}
EditAtWikidata {{green|(used by authority control)}}
{{#invoke:convert/tester|compare|EditAtWikidata}}
Bengali Wikipedia
- :bn:User:Johnuniq • Some modules for localization at bnwiki.
- :bn:User talk:Johnuniq • Requests.
- :bn:Module:Navseasoncats/খেলাঘর • Sandbox module (April 2022) originally from Module:Navseasoncats.
Bibleverse
Module:Bibleverse created by Jfhutson to generate links to Bible verses.
- Template talk:Bibleverse • discussion
{{#invoke:convert/tester|compare|Template:Bibleverse|Bibleverse}}
- Template:Bibleverse/testcases
- Template:Bibleverse/testcases2
- :Category:Pages with Bible book errors
- :Category:Pages with Bible version errors
- :Category:Pages with numeric Bible version references
- {{no redirect|Template:Bibleref}} • redirect to Template:Bibleref
- Template:Bibleref2 • alternative (does not use module)
- WT:WikiProject Bible • wikiproject discussion
Biglist
- Module:Biglist • Module to generate a big list of similar items.
- Module:Biglist/doc • Documentation.
- :Category:Pages where post-expand include size is exceeded • [https://en.wikipedia.org/w/api.php?action=query&list=categorymembers&cmprop=title&cmlimit=500&cmnamespace=0&format=xml&cmtitle=Category:Pages_where_post-expand_include_size_is_exceeded articles] • Aim is to help remove pages from this list.
- :Category:Pages with script errors • [https://en.wikipedia.org/w/api.php?action=query&list=categorymembers&cmprop=title&cmlimit=500&cmnamespace=0&format=xml&cmtitle=Category:Pages_with_script_errors articles] • Or this, for "time exceeded" errors.
Convert
- Template:Convert • Template that invokes the module.
- Template:Convert/sandbox • Invokes the sandbox module; see also Template:Convert/sandboxlua + Template:Convert/sandboxlua2.
- Template:Convert/Transwiki guide • Lists the wikis where the module is used, with how-to information.
- Module:Convert/helper • Can be used by a template to format parameters for use with
.{{convert}} - Module:Convert/tester • For testing templates and comparing sandbox modules.
- Template:Convert/testcases#Sandbox testcases • Tests.
- Module:Convert/makeunits • Make convert/data from master list of units.
- Module:Convert/show • Show simple unit information for documentation (not used).
- Module:Convert/documentation/conversion data • Master list of units.
- Template:Convert/unit sandbox • Use this to create temporary units.
- Module talk:Convert/wikidata/data • Comparison of units listed in Module:Convert/wikidata/data with Wikidata.
- Module talk:Convert/wikidata/data/sandbox • Comparison of units listed in Module:Convert/wikidata/data/sandbox with Wikidata.
- Module:ConvertNumeric • Support module for spelling numbers as words.
- Help:Convert • Usage documentation.
- Special:PrefixIndex/Module:Convert • Current module subpages.
- :test2wiki:User talk:Johnuniq • My talk page at test2 with old notes.
Convert categories
- :Category:Convert errors • Articles with invalid converts that show an error message.
- :Category:Convert invalid options • Articles with invalid converts that show an asterisk warning.
- :Category:Convert tracking • Articles with converts that use
|input=...
and where the input was not interpreted by convert, provided|tracking=category sort key
was given.
Convert modules
{{#invoke:convert/tester|compare|convert}}
Convert styles
Countries
For Commons, a set of templates and modules provides countries navboxes.
- c:Module:Countries • Implements navigation boxes for countries in defined regions.
- c:Template:Countries of Africa • Example of a navbox for a region.
- c:Module:Countries/Africa • Example of data required for the navbox.
- c:Module talk:Countries/show • All country information, including links to Wikidata items.
Dump
- Module:Dump • Module to display Wikidata entities or other Lua tables; useful when developing other modules.
Horse race distance
Module:Convert/helper implements function horseRaceDistance
to display a distance in miles, furlongs and yards for articles such as List of British National Hunt races.
- Template:Horse race distance • Template that invokes module.
- Template:Hrd • Shortcut.
IPblock
Module:IPblock implements Template:Blockcalc to calculate IP ranges for admins who need to block several IP addresses. The name blockcalc can be entered for easy use although the official name is {{tl|IP range calculator}}. The short name is used because too many templates start with "IP" and because it matches :toollabs:blockcalc. Also, "block" = CIDR block and WP:Block.
- Template:Blockcalc • Template that invokes module.
IPblock modules
{{#invoke:convert/tester|compare|IPblock}}
Plan to move IP handling functions to another module.
- Module:IP • Handle IP addresses for other modules.
- Module talk:IP • Discussion.
- Module:IP/testcases • Tests.
- Module:Sandbox/Johnuniq/ip • Temporary test.
- Module talk:Sandbox/Johnuniq/ip • Results of running test.
Handle list of sensitive IP addresses (by Mr. Stradivarius).
- Module:Sensitive IP addresses
- Module:Sensitive IP addresses/list
- Module:Sensitive IP addresses/list/validate
A related module (created by קיפודנחש) tests a parameter for validity.
- Module:IPAddress • function
isIpOrRange
tests for a valid IPv4/IPv6 address or CIDR range
JCW
Module:JCW (started by Galobtter) is used at various [https://en.wikipedia.org/wiki/Special:PrefixIndex?prefix=JL-Bot&namespace=2 User:JL-Bot subpages], particularly User:JL-Bot/Citations.cfg • User:JL-Bot/Maintenance.cfg • User:JL-Bot/Publishers.cfg • User:JL-Bot/Questionable.cfg • User:JL-Bot/Questionable.cfg/General • User:JL-Bot/Questionable.cfg/Header • User:JL-Bot/Questionable.cfg/Journals • User:JL-Bot/Questionable.cfg/Publishers • User:JL-Bot/Selected.cfg.
- Module:JCW
- Template:JCW-doi-redirects
{{green|(same as JCW-selected)}}{{#invoke:JCW|selected}} - Template:JCW-selected
{{#invoke:JCW|selected}} - Template:JCW-exclude
{{#invoke:JCW|exclude}} - Template:JCW-pattern
{{#invoke:JCW|pattern}}
Key
Module:Key implements Template:Key_press to display computer keyboard key combinations using kbd.
- Template:Key press • Template that invokes module.
- Template:Key press/testcases • Tests showing some examples.
- Module:Key • Module which implements template and which can be called directly with
to reduce include size.{{#invoke:key|press|...}} - Table of keyboard shortcuts • Article which exceeded post-expand include size using the old template
Navbox
Module:Navbox (created by User:Toohool) implements Template:Navbox. A new procedure changes the way striping occurs (striping displays the rows in a table with alternating background colors).
- Template:Navbox • Template that invokes module.
- Template talk:Navbox • Discussion.
- Template:Navbox/testcases • Tests comparing results from the template and its sandbox.
- :Category:Navbox orphans • Tracking category to show pages using a child navbox without a proper parent navbox.
{{#invoke:convert/tester|compare|Navbox}}
NUMBEROF
Development of module started by User:GreenC.
- Template:NUMBEROF • template to get number of: activeusers, admins, articles, edits, files, pages, users
- Template talk:NUMBEROF • discussion
- Template:Wikipedia rank by size • template to get site from rank (by number of articles), or vice versa
- Template talk:Wikipedia rank by size • discussion
- Module:NUMBEROF • code to implement {{tl|NUMBEROF}} and {{tl|Wikipedia rank by size}}
- Module:NUMBEROF/data • loaded once per page from mw.ext.data.get('Wikipedia statistics/data.tab') • c:Data:Wikipedia statistics/data.tab
- Module:NUMBEROF/meta • loaded once per page from mw.ext.data.get('Wikipedia statistics/meta.tab') • c:Data:Wikipedia statistics/meta.tab
- Module:NUMBEROF/rank • loaded once per page from mw.ext.data.get('Wikipedia statistics/rank/wikipedia.tab') • c:Data:Wikipedia statistics/rank/wikipedia.tab
- Module:NUMBEROF/other • loaded once per page from mw.ext.data.get('Wikipedia statistics/rank/X.tab') where X is each other sister project, for example c:Data:Wikipedia statistics/rank/wikiquote.tab
- Template:NUMBEROF/testcases
- Module:Sandbox/Johnuniq/temp
- Module talk:Sandbox/Johnuniq/temp • dump of Wikipedia_statistics/data.tab
- c:Special:PrefixIndex/Data:Wikipedia statistics • all statistics pages
Particles
List of baryons is a featured list but was exceeding the template expansion size limit. This module implements {{tl|Subatomic particle}} in a more efficient manner and allows multiple particles to be specified and displayed in a single nowrap span.
- Module:Particles • Use
or{{#invoke:particles|link|...}}
in an article (using a template would double the expansion size).{{#invoke:particles|nolink|...}} - Module:Particles/data • Particle definitions.
Team appearances list
For use in infoboxes, the module produces a horizontal list of team appearances at a specified sports competition. The module was started by Izkala.
- Template:Team appearances list • Template that invokes module.
- Module talk:Team appearances list • Discussion.
- Template:Team appearances list/testcases • Some tests.
- Module talk:Team appearances list/show • Results of using Module:Team appearances list/show to list data.
Team appearances list modules
{{#invoke:convert/tester|compare|team}}
Related
Look up a country name/flag from its alias (started by Primefac).
- Template talk:Country alias and {{no redirect|Module talk:Country alias}} • Discussion.
{{#invoke:convert/tester|compare|Country alias}}
Val
Module:Val implements Template:Val to format values, optionally with units (started by The Mol Man).
- Template:Val • Template that invokes module.
- Template:Val/sandbox • Invokes Module:Val/sandbox
- Template:Val/testcases • Tests for template.
- Template talk:Val/testcases • Results of running tests.
- :Category:Pages with incorrect formatting templates use • Pages with a detected syntax error.
Val modules
{{#invoke:convert/tester|compare|val}}
Weather box
Display a table with monthly weather values (started by Dragons flight).
- Template:Weather box • Template that invokes Module:Weather box.
- Template talk:Weather box • Discussion.
- Module:Weather box • Implement logic from old Template:Weather box.
- Module:Weather box/row • Outputs one row of the box.
- Module:Weather box/colors • Table of colors for cells in box.
Weather templates/modules
{{#invoke:convert/tester|compare|Template:Weather box|Weather box|Weather box/row|Weather box/colors}}