I use this page as a parking lot for templates that I need to remember how to use.
Convenience link: Special:MassPurge
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.
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.
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)
Category | Current status |
---|---|
Done | |
Done | |
Done | |
Done | |
Done | |
Not done | |
Not done | |
Not done | |
Done | |
Done | |
Done | |
Done | |
Done | |
Done | |
Done | |
Done | |
Done | |
Done | |
Done | |
Done |
Daily/Monthly/As Needed GOCE Coordinator tasks
To type a pipe character within a template or elsewhere, use this template: ((!))
The syntax for the article's Talk page template is:
((GOCE |user=((subst:REVISIONUSER)) |date=((subst:date)) |small= ))
It looks like this:
Guild of Copy Editors | ||||
|
The syntax for the requester's Talk page template is:
((GOCEtb | article = foobar | sign = message here. ~~~~ ))
It looks like this:
Hello, Jonesey95. This is a courtesy notice that the copy edit you requested for foobar at the Guild of Copy Editors requests page is now complete. All feedback welcome! message here. – Jonesey95 (talk) 04:41, 16 August 2013 (UTC) |
((Clarify)) Looks like this:[clarification needed]
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 <!-- hidden text -->
to explain which one is broken.
If the article uses clickable footnotes, then this tag should be placed just before the </ref>
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).
Examples of the Convert template:
The syntax for the template is:
((Multiple issues| ((Issue 1)) ((Issue 2)) ((Issue 3)) ... ))
List of Cleanup messages.
The syntax for the template is:
((coat rack))
The syntax for the template is:
((refimprove)) or ((refimprove section))
Hatnotes, including For the main article... and This page is about...
To create a basic redirect manually, set #REDIRECT[[target page name here]]
as the only body text of the page. For instance, if you were redirecting from "UK" to "United Kingdom", this would be the entire body of the "UK" page:
#REDIRECT [[United Kingdom]]
How to create a nice-looking list of references. A good multi-column list is
((reflist|30em))
(using |2 is deprecated).
Edit summary to use when you de-orphan an article:
Successfully de-orphaned! Wikiproject Orphanage: [[WP:ORPHAN|You can help!]]
I can't believe that searching for Wookieelink in Wikipedia shows zero results.
To exclude a Template documentation article from a subcategory of Category:Articles with incorrect citation syntax 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=(({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).
((citation))
: Invalid |display-authors=1
(help) generates CITEREFone2001((citation))
: Explicit use of et al. in: |last2=
(help) generates CITEREFoneet_al.2001<span id="CITEREF
((harvid))
and sandbox it:
((harvid|one|2001))
→ CITEREFone2001((harvid|one|et al.|2001))
→ CITEREFoneet_al.2001|displayauthors=
is so that all of them get added to the COinS metadata. -- Redrose64To generate a custom CITEREF, add ref=((harvid|Custom Name))
to the end of the citation.
Protection levels for WP articles: Wikipedia:Protection_policy#Comparison_table
Make an in-line link to an article in another Wikipedia like this:
[[:fr:Joseph_de_Carayon-Latour|Joseph de Carayon La Tour]]
It looks like Joseph de Carayon La Tour.
To link to Commons, do this: [[:commons:User:Example|Example]]
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:
((ill|Sigmund Jakobsen|no)) → Sigmund Jakobsen
((ill|Charles Darwin (botanist)|lt=Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin))
produces: DarwinA simple example:
((ill|Sheladize|ku))
Citation Bot development version
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 (diff)
What you type | What it looks like |
---|---|
|
I will change the color in the middle part of this sentence. |
Special:PrefixIndex/Template:Cite_wdl
Markup | Renders as |
---|---|
((cite journal|author=Author|title=Title|journal=Journal name|pages=56-62)) |
Author. "Title". Journal Name: 56–62. |
Markup | Renders as |
---|---|
((cite book|author=Author|chapter=Chapter name|title=Book Title|pages=56-62)) |
|
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 Wikipedia:Coordinates in infoboxes, the mini-project page)
Future of magic links (ISBN, RFC, PMID) (Feb 2017)
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)
Wikipedia:Wikidata/2018_Infobox_RfC#Discussion (June 2018) – most recent RFC on wikidata in infoboxes
Wikipedia_talk:External_links/Archive_40#RFC_on_how_to_format_external_links (Sep 2020) – do not use cite templates in the External links section
Native name discussions:
Large decorative quote marks in article space (March 2020) (cquote template)
RFC on unhyphenated parameters (April 2021, first close, later overturned)
Template:BibISBN TFD; Cite ISBN TFD with link to deleted discussion about deleting all Cite ISBN templates. Example TFD for an ISBN XXX template
Templates with duplicate arguments/parameters
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#Parser_functions for ifeq, ifexpr, switch, urlencode, CURRENTMONTH, formatting commands, and other magic words and parser functions.
Add parameter validation to these templates
Chart (1989–90) | Peak position |
---|---|
ERROR: MUST PROVIDE DATE FOR POLISH CHART[1] | 1 |
Spanish Albums (PROMUSICAE)[2] | 5 |
References
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."
Tool to generate Cite journal template from a DOI
((cite jstor|1514012))
can be substituted using:
((safesubst:#tag:ref|((subst:cite doi/10.2307.2F1514012))))
((DISPLAYTITLE:List of ''The Kingdom Keepers'' characters)) at the top of the article
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.
December 2020 [[Wikipedia:WikiProject Guild of Copy Editors|Guild of Copy Editors]] Newsletter
https://r12a.github.io/app-conversion/
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)
((oldid2))
((oldid2|123456789|SectionName|Description))
((oldid2|123456789|Description))
Use ((Code)).
Links to different projects and Wikipedias, and to external sites with special prefixes.
https://meta.wikimedia.org/wiki/Help:Interwiki_linking#Prefixes
Discussion of the job queue from July 2014.
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)
Wikipedia:AutoWikiBrowser/Regular expression
https://tools.wmflabs.org/copyvios/
Central banner notices are at m:CentralNotice/Request.
Report on all WPs: https://tools.wmflabs.org/wikitext-deprecation/
You can add ?safemode=1
to the end of the URL on Wikimedia wikis to disable your personal CSS and JavaScript. Example: https://en.wikipedia.org/wiki/Literature?safemode=1
. This means you can test if a problem is because of your user scripts or gadgets without uninstalling them. [1]
Add this to vector.js to make a left-bar easy link:
importScript('User:PrimeHunter/Safe mode.js'); // Linkback: [ [User:PrimeHunter/Safe mode.js] ]
Help:Template#Problems_and_workarounds
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.
((subst:ESp|xy))
(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 (CS1, CS2, named, unnamed, templated, not templated) ref info / refinfo:
((ref info|articlename|style=float:right))
unnamed refs | 49 | ||
---|---|---|---|
named refs | 42 | ||
self closed | 69 | ||
cs1 refs | 91 | ||
cs1 templates | 96 | ||
cs1-like refs | 1 | ||
cs1-like templates | 1 | ||
sfn templates | 133 | ||
refbegin templates | 1 | ||
use xxx dates | dmy | ||
cs1|2 dmy dates | 5 | ||
cs1|2 last/first | 89 | ||
cs1|2 author | 2 | ||
| |||
| |||
| |||
explanations |
Topic bans, warnings, editing restrictions: Wikipedia:Editing_restrictions
Site-wide CSS and JS, including mobile
MediaWiki:Common.css includes settings like navbox text = 88%
Wikipedia:List of Wikipedians by number of edits
edit count rank
https://www.toptal.com/designers/htmlarrows/punctuation/left-bracket/
Also URL encoding UTF-8 codes: https://www.w3schools.com/tags/ref_urlencode.ASP
Fix JSON (sigh)
Add &veaction=edit
to the edit page link.
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.
It's at meta:Interwiki map and changes are requested at its talk.
gutenberg: and more. Shortcuts/abbreviations to other wikis, wikidata, wikipedias, wiktionary, etc.
https://wikipedialibrary.wmflabs.org/users/my_library/
Access to JSTOR, ODNB, EBSCO, ProQuest, newspapers.com, Ancestry.com, and more.
Wikipedia:Database reports/Page count by namespace
number of pages in each namespace; number of articles; number of templates
See Template:Référence nécessaire.
Simpler: (Template:Edad)
<includeonly>((Age|(({1|))}|(({2|))}|(({3|))}|(({4|))}|(({5|))}|(({6|))))}</includeonly><noinclude> ((documentation|content= ((subst only|auto=y)) This template assists with translating from Spanish to English by translating the Spanish [[:es:Template:Edad]] to the English [[Template:Age]].))</noinclude>
And here's a good basic Template redirect to copy wikitext from:
To see CS1 cite template auto-substitution, see ((Book cite))
((format footnotes)) for articles that use deprecated parenthetical referencing.
Upload an image to find HTML color values
https://imagecolorpicker.com/en
Nested ref tags do not work (with workarounds)
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)
Discussion and links to RFDs closed as "delete".
Tricks copied from VPT:
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.
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 ((MAGICWORD:value)). For example, ((TALKPAGENAME:Wikipedia:MOS)) returns Wikipedia talk:MOS on any page.
I should write an essay.
This fixed link-in-link errors.
Also fixed in non-Lua at ((Linescore)).
Search results in template space for similar http string matching
((replace)) can strip spaces: ((replace|09 7 61 000| |))
→ 09761000
Wikipedia:Templates_for_discussion/Log/2020_July_12#Template:AFB_game_box_end
Template to close a table using wikitext or </table>
. See also ((s-end)).
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)
https://www.mediawiki.org/wiki/Extension:PageImages#Image_choice
Default page image in page information thumb thumbnail
Special:PoliticalParty
party color link abbrev shortname colour meta/color
Put image URL here: https://imagecolorpicker.com/
Query showing stale refreshlinks. Related to T157670 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 template
For the styles, you do this the style
is the name of the module and the style2
is the table key in the name format
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 string.format
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.
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.
((tooltip|1=(({2|))}|2=(({1|))}((subst:<noinclude />#if: (({link|))}|((subst:<noinclude />!))link=(({link))))}((subst:<noinclude />#if: (({dotted|))}|((subst:<noinclude />!))dotted=(({dotted))))))}<noinclude> ((documentation)) </noinclude>
MediaWiki talk:Watchlist-messages
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
[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)
Help:Template#Problems_and_workarounds
Add ?action=purge
to the File URL
((Terminate sentence)): This template returns its first argument, after adding a full stop (or its second argument) if the sentence was not finished.
((Cite Q |Q15625490 |expand=yes))
((Database report))
((Plain text))
((Delink))
Module:Is infobox in lead to apply short description only if the infobox is in the lead (and a couple of other conditions)
See ((AchievementTable)). A Linter bug workaround.