User:Jonesey95/Tools

__NEWSECTIONLINK__ I use this page as a parking lot for templates that I need to remember how to use.

Convenience link: Special:MassPurge

Display a given page in a specific skin
e.g. Vector, Timeless, Monobook

?useskin=vector-2022

?useskin=vector

?useskin=timeless

?safemode=1

?dtenable=1 (enable beta Discussion Tools)

?useparsoid=1 (use Parsoid to render)

?useparsoid=0 (force old renderer)

?vectornightmode=1 (force night mode in Vector, scheduled to work in May 2024)

?minervanightmode=1&useskin=minerva (force night mode)

Report Parsoid problems at mw:Parsoid/Parser Unification/Known Issues.

Null edit all articles with a given template?
To be used sparingly, but it might be useful for templates that do not have a ton of usage: if you want to speed up the filling process, (1) install "User:Frietjes/masspurge.js" (done in vector.js) and (2) go to Special:MassPurge and (3) put "Template:Infobox royalty" (or the template you want to purge) in the top box and (4) press the top purge button. if it works, the bottom box will fill up with the list of all the transclusions and it will start purging each one.

You can also paste a list of articles in the bottom box instead of putting a template in the top box.

This works will purge one article every four or five seconds.

Categories to watch

 * Special:LintErrors
 * Special:WantedTemplates


 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors
 * WikiProject Check Wikipedia/ISBN errors

Links to my AutoEd scripts

 * User:Jonesey95/AutoEd/core.js
 * User:Jonesey95/AutoEd/replace.js
 * User:Jonesey95/AutoEd/issn.js
 * User:Jonesey95/AutoEd/month.js
 * User:Jonesey95/AutoEd/unnamed.js

Category search tools
Quick Category Intersection Search

Catscan - advanced multi-category search tool

Show top 250 articles in a category by number of incoming links (paste cat name)

GOCE Coordinator Tasks
Daily/Monthly/As Needed GOCE Coordinator tasks

Typing a pipe character
To type a pipe character within a template or elsewhere, use this template: |

GOCE notice for Talk page
The syntax for the article's Talk page template is:

It looks like this:

The syntax for the requester's Talk page template is:

It looks like this:

Template:Clarify
Clarify Looks like this:

Template:Dead link
Use Dead link or dl when you find a dead link to a website within a paragraph or a reference citation. Doing so will place a note by the URL and add the article to one of the Category:Articles with dead external links categories.

Append this template directly after the link or template, leaving the original link intact. Not doing so will prevent detection from automated tools. If the citation contains multiple URLs (e.g. chapterurl and url) in a template, and only one is broken, you can use  to explain which one is broken.

If the article uses clickable footnotes, then this tag should be placed just before the  that contains the dead link. The notice will then correctly appear in the reference section (instead of in the body of the text, which is not recommended).

Template:Convert
Examples of the Convert template:


 * 32 F results in 32 F
 * 32 ft results in 32 ft
 * 32 PD/sqmi results in 32 PD/sqmi
 * 60 and 170 kg results in 60 and 170 kg

WP:MOS shortcuts
WP:DASH

Template:Multiple issues
The syntax for the template is:

WP:Template_messages/Cleanup
List of Cleanup messages.

WP:COATRACK
The syntax for the template is:

References need expanding or improvement
The syntax for the template is: or

WP:HAT
Hatnotes, including For the main article... and This page is about...

How to make a redirect
To create a basic redirect manually, set  as the only body text of the page. For instance, if you were redirecting from "" to "United Kingdom", this would be the entire body of :

Template:Reflist
How to create a nice-looking list of references. A good multi-column list is (using |2 is deprecated).

WP:DE-ORPHAN
Edit summary to use when you de-orphan an article:

Needs more Wookieelink
I can't believe that searching for Wookieelink in Wikipedia shows zero results.

How to exclude an article from
To exclude a Template documentation article from a subcategory of because it is a demonstration of how a template can generate an error, insert |no-tracking=yes into the citation.

If it's a custom cite template, the following needs to be included in the template code, in the cite web (or other cite template) code:

|no-tracking=

After the above is added, the template documentation may need a null edit, after which the template needs one more null edit for it to be removed from the error category (or you can wait for the job queue to get around to it, if you're the patient type).

Edit summary search
Link to Edit summary search

How to see CITEREF

 * Trying two things.


 * One author with displayauthors
 * generates
 * generates


 * One author with last2=et al.
 * generates
 * generates


 * – Jonesey95 (talk) 18:53, 20 December 2013 (UTC)
 * You can determine a CITEREF by viewing the page source; search for
 * and it goes from there to the next double quote. Alternatively, fill in the parameters of and sandbox it:
 * I've filled them in above. One reason not to use et al. but instead supply all the authors and set displayauthors is so that all of them get added to the COinS metadata. -- Redrose64
 * I've filled them in above. One reason not to use et al. but instead supply all the authors and set displayauthors is so that all of them get added to the COinS metadata. -- Redrose64
 * I've filled them in above. One reason not to use et al. but instead supply all the authors and set displayauthors is so that all of them get added to the COinS metadata. -- Redrose64
 * I've filled them in above. One reason not to use et al. but instead supply all the authors and set displayauthors is so that all of them get added to the COinS metadata. -- Redrose64

To generate a custom CITEREF, add  to the end of the citation.

Protection levels
Protection levels for WP articles: Protection_policy

Interlanguage links
Make an in-line link to an article in another Wikipedia like this:

It looks like Joseph de Carayon La Tour.

To link to Commons, do this:

Use ill, ill2, or ill-WD to show both a redlink and an interlanguage link (ill and ill-WD will both hide the interlanguage link should the redlink turn blue). ill is used like this:

Sigmund Jakobsen &rarr;


 * produces: Charles Darwin (botanist)

A simple example:

Sheladize


 * Sheladize

Citation Bot development version
Citation Bot development version

PMC to PMID to DOI converter
To check if a given article has a DOI, PMC, or PMID, enter one of the identifiers at the PMID converter web page.

Compare two pages
compare two pages (diff)

Show all pages with a given prefix
Special:PrefixIndex/Template:Cite_wdl

Purge CS1 citations

 * https://en.wikipedia.org/w/api.php?action=purge&titles=Template:citation&forcerecursivelinkupdate
 * https://en.wikipedia.org/w/api.php?action=purge&titles=Template:cite_AV_media&forcerecursivelinkupdate
 * https://en.wikipedia.org/w/api.php?action=purge&titles=Template:cite_AV_media_notes&forcerecursivelinkupdate
 * https://en.wikipedia.org/w/api.php?action=purge&titles=Template:cite_book&forcerecursivelinkupdate
 * https://en.wikipedia.org/w/api.php?action=purge&titles=Template:cite_conference&forcerecursivelinkupdate
 * https://en.wikipedia.org/w/api.php?action=purge&titles=Template:cite_DVD_notes&forcerecursivelinkupdate
 * https://en.wikipedia.org/w/api.php?action=purge&titles=Template:cite_encyclopedia&forcerecursivelinkupdate
 * https://en.wikipedia.org/w/api.php?action=purge&titles=Template:cite_interview&forcerecursivelinkupdate
 * https://en.wikipedia.org/w/api.php?action=purge&titles=Template:cite_journal&forcerecursivelinkupdate
 * https://en.wikipedia.org/w/api.php?action=purge&titles=Template:cite_news&forcerecursivelinkupdate
 * https://en.wikipedia.org/w/api.php?action=purge&titles=Template:cite_podcast&forcerecursivelinkupdate
 * https://en.wikipedia.org/w/api.php?action=purge&titles=Template:cite_press_release&forcerecursivelinkupdate
 * https://en.wikipedia.org/w/api.php?action=purge&titles=Template:cite_sign&forcerecursivelinkupdate
 * https://en.wikipedia.org/w/api.php?action=purge&titles=Template:cite_speech&forcerecursivelinkupdate
 * https://en.wikipedia.org/w/api.php?action=purge&titles=Template:cite_techreport&forcerecursivelinkupdate
 * https://en.wikipedia.org/w/api.php?action=purge&titles=Template:cite_thesis&forcerecursivelinkupdate
 * https://en.wikipedia.org/w/api.php?action=purge&titles=Template:cite_web&forcerecursivelinkupdate

Run Citation Bot against a category

 * Click this for the et al authors category


 * Click this for the missing authors category


 * Click this for the Pages using duplicate arguments in template calls category

Links to RFCs referenced frequently
Is YYYY-MM an acceptable date format? (Feb–Apr 2014)

Hiding date errors (Sep–Oct 2013)

Cite doi templates (Sep 2014)

Hyphenated citation parameters (Jul 2014)

Medical articles: replace cite doi and cite pmid with cite journal and a previous discussion of a similar topic (Jan 2015, Mar 2014)

Month abbreviations (Jan 2014)

Excluding namespaces from CS1 error categories (Sep 2013)

Small caps only when it changes the meaning (May 2015)

Deprecation of Cite doi templates (Sep 2015)

Deprecation of Cite PMID templates (Oct 2015)

Religion in infoboxes (Apr 2016)

residence parameter in infobox person (December 2019)

home_town/hometown parameter in infobox person and related person infoboxes (August 2020) Ethnicity in infoboxes (April 2016)

Four-digit years at the end of year ranges (July 2016)

Coordinates in infoboxes (Aug 2016) (see also Coordinates in infoboxes, the mini-project page)

Future of magic links (ISBN, RFC, PMID) (Feb 2017)
 * determined that these magic links on the English Wikipedia should be replaced by the ISBN, PMID, and IETF RFC templates.

Templates should have English parameters (not an RFC, not officially closed) (Feb 2017)

No small font sizes in infoboxes (April 2018)

Move DYKs out of Template space (April 2018)

Deprecation of inline parenthetical referencing (within prose, outside of ref tags) (Sep 2020)

Wikidata/2018_Infobox_RfC (June 2018) – most recent RFC on wikidata in infoboxes

Wikipedia_talk:External_links/Archive_40 (Sep 2020) – do not use cite templates in the External links section

Native name discussions:
 * Village_pump_(proposals)/Archive_163 (November 2019)
 * Template_talk:Infobox_person/Archive_34 (December 2019)

Large decorative quote marks in article space (March 2020) (cquote template)

RFC on unhyphenated parameters (April 2021, first close, later overturned)
 * Second close of unhyphenated parameter RFC (April 2021, last six unhyphenated parameters remain supported)

Template:BibISBN TFD; Cite ISBN TFD with link to deleted discussion about deleting all Cite ISBN templates. Example TFD for an ISBN XXX template

Catscan searches
Templates with duplicate arguments/parameters

Template test cases and sandbox templates

 * Template test cases notice at the top for test cases
 * Template sandbox notice for sandboxes

Foreign-language citation templates to change to auto-substitution
See the See Also section at Cytuj stronę.

Most of these are done. Add templates with over 100 transclusions to User:AnomieBOT/TemplateSubster force.

Help:Magic words
Help:Magic_words for ifeq, ifexpr, switch, urlencode, CURRENTMONTH, formatting commands, and other magic words and parser functions.

Template for articles needing further translation
cleanup-translation

Templates I have edited (with useful code snippets)

 * Age in years
 * Birth date and age
 * Birth date
 * Birth year and age
 * Death date and age
 * Death year and age (not modified yet as of May 2015)
 * GOCE award
 * GOCE-new-blitz-page
 * GOCE-new-drive-page
 * ISBNT (ISBN check)
 * Graphic novel list (ISBN check)
 * Book list (ISBN check)
 * Infobox comics story arc (ISBN check)
 * Infobox comic book title (ISBN check)
 * Infobox comics team and title (ISBN check)
 * Infobox artist discography (unknown parameter check)

Templates to edit
Add parameter validation to these templates
 * Birth date and age2
 * Death date - also check for pre-1583 years
 * End date
 * Start date and age
 * Start date - also check for pre-1583 years
 * ✅ BillboardID - check for "illegal name" (see Talk)
 * ✅ New International Encyclopedia - categorize missing title error
 * Cite court - see Talk
 * Albumchart et al. additional checks for missing parameters, e.g. artist parameter where required or other conditions that generate red error messages. See Talk.
 * ✅ BillboardChartNum - added tracking cat for invalid chart name
 * Infobox album with unsupported type
 * singlechart and albumchart categorize errors, e.g. El Perdón and:
 * singlechart and albumchart categorize errors, e.g. El Perdón and:


 * Cite rowlett - Fix error cat to not create a URL-wikilink error:

Notability guideline for lists of alumni
WP:NLIST is the notability guideline for lists of alumni and similar lists. A quote: "For instance, articles about schools often include (or link to) a list of notable alumni/alumnae, but such lists are not intended to contain everyone who attended the school — only those with verifiable notability."

Generate Cite journal template from DOI
Tool to generate Cite journal template from a DOI

Subst a cite doi or cite jstor reference
can be substituted using:

Italicize part of an article title
at the top of the article

How to send a mass message
On the Special page you just need to enter the mailing-list page, a header and the wikitext of the message itself. Add four tildes to the end of the message and you're good to go.

Unicode character analysis
https://r12a.github.io/app-conversion/

Regex for "any character until a given character"
str = str.replace(/{{\s*[cC]ite doi\|10\.2307\/(.+?(?=[\}]))/gi, '{{Cite journal|jstor=$1'); str = str.replace(/{{\s*[cC]ite doi\|(10\.\d+\/.+?(?=[\}]))/gi, '{{Cite journal|doi=$1'); str = str.replace(/{{\s*[cC]ite pmid\|(\d+?(?=[\}]))/gi, '{{Cite journal|pmid=$1');

Strip URL from external link: \[http.+?(?= )(.+?(?=\]))\] (replace with $1)

Regex testing

Permanent link to a section of a page using the page history oldid
oldid2

How to show a rendered citation, including categories
Use Code.

Interwiki links
Links to different projects and Wikipedias, and to external sites with special prefixes.

https://meta.wikimedia.org/wiki/Help:Interwiki_linking#Prefixes

meta:Special:Interwiki

Job queue takes 90+ days
Discussion of the job queue from July 2014.

See also and.

Redlinked templates (wanted templates)
Special:WantedTemplates

Project for ambitious WP programmer (or student)
Make a universal age template that handles births, deaths, and ages gracefully, even when some pieces are unknown. The current mishmash of templates is a giant mess. The first step would be reading the documentation and talk pages for the existing templates to create a spec for what a universal template could do. It would probably have to be written in Lua. – Jonesey95 (talk) 05:13, 31 October 2016 (UTC)

Regular expression reference
AutoWikiBrowser/Regular expression

Copyright violation detector
https://tools.wmflabs.org/copyvios/

Central banner notices
Central banner notices are at CentralNotice/Request.

Phabricator bug tracking

 * : insource searches do not work properly (Marked as Resolved because they display a timeout warning now. Not fixed.)
 * : Citoid adding extra "PMC" (Declined as not a bug, worked around in CS1)
 * : false positives in template transclusion reports due to faulty js file parsing
 * : exclude some namespaces from Special:WantedTemplates
 * : categorization takes days or months when templates or modules change
 * : categorization takes months or forever when MediaWiki code changes
 * : serif font for lead section "edit" link (Fixed)
 * : VisualEditor rearranges template parameters (Declined as not a bug)
 * : Visual Editor wraps ISBNs in nowiki tags
 * : Group watchlist changes across days
 * : Citoid is not yet even minimally intelligent about the citation dates it inserts.
 * : Citoid insert Special:BookSources link when ISBN is added
 * : Number of category members (PAGESINCATEGORY) is inaccurate for large categories
 * : Signatures are not checked for Linter errors (deployed mid-2020; includes flag for obsolete tags, not yet activated, waiting for consensus discussion here on en.WP) (talk page thread)
 * : Linter does not detect invalid "500px500px" as a bogus file option (Fixed, but the fix caused, Linter false positive: image caption ending in "px" is incorrectly detected as a Linter error)
 * : Linter fails to detect multiple "upright" parameters as a Bogus file option
 * : Move TemplateData to its own JSON-content namespace
 * : PHP7's stricter JSON parsing breaks some wiki content (i.e. bad JSON was saved in the past using HHVM, and now if you try to edit a template that transcludes bad JSON, you will get an error even if you are not changing the JSON)

Tasks I am following.

Replacing Tidy
Report on all WPs: https://tools.wmflabs.org/wikitext-deprecation/

Safe mode
You can add  to the end of the URL on Wikimedia wikis to disable your personal CSS and JavaScript. Example:. This means you can test if a problem is because of your user scripts or gadgets without uninstalling them. 

Add this to vector.js to make a left-bar easy link:

importScript('User:PrimeHunter/Safe mode.js'); // Linkback: [ [User:PrimeHunter/Safe mode.js] ]

Copy edit category note

 * Note: This category has been reviewed to ensure that the articles actually need copy editing (i.e. that they are properly tagged). (signed)

New word count script to try
User:Caorongjin/wordcount

Template parameter values start with colon, semicolon, asterisk, pound sign
Help:Template

Expand templates
Expand templates to see what the rendered wikicode (not the rendered HTML) looks like. Useful for testing sandbox code and comparing to the existing template code.

Special:ExpandTemplates

Templates for responding to edit-protected requests
(edit-protected, not done, change X to Y)

or a script to do this in a fancy way, according to Izno:

All the cool kids actually use User:Jackmcbarn/editProtectedHelper.js

Check citations for consistency
Check citations for consistency (CS1, CS2, named, unnamed, templated, not templated) ref info / refinfo:

Editing restrictions on specific editors
Topic bans, warnings, editing restrictions: Editing_restrictions

Why I never touch TemplateData
Lest we forget.

Links to Mediawiki settings and configuration files
Help:MediaWiki namespace

Site-wide CSS and JS, including mobile

MediaWiki:Common.css includes settings like navbox text = 88%

See which version of Mediawiki and extensions are installed
Special:Version

Vanity
List of Wikipedians by number of edits

edit count rank

HTML entity codes
https://www.toptal.com/designers/htmlarrows/punctuation/left-bracket/

Also URL encoding UTF-8 codes: https://www.w3schools.com/tags/ref_urlencode.ASP

JSONLint
https://jsonlint.com/

Fix JSON (sigh)

Force edit with Visual Editor
Add  to the edit page link.

List of wikitext editors (including Visual Editor) as of mid-2020
Editor


 * the default MediaWiki editor from 2003, an HTML textarea
 * the 2010 "Extension:WikiEditor", confusingly called "enable the editing toolbar" or "the 2010 wikitext editor"
 * the 2017 wikitext editor (part of VisualEditor)
 * VisualEditor

How to see what MediaWiki page generates a system-level message
Put uselang=qqx in the query string. The ShowMessageNames gadget "Add a toolbox link to reload the current page with the system message names exposed" in Special:Preferences#mw-prefsection-gadgets will add a link to the sidebar to automatically do so.

Interwiki links
It's at Interwiki map and changes are requested at its talk.

gutenberg: and more. Shortcuts/abbreviations to other wikis, wikidata, wikipedias, wiktionary, etc.

Wikipedia Library access
https://wikipedialibrary.wmflabs.org/users/my_library/

Access to JSTOR, ODNB, EBSCO, ProQuest, newspapers.com, Ancestry.com, and more.

Templates starting with http

 * url=http without cite web


 * articles beginning with A
 * articles beginning with B
 * articles beginning with C
 * articles beginning with D
 * articles beginning with E
 * articles beginning with F
 * articles beginning with G
 * articles beginning with H
 * articles beginning with I
 * articles beginning with J
 * articles beginning with K
 * articles beginning with L
 * articles beginning with M
 * articles beginning with N
 * articles beginning with O
 * articles beginning with P
 * articles beginning with Q
 * articles beginning with R
 * articles beginning with S
 * articles beginning with T
 * articles beginning with U
 * articles beginning with V
 * articles beginning with W
 * articles beginning with X
 * articles beginning with Y
 * articles beginning with Z
 * articles beginning with 1
 * articles beginning with 2
 * articles beginning with 3
 * articles beginning with 4
 * articles beginning with 5
 * articles beginning with 6
 * articles beginning with 7
 * articles beginning with 8
 * articles beginning with 9
 * articles beginning with 0

Other common cite template biffs reports

 * cite book in plain text in article
 * cite news in plain text in article
 * cite web in plain text in article
 * See also WCW error 47 and WCW error 43, templates without proper beginning or end (template code will show in the rendered article) (3,000+ articles on each as of December 2020, yikes!)
 * See also WCW error 34, three or four braces instead of two.

Character sorting order
mw:Help:Sorting

Page count by namespace
Database reports/Page count by namespace

number of pages in each namespace; number of articles; number of templates

How to use CS1 wrapper template
Cite palaeontology

Foreign language template translation instead of redirect
See Template:Référence nécessaire.

Simpler: (Template:Edad) 0

And here's a good basic Template redirect to copy wikitext from:

Template:Ref-web

To see CS1 cite template auto-substitution, see Book cite

How to add child/embed support to an infobox
Like this

Format footnotes template
format footnotes for articles that use deprecated parenthetical referencing.

Web-based color picker
Upload an image to find HTML color values

https://imagecolorpicker.com/en

Nested footnotes FAQ
Nested ref tags do not work (with workarounds)

Yet another reason to avoid becoming an admin, or even interacting with some admins
Bad faith accusations in response to a constructive process question about speedy deletion. Note to self: This is the at least the second time that defensive, reading-resistant admins have dragged me through the mud in response to an attempt to fix something that is clearly broken. Admins can be very territorial and possessive about "their" bailiwicks. – Jonesey95 (talk) 18:15, 4 May 2021 (UTC)

Redirects from typos in template space
Discussion and links to RFDs closed as "delete".

Watch a page without watching the talk page
Tricks copied from VPT:
 * And of course there is always the workaround of Special:Relatedchanges: I use Special:Relatedchanges/User:Kusma/c to make sure edits to the articles I actually care about don't get lost in my (far too long and drama infested) watchlist. —Kusma (Кузьма · कुस्मा · 𐌺) 12:24, 27 May 2021 (UTC)

Message to template editor about test cases and sandbox
Twice in the last few days, you have made multiple edits to live templates that are transcluded in many pages, introducing breaking changes. I recently reverted erroneous edits at Flaglist, which happened after you broke UN population. For any but the simplest of edits, please make your edits to the template's sandbox, then use the template's testcases page to ensure that you have not broken anything, then explain your changes on the template's talk page. Feel free to ping me from a template talk page if you would like feedback on your proposed edits to a template sandbox. If there are no objections to your proposed changes, it is then appropriate to copy the sandbox code to the live template. Thanks.

Apply magic word to a different page
From Help:MAGIC: Note: The magic words above can also take a parameter, in order to parse values on a page other than the current page. A colon is used to pass the parameter, rather than a pipe ( | ) that is used in templates, like. For example, returns Wikipedia talk:MOS on any page.

Why unnamed parameters are bad
I should write an essay.


 * one reason (blank parameter ignored when the error is an extra pipe)

Detect dead link template in sport report template
This fixed link-in-link errors.

Also fixed in non-Lua at Linescore.

Search results in template space for similar http string matching

replace spaces or other text
replace can strip spaces:  &rarr; 09 7 61 000

Instructions for sloppy template editors

 * Revert the recent non-working edits to the live template, which is transcluded on 131 pages, in case you broke anything.
 * Create a sandbox version of the template.
 * Create and populate a testcases page.
 * Use Special:ExpandTemplates to figure out what the rendered version of the template's wikitext looks like.
 * Modify the sandbox and testcases page until you fix the problem or have a better idea of where the problem resides.
 * If necessary, repeat the previous two steps until you fix the problem or get stuck.
 * If you fix the problem, copy the sandbox code to the live template.
 * Post a note on the template's talk page asking for help.

TFD about redirects to Template:End
Templates_for_discussion/Log/2020_July_12

Template to close a table using wikitext or. See also s-end.

Userbox namespace guideline
WP:UBXNS

OK to move userbox templates to User:UBX/xxyy.

In the template namespace, userbox names must begin with "User " (e.g. Template:User Brazil or Template:User en)

How page images are chosen
https://www.mediawiki.org/wiki/Extension:PageImages#Image_choice

Default page image in page information thumb thumbnail

Check for errors in Module:Political party
Special:PoliticalParty

party color link abbrev shortname colour meta/color

Find hex color from image
Put image URL here: https://imagecolorpicker.com/

Query showing stale refreshlinks

 * page_links_updated by year, all namespaces
 * page_links_updated by month, mainspace
 * page_links_updated by date, mainspace

Query showing stale refreshlinks. Related to about pages not being refreshed and needing periodic null edits.

Figures are in thousands, so a page count reading "2942" is 2,942,000 pages.

Bot is operated by User talk:Wbm1058

Infobox template pages containing small tags
Infobox template pages containing small tags

Infobox template pages containing small template

How to replace rail style templates
For the styles, you do [//en.wikipedia.org/w/index.php?title=Göktürk_(Istanbul_Metro)&type=revision&diff=1083466484&oldid=1083431483 this] the   is the name of the module and the   is the table key in the   in the Module:Adjacent stations/Istanbul Metro. if there is only one name format, you don't need the table (see Module:Adjacent stations/Sydney Metro). you can also get more fancy and use  like Module:Adjacent stations/Manila LRT which also keeps the colors in sync.

Module:Adjacent stations/Kaohsiung Rapid Transit is the equivalent of a module redirect, at least for these modules.

See Module:Adjacent stations/ÖBB and Module:Adjacent stations/Iarnród Éireann and Broombridge railway station for how to do branch lines.

subst code to replace template including parameters
How to set up a template to subst its parameters when converting it to another template.

This worked for Hover title converting to tooltip. We needed to swap parameters 1= and 2=, and display link= and dotted= if they existed but not introduce empty parameters if they were not already there.

The code did not work properly on the testcases page, but substing worked flawlessly.

undefined

Watchlist notices / messages
MediaWiki talk:Watchlist-messages

How to change the number of items shown on Linter reports
This works for History, Contributions, and Linter report pages.

Preferences > Recent changes > Number of edits to show in recent changes, page histories, and in logs, by default

Database report template
[copied from Wikipedia talk:Database reports]

Database report template can now be used to set up one-off or periodically updating reports in userspace or project namespace, given an SQL query. The template doc lists the supported formatting options. Feel free to give it a try and let me know if you face any issues. – SD0001  (talk) 15:43, 28 October 2022 (UTC)

Mapframe parameters for unknown parameter check
Module:Infobox mapframe

Workarounds for newline caused by # * : ; at start of parameter value causing a new line
Help:Template

Purge an image that has and outdated cached image at one or more sizes
c:Help:Purge

Add  to the File URL

Add a period (full stop) to an argument if it does not have one
Terminate sentence: This template returns its first argument, after adding a full stop (or its second argument) if the sentence was not finished.

One way to close a tag in Lua
like this

or like this

Create a database report from a query
Database report

How to remove markup from automatic short descriptions
Plain text

Delink

BRFA bot tasks to remember

 * Bots/Requests for approval/VulpesBot - blanking stale IP talk pages

Module:Is infobox in lead
Module:Is infobox in lead to apply short description only if the infobox is in the lead (and a couple of other conditions)

Examples of pages where Linter errors caused the whole page or section to change formatting after a certain point

 * https://en.wikipedia.org/w/index.php?title=Wikipedia:Featured_picture_candidates/Mexican_Wolf&oldid=204215959 (unclosed tag for 16 years turned the rest of the text blue)
 * https://en.wikipedia.org/w/index.php?title=2000_Heineken_Cup_final&oldid=1206683145 (unclosed table broke formatting of following sections)
 * https://en.wikipedia.org/w/index.php?title=Useful_idiot&oldid=1208211215#Origin (unclosed italics turned the rest of the section italic)
 * https://en.wikipedia.org/w/index.php?title=User_talk:SniperSarge&oldid=1192919494#New_10,000_Challenge_for_Canada (unclosed table put the following sections inside a table instead of being their own sections)
 * https://en.wikipedia.org/w/index.php?title=Wikipedia:Requested_articles/Arts_and_entertainment/Visual_arts&oldid=1211377695 (unclosed div tag broke section header formatting, putting all subsequent sections into two columns)
 * https://en.wikipedia.org/w/index.php?title=Wikipedia%3AArticles_for_deletion%2FInsert_Disc_Two&diff=1219657864&oldid=1083195480 (unclosed b tag made the rest of the page bold)
 * https://en.wikipedia.org/w/index.php?title=Dallas_Frasca&diff=1222638673&oldid=1222443779 (unclosed table absorbed the rest of the page)
 * https://en.wikipedia.org/w/index.php?title=User_talk%3ABigmike&diff=1223499290&oldid=990323822 (Linter errors making the rest of the page bold)
 * https://en.wikipedia.org/w/index.php?title=Talk:Tiny_Town_(miniature_park)&diff=prev&oldid=1229273193 (missing closing div tag put the rest of the page in a box)

Fix fostered content at start of table with noinclude tags
See AchievementTable. A Linter bug workaround.