User:Jonesey95/Tools#How to see CITEREF

__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

{{divcol|colwidth=30em}}

  • :Special:LintErrors
  • :Special:WantedTemplates
  • {{clc|Age error}}
  • {{clc|Pages using age template with invalid date}}
  • {{clc|Articles containing unknown ISO 639 language template}}
  • {{clc|ISO 639 name from code templates without a category}}
  • {{clc|Articles with invalid ISBNs}}
  • {{clc|Articles with invalid ISSNs}}
  • {{clc|Pages with ISBN errors}}
  • {{clc|Pages with OL errors}}
  • {{clc|Pages with empty citations}}
  • {{clc|CS1 errors: DOI}}
  • {{clc|CS1 errors: HDL}}
  • {{clc|CS1 errors: ISBN}}
  • {{clc|CS1 errors: ISMN}}
  • {{clc|CS1 errors: ISSN}}
  • {{clc|CS1 errors: LCCN}}
  • {{clc|CS1 errors: OCLC}}
  • {{clc|CS1 errors: OL}}
  • {{clc|CS1 errors: PMC}}
  • {{clc|CS1 errors: PMID}}
  • {{clc|CS1 errors: URL–wikilink conflict}}
  • {{clc|CS1 errors: arXiv}}
  • {{clc|CS1 errors: bibcode}}
  • {{clc|CS1 errors: chapter ignored}}
  • {{clc|CS1 errors: contributor}}
  • {{clc|CS1 errors: dates}}
  • {{clc|CS1 errors: external links}}
  • {{clc|CS1 errors: invalid parameter value}}
  • {{clc|CS1 errors: invisible characters}}
  • {{clc|CS1 errors: message-id}}
  • {{clc|CS1 errors: missing author or editor}}
  • {{clc|CS1 errors: parameter link}}
  • {{clc|CS1 errors: translated title}}
  • {{clc|CS1 maint: Ignored ISBN errors}}
  • {{clc|CS1 maint: Missing pipe}}
  • {{clc|CS1 maint: Unrecognized language}}
  • {{clc|Pages with citations having redundant parameters}}
  • {{clc|Pages with citations using translated terms without the original}}
  • {{clc|Pages with citations using unnamed parameters}}
  • {{clc|Pages with citations using unsupported parameters}}
  • {{clc|Pages using album chart with unknown parameters}}
  • {{clc|Pages using certification Table Entry with unknown parameters}}
  • {{clc|Pages using cite comic with unknown parameters}}
  • {{clc|Pages using div col with unknown parameters}}
  • {{clc|Pages using infobox Muslim leader with unknown parameters}}
  • {{clc|Pages using infobox World Heritage Site with unknown parameters}}
  • {{clc|Pages using infobox aircraft occurrence with unknown parameters}}
  • {{clc|Pages using infobox animal with unknown parameters}}
  • {{clc|Pages using infobox artwork with unknown parameters}}
  • {{clc|Pages using infobox beach with unknown parameters}}
  • {{clc|Pages using infobox building with unsupported parameters}}
  • {{clc|Pages using infobox card game with unknown parameters}}
  • {{clc|Pages using infobox character with unknown parameters}}
  • {{clc|Pages using infobox ecoregion with unknown parameters}}
  • {{clc|Pages using infobox factory with unknown parameters}}
  • {{clc|Pages using infobox former country with unknown parameters}}
  • {{clc|Pages using infobox former subdivision with unknown parameters}}
  • {{clc|Pages using infobox glacier with unknown parameters}}
  • {{clc|Pages using infobox historic site with unknown parameters}}
  • {{clc|Pages using infobox holiday with unknown parameters}}
  • {{clc|Pages using infobox islands with unknown parameters}}
  • {{clc|Pages using infobox law enforcement agency with unknown parameters}}
  • {{clc|Pages using infobox medical condition with unknown parameters}}
  • {{clc|Pages using infobox mountain with unknown parameters}}
  • {{clc|Pages using infobox oil field with unknown parameters}}
  • {{clc|Pages using infobox park with unknown parameters}}
  • {{clc|Pages using infobox pharaoh with unknown parameters}}
  • {{clc|Pages using infobox recurring event with unknown parameters}}
  • {{clc|Pages using infobox settlement with unknown parameters}}
  • {{clc|Pages using infobox station with unknown parameters}}
  • {{clc|Pages using infobox street with unknown parameters}}
  • {{clc|Pages using infobox venue with unknown parameters}}
  • {{clc|Pages using infobox video game with unknown parameters}}
  • {{clc|Pages using p. template with missing parameter}}
  • {{clc|Pages using South Africa data templates with unknown parameters}}
  • {{clc|Pages using weather box with unknown parameters}}
  • {{clc|Pages with errors in inflation template}}
  • {{clc|Pages using invalid self-closed HTML tags}}
  • {{clc|Pages using duplicate arguments in template calls}}
  • {{clc|Pages with script errors}}
  • Wikipedia:WikiProject Check Wikipedia/ISBN errors

{{divcol-end}}

Links to my AutoEd scripts

Category search tools

[http://tools.wmflabs.org/catscan2/quick_intersection.php Quick Category Intersection Search]

[http://tools.wmflabs.org/catscan2/catscan2.php Catscan - advanced multi-category search tool]

[http://toolserver.org/~dispenser/cgi-bin/categorder.py Show top 250 articles in a category by number of incoming links (paste cat name)]

Backlog checklist

class="wikitable"

|+Backlog status ({{purge}})

!Category

!Current status

{{Clickable button|CS1 errors: arXiv‎}}

|{{#ifexpr:{{formatnum:{{PAGESINCAT:CS1 errors: arXiv‎|pages}}|R}}<1|{{done}}|{{notdone}}}}

{{Clickable button|CS1 errors: ASIN}}

|{{#ifexpr:{{formatnum:{{PAGESINCAT:CS1 errors: ASIN|pages}}|R}}<1|{{done}}|{{notdone}}}}

{{Clickable button|CS1 errors: bibcode‎}}

|{{#ifexpr:{{formatnum:{{PAGESINCAT:CS1 errors: bibcode‎|pages}}|R}}<1|{{done}}|{{notdone}}}}

{{Clickable button|CS1 errors: coauthors without author}}

|{{#ifexpr:{{formatnum:{{PAGESINCAT:CS1 errors: coauthors without author|pages}}|R}}<1|{{done}}|{{notdone}}}}

{{Clickable button|CS1 errors: DOI}}

|{{#ifexpr:{{formatnum:{{PAGESINCAT:CS1 errors: DOI|pages}}|R}}<1|{{done}}|{{notdone}}}}

{{Clickable button|CS1 errors: invalid parameter value}}

|{{#ifexpr:{{formatnum:{{PAGESINCAT:CS1 errors: invalid parameter value|pages}}|R}}<1|{{done}}|{{notdone}}}}

{{Clickable button|CS1 errors: ISBN‎‎}}

|{{#ifexpr:{{formatnum:{{PAGESINCAT:CS1 errors: ISBN‎|pages}}|R}}<1|{{done}}|{{notdone}}}}

{{Clickable button|CS1 errors: ISSN‎‎}}

|{{#ifexpr:{{formatnum:{{PAGESINCAT:CS1 errors: ISSN‎|pages}}|R}}<1|{{done}}|{{notdone}}}}

{{Clickable button|CS1 errors: LCCN‎}}

|{{#ifexpr:{{formatnum:{{PAGESINCAT:CS1 errors: LCCN‎|pages}}|R}}<1|{{done}}|{{notdone}}}}

{{Clickable button|CS1 errors: OCLC}}

|{{#ifexpr:{{formatnum:{{PAGESINCAT:CS1 errors: OCLC|pages}}|R}}<1|{{done}}|{{notdone}}}}

{{Clickable button|CS1 errors: OL}}

|{{#ifexpr:{{formatnum:{{PAGESINCAT:CS1 errors: OL|pages}}|R}}<1|{{done}}|{{notdone}}}}

{{Clickable button|CS1 errors: parameter link‎}}

|{{#ifexpr:{{formatnum:{{PAGESINCAT:CS1 errors: parameter link‎|pages}}|R}}<1|{{done}}|{{notdone}}}}

{{Clickable button|CS1 errors: PMC‎}}

|{{#ifexpr:{{formatnum:{{PAGESINCAT:CS1 errors: PMC‎|pages}}|R}}<1|{{done}}|{{notdone}}}}

{{Clickable button|CS1 errors: PMID‎}}

|{{#ifexpr:{{formatnum:{{PAGESINCAT:CS1 errors: PMID‎|pages}}|R}}<1|{{done}}|{{notdone}}}}

{{Clickable button|CS1 errors: translated title‎‎}}

|{{#ifexpr:{{formatnum:{{PAGESINCAT:CS1 errors: translated title‎‎|pages}}|R}}<1|{{done}}|{{notdone}}}}

{{Clickable button|Pages with empty citations‎}}

|{{#ifexpr:{{formatnum:{{PAGESINCAT:Pages with empty citations‎|pages}}|R}}<1|{{done}}|{{notdone}}}}

{{Clickable button|Pages with citations having redundant parameters‎}}

|{{#ifexpr:{{formatnum:{{PAGESINCAT:Pages with citations having redundant parameters‎|pages}}|R}}<1|{{done}}|{{notdone}}}}

{{Clickable button|Pages with citations using unnamed parameters‎}}

|{{#ifexpr:{{formatnum:{{PAGESINCAT:Pages with citations using unnamed parameters‎|pages}}|R}}<1|{{done}}|{{notdone}}}}

{{Clickable button|Pages with citations using unsupported parameters‎}}

|{{#ifexpr:{{formatnum:{{PAGESINCAT:Pages with citations using unsupported parameters‎|pages}}|R}}<1|{{done}}|{{notdone}}}}

{{Clickable button|URL–wikilink conflict}}

|{{#ifexpr:{{formatnum:{{PAGESINCAT:CS1 errors: URL–wikilink conflict‎|pages}}|R}}<1|{{done}}|{{notdone}}}}

GOCE Coordinator Tasks

Typing a pipe character

To type a pipe character within a template or elsewhere, use this template: {{!}}

See Help:Template#Pipe.

GOCE notice for Talk page

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

{{GOCE |user={{subst:REVISIONUSER}} |date={{subst:date}} |small= }}

It looks like this:

{{WikiProject Guild of Copy Editors|user=Jonesey95|date=April 12, 2013|category=no}}

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

{{GOCEtb

| article = foobar

| sign = message here. ~~~~

}}

It looks like this:

{{GOCEtb

| article = foobar

| sign = message here. – Jonesey95 (talk) 04:41, 16 August 2013 (UTC)

}}

[[Template:Clarify]]

{{Tl|Clarify|reason=this is hover text}} Looks like this:{{Clarify|reason=this is hover text}}

[[Template:Convert]]

Examples of the Convert template:

  • {{convert|32|F|C}} results in {{convert|32|F|C}}
  • {{convert|32|ft|m}} results in {{convert|32|ft|m}}
  • {{convert|32|PD/sqmi|PD/sqkm}} results in {{convert|32|PD/sqmi|PD/sqkm}}
  • {{convert|60|and|170|kg|lb}} results in {{convert|60|and|170|kg|lb}}

[[WP:MOS]] shortcuts

[[Template:Multiple issues]]

{{Multiple issues|

{{copyedit}}

{{unreferenced}}

{{orphan}}

}}

The syntax for the template is:

{{Multiple issues|

{{Issue 1}}

{{Issue 2}}

{{Issue 3}}

...

}}

[[WP:Template_messages/Cleanup]]

List of Cleanup messages.

[[WP:COATRACK]]

{{coat rack}}

The syntax for the template is:

{{coat rack}}

References need expanding or improvement

{{refimprove}}

The syntax for the template is:

{{refimprove}} or {{refimprove section}}

[[WP:HAT]]

How to make a redirect

To create a basic redirect manually, set #REDIRECTtarget page name here as the only body text of the page. For instance, if you were redirecting from "{{noredirect|UK}}" to "United Kingdom", this would be the entire body of {{noredirect|UK|the "UK" page}}:

  1. REDIRECT United Kingdom

[[Template:Reflist]]

How to create a nice-looking list of references. A good multi-column list is

{{reflist|30em}}
(using |2 is deprecated).

[[WP:DE-ORPHAN]]

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

Successfully de-orphaned! Wikiproject Orphanage: You can help!

How to exclude an article from {{cl|Articles with incorrect citation syntax}}

To exclude a Template documentation article from a subcategory of {{cl|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 {{tl|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).

How to see CITEREF

:Trying two things.

:;One author with displayauthors

:{{citation |displayauthors=1 |last1=one |year=2001 |title=Title}}

:{{citation |display-authors=1 |last1=one |year=2001 |title=Title}} generates {{red|CITEREFone2001}}

:;One author with last2=et al.

:{{citation |last1=one |last2=et al. |year=2001 |title=Title}}

:{{citation |last1=one |last2=et al. |year=2001 |title=Title}} generates {{red|CITEREFoneet_al.2001}}

:– Jonesey95 (talk) 18:53, 20 December 2013 (UTC)

::You can determine a CITEREF by viewing the page source; search for

:::class="wikitable"

! What you type

! What it looks likeI will change the color in {{color|blue|the middle part of}} this sentence.

|

I will change the color in {{color|blue|the middle part of}} this sentence.

Show all pages with a given prefix

Show citation text and rendering

{{markup|title=Cite journal

|{{cite journal|author=Author|title=Title|journal=Journal name|pages=56-62}}

|{{cite journal|author=Author|title=Title|journal=Journal Name|pages=56–62}}

}}

{{markup|title=Cite book

|{{cite book|author=Author|chapter=Chapter name|title=Book Title|pages=56-62}}

|{{cite book|author=Author|chapter=Chapter name|title=Book Title|pages=56–62}}

}}

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

  • [http://tools.wmflabs.org/citations/category.php?cat=Pages_using_citations_with_old-style_implicit_et_al. Click this for the et al authors category]
  • [http://tools.wmflabs.org/citations/category.php?cat=CS1_errors:_missing_author_or_editor‎ Click this for the missing authors category]
  • [http://tools.wmflabs.org/citations/category.php?cat=Pages_using_duplicate_arguments_in_template_calls‎ 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)

[https://en.wikipedia.org/w/index.php?oldid=736659693#RfC:_Deprecate_named_coordinates-related_infobox_parameters Coordinates in infoboxes] (Aug 2016) (see also Wikipedia:Coordinates in infoboxes, the mini-project page)

[https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(proposals)&oldid=772133164#Future_of_magic_links Future of magic links (ISBN, RFC, PMID)] (Feb 2017)

:{{oldid2|772133164|Future of magic links|This March 2017 (English Wikipedia) RfC}} determined that these magic links on the English Wikipedia should be replaced by the {{tl|ISBN}}, {{tl|PMID}}, and {{tl|IETF RFC}} templates.

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

Pulling short descriptions from Wikidata (February 2018)

No small font sizes in infoboxes (April 2018)

Move DYKs out of Template space (April 2018)

[https://en.wikipedia.org/w/index.php?title=Wikipedia%3AVillage_pump_%28proposals%29&type=revision&diff=976895063&oldid=976879299#Deprecate_parenthetical_citations 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)

[https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(proposals)&oldid=1016336943#RFC:_Citation_Style_1_parameter_naming_convention RFC on unhyphenated parameters] (April 2021, first close, later overturned)

  • [https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(proposals)&oldid=1017952182#RFC:_Citation_Style_1_parameter_naming_convention 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

[https://tools.wmflabs.org/catscan2/catscan2.php?depth=3&categories=Pages+using+duplicate+arguments+in+template+calls&negcats=Template+test+cases%0D%0ATemplate+sandboxes&ns%5B10%5D=1&sortby=title&doit=1 Templates with duplicate arguments/parameters]

Template test cases and sandbox templates

  • {{tl|Template test cases notice}} at the top for test cases
  • {{tl|Template sandbox notice}} for sandboxes

Foreign-language citation templates to change to auto-substitution

See the See Also section at {{tl|Cytuj stronę}}.

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

Help:Magic words

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

Template for articles needing further translation

{{tl|cleanup-translation}}

Templates I have edited (with useful code snippets)

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

Templates to edit

Add parameter validation to these templates

  • {{tl|Birth date and age2}}
  • {{tl|Death date}} - also check for pre-1583 years
  • {{tl|End date}}
  • {{tl|Start date and age}}
  • {{tl|Start date}} - also check for pre-1583 years
  • {{done}} {{tl|BillboardID}} - check for "illegal name" (see Talk)
  • {{done}} {{tl|New International Encyclopedia}} - categorize missing title error
  • {{tl|Cite court}} - see Talk
  • {{tl|Albumchart}} et al. additional checks for missing parameters, e.g. artist parameter where required or other conditions that generate red error messages. See Talk.
  • {{done}} {{tl|BillboardChartNum}} - added tracking cat for invalid chart name
  • {{done}} {{cl|Certification Table Entry usages for unsupported region}}
  • {{tl|Infobox album}} with unsupported type
  • {{tl|singlechart}} and {{tl|albumchart}} categorize errors, e.g. El Perdón and:

class="wikitable sortable"
Chart (1989–90)

!Peak
position

{{singlechart|Poland|1|artist=Richard Marx|song=Right Here Waiting}}
{{albumchart|Spain|5|artist=R5|accessdate=July 17, 2015}}

{{reflist-talk}}

  • {{tl|Cite rowlett}} - Fix error cat to not create a URL-wikilink error: {{cite rowlett|norno5|accessdate=February 24, 2016}}

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

[http://reftag.appspot.com/doiweb.py Tool to generate Cite journal template from a DOI]

Subst a cite doi or cite jstor reference

{{cite jstor|1514012}}

can be substituted using:

{{safesubst:#tag:ref|{{subst:cite doi/10.2307.2F1514012}}}}

Italicize part of an article title

{{DISPLAYTITLE:List of The Kingdom Keepers characters}} 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.

December 2020 Guild of Copy Editors Newsletter

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)

[https://regex101.com/ Regex testing]

How to show a rendered citation, including categories

Use {{tl|Code}}.

Job queue takes 90+ days

Discussion of the job queue from July 2014.

See also {{phab|T69419}} and {{phab|T132467}}.

Redlinked templates (wanted templates)

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

Copyright violation detector

https://tools.wmflabs.org/copyvios/

Central banner notices

Central banner notices are at m:CentralNotice/Request.

Phabricator bug tracking

  • {{phab|T106685}}: insource searches do not work properly (Marked as Resolved because they display a timeout warning now. Not fixed.)
  • {{phab|T157152}}: Citoid adding extra "PMC" (Declined as not a bug, worked around in CS1)
  • {{phab|T10761}}: false positives in template transclusion reports due to faulty js file parsing
  • {{phab|T32758}}: exclude some namespaces from Special:WantedTemplates
  • {{phab|T132467}}: categorization takes days or months when templates or modules change
  • {{phab|T157670}}: categorization takes months or forever when MediaWiki code changes
  • {{phab|T160269}}: serif font for lead section "edit" link (Fixed)
  • {{phab|T133874}}: VisualEditor rearranges template parameters (Declined as not a bug)
  • {{phab|T161581}} {{phab|T162291}}: Visual Editor wraps ISBNs in nowiki tags
  • {{phab|T10681}}: Group watchlist changes across days
  • {{phab|T132308}}: Citoid is not yet even minimally intelligent about the citation dates it inserts.
  • {{phab|T174303}}: Citoid insert Special:BookSources link when ISBN is added
  • {{phab|T18036}}: Number of category members (PAGESINCATEGORY) is inaccurate for large categories
  • {{phab|T140606}}: 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)
  • {{phab|T215999}}: Linter does not detect invalid "500px500px" as a bogus file option (Fixed, but the fix caused {{phab|T276675}}, Linter false positive: image caption ending in "px" is incorrectly detected as a Linter error)
  • {{phab|T216003}}: Linter fails to detect multiple "upright" parameters as a Bogus file option
  • {{phab|T56140}}: Move TemplateData to its own JSON-content namespace
  • {{phab|T214984}}: 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)

[https://phabricator.wikimedia.org/maniphest/query/hebqSLPjha70/#R Tasks I am following.]

Replacing Tidy

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

Safe mode

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. [https://phabricator.wikimedia.org/T152169]

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

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

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

{{tlxs|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

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

{{ref info|articlename|style=float:right}}

{{ref info|Lion|style=float:right}}

{{clear}}

Editing restrictions on specific editors

Topic bans, warnings, editing restrictions: Wikipedia:Editing_restrictions

Why I never touch TemplateData

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

Vanity

HTML entity codes

https://www.w3schools.com/html/html_entities.asp

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 &veaction=edit to the edit page link.

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

mw: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.

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

  • [https://en.wikipedia.org/w/index.php?search=insource%3Ahttp+insource%3A%2F%5C%7B%5C%7Burl%5C%3D%2A%5BHh%5Dttps%3F%3A%2F&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1&searchToken=9m1tcc4w2d6d2ffy6igv3ipaw url=http without cite web]

{{div col|colwidth=20em}}

  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AA&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with A]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AB&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with B]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AC&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with C]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AD&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with D]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AE&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with E]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AF&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with F]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AG&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with G]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AH&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with H]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AI&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with I]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AJ&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with J]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AK&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with K]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AL&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with L]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AM&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with M]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AN&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with N]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AO&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with O]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AP&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with P]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AQ&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with Q]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AR&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with R]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AS&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with S]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AT&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with T]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AU&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with U]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AV&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with V]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AW&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with W]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AX&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with X]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AY&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with Y]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3AZ&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with Z]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3A1&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with 1]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3A2&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with 2]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3A3&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with 3]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3A4&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with 4]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3A5&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with 5]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3A6&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with 6]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3A7&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with 7]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3A8&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with 8]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3A9&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with 9]
  • [https://en.wikipedia.org/w/index.php?search=insource%3A%2F%5C%7B%5C%7B%5B%5E%5C%7D%3C%5C%7C%5D%2A%5BHh%5Dttps%3F%3A%2F+prefix%3A0&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 articles beginning with 0]

{{div col end}}

=Other common cite template biffs reports=

  • [https://en.wikipedia.org/w/index.php?search=%22cite+book%22+-hastemplate%3A%22Lacking+ISBN%22&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 cite book in plain text in article]
  • [https://en.wikipedia.org/w/index.php?title=Special:Search&limit=500&offset=0&ns0=1&search=%22cite+news%22&advancedSearch-current=%7B%7D&searchToken=ai88nyslm1wtlsw21b8alsaab cite news in plain text in article]
  • [https://en.wikipedia.org/w/index.php?search=%22cite+web%22+-requires&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1 cite web in plain text in article]
  • See also [https://checkwiki.toolforge.org/cgi-bin/checkwiki.cgi?project=enwiki&view=only&id=47 WCW error 47] and [https://checkwiki.toolforge.org/cgi-bin/checkwiki.cgi?project=enwiki&view=only&id=43 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 [https://checkwiki.toolforge.org/cgi-bin/checkwiki.cgi?project=enwiki&view=only&id=34 WCW error 34], three or four braces instead of two.

Character sorting order

Page count by namespace

Wikipedia:Database reports/Page count by namespace

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

How to use CS1 wrapper template

{{tl|Cite palaeontology}}

Foreign language template translation instead of redirect

See Template:Référence nécessaire.

Simpler: (:Template:Edad)

{{Age|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}}}

{{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.}}

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

[https://en.wikipedia.org/w/index.php?title=Template:Ref-web&redirect=no Template:Ref-web]

To see CS1 cite template auto-substitution, see {{tl|Book cite}}

See {{tl|Baustelle}} for more.

For typo templates that use subst instead of redirect, see {{cl|Category:Typo replacement templates}}.

How to add child/embed support to an infobox

[https://en.wikipedia.org/w/index.php?title=Template%3AInfobox_chess_biography&type=revision&diff=1008893591&oldid=1008892999 Like this]

Format footnotes template

{{tl|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

[https://en.wikipedia.org/w/index.php?title=Wikipedia_talk:Criteria_for_speedy_deletion&oldid=1021333448#Problem_with_the_G8_criterion_(and_possible_G4_process_error) 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

[https://en.wikipedia.org/w/index.php?title=Wikipedia_talk:Redirect&oldid=1024592090 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 {{tl|Flaglist}}, which happened after you broke {{tl|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 {{MAGICWORD:value}}. For example, {{TALKPAGENAME:Wikipedia:MOS}} returns Wikipedia talk:MOS on any page.

Why unnamed parameters are bad

I should write an essay.

  • [https://en.wikipedia.org/w/index.php?title=Help_talk:Cite_errors&curid=21437952&diff=1041381662&oldid=1040432504 one reason] (blank parameter ignored when the error is an extra pipe)

replace spaces or other text

{{tl|replace}} can strip spaces: {{replace|09 7 61 000| |}} → {{replace|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

Wikipedia:Templates_for_discussion/Log/2020_July_12#Template:AFB_game_box_end

Template to close a table using wikitext or {{tag|table|c}}. See also {{tl|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/

Infobox template pages containing small tags

[https://en.wikipedia.org/w/index.php?title=Special:Search&limit=500&offset=0&ns10=1&search=insource%3A%2F%5C%3Csmall%5C%3E%2F+hastemplate%3AInfobox+intitle%3AInfobox Infobox template pages containing small tags]

[https://en.wikipedia.org/w/index.php?title=Special:Search&limit=500&offset=0&ns10=1&search=insource%3A%2F%5C%7Bsmall%2F+hastemplate%3AInfobox+intitle%3AInfobox 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 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.

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 {{tl|Hover title}} converting to {{tl|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:#if: {{{link|}}}|{{subst:!}}link={{{link}}}}}{{subst:#if: {{{dotted|}}}|{{subst:!}}dotted={{{dotted}}}}}}}

{{documentation}}

Watchlist notices / 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]

{{t|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

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

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

:c:Help:Purge

Add ?action=purge to the File URL

Add a period (full stop) to an argument if it does not have one

{{tl|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

[https://en.wikipedia.org/w/index.php?title=Module:Sanctions/sandbox&curid=65351259&diff=1177201353&oldid=1177099701 like this]

[https://en.wikipedia.org/w/index.php?title=Module%3AWikiProject_banner%2Ftemplatepage&diff=1179805319&oldid=1179803176 or like this]

How to convert Cite Q to a real citation template

{{Cite Q |Q15625490 |expand=yes}}

Create a database report from a query

{{tl|Database report}}

How to remove markup from automatic short descriptions

{{tl|Plain text}}

{{tl|Delink}}

BRFA bot tasks to remember

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)
  • https://en.wikipedia.org/w/index.php?title=User_talk:Philippe/Archive&diff=prev&oldid=1241375776 (all text was smaller after a missing end tag)
  • https://en.wikipedia.org/w/index.php?title=Wikipedia%3ARequests_for_adminship%2FLaraLove&diff=1241398726&oldid=1090411855 (all text was smaller after a misnested tag)
  • https://en.wikipedia.org/w/index.php?title=User_talk%3AArthur_Rubin%2FArchive_2011&diff=1249244171&oldid=1190138763 (all text was smaller after a misnested tag)
  • https://en.wikipedia.org/w/index.php?title=Talk%3ACampaign_for_the_neologism_%22santorum%22%2FArchive_6&diff=1252243192&oldid=1134390464 (all text was smaller after a mismatched tag)
  • https://en.wikipedia.org/w/index.php?title=Wikipedia%3AVillage_pump_%28proposals%29%2FArchive_A&diff=1252916335&oldid=1180251248 (unclosed table put a border around the rest of the page)
  • https://en.wikipedia.org/w/index.php?title=Talk%3AEvolution%2FArchive_24&diff=1253020349&oldid=1136711721 (misnested tag turned the rest of the text on the page brown)
  • https://en.wikipedia.org/w/index.php?title=User_talk%3ACunard%2FArchive_11&diff=1253591605&oldid=1078289405 (most text on the page was rendering as blue instead of black)
  • https://en.wikipedia.org/w/index.php?title=User_talk%3AAlison%2FArchive_15&diff=1260682543&oldid=1190111674 (most of the text on the page was red after some tag errors)
  • https://en.wikipedia.org/w/index.php?title=User_talk%3ASam_Sailor%2FArchive_7&diff=1268200114&oldid=1085994601 (most of the text on the page was blue after some tag errors)
  • https://en.wikipedia.org/w/index.php?title=User_talk%3APaxse%2FArchive_6&diff=1268787203&oldid=1089983564 (a large chunk of the page had {{tag|big}} formatting applied in error)
  • https://en.wikipedia.org/w/index.php?title=User_talk%3AJournalist%2FArchive_2&diff=1269287962&oldid=1079048580 (most of the text on the page was blue after some tag errors)
  • https://en.wikipedia.org/w/index.php?title=User_talk%3AOmer123hussain%2FArchive_1&diff=1269535227&oldid=1143207515 (Linter errors making the rest of the page bold)
  • https://en.wikipedia.org/w/index.php?title=Wikipedia%3AArticles_for_deletion%2FAHRA%3A_The_Association_for_Medical_Imaging_Management&diff=1269877446&oldid=1265595600 (rest of page struck out due to unclosed strike tag)
  • Wikipedia talk:Naming conventions (settlements)/Archive 10
  • https://en.wikipedia.org/w/index.php?title=Wikipedia%3AFeatured_picture_candidates%2FM4_Carbine_Casing&diff=1270742068&oldid=1086102345 (most text was red due to unclosed font tags)
  • https://en.wikipedia.org/w/index.php?title=User_talk%3AGeorgeMoney%2FArchive10&diff=1271375437&oldid=1084114630 (all text was smaller after a missing tag)
  • https://en.wikipedia.org/w/index.php?title=User_talk%3APegship%2FArchiveDec2006&diff=1272468728&oldid=1036765013 (rest of page struck out due to unclosed s tag, and smaller due to unclosed font tag – two separate problems affecting text between the invalid markup and the end of the page)
  • https://en.wikipedia.org/w/index.php?title=User_talk%3AKedadi%2FArchive_1&diff=1273919516&oldid=1142471278 (rest of page underlined after missing end tag)
  • https://en.wikipedia.org/w/index.php?title=User_talk%3AAcalamari%2FArchive_L&diff=1274048342&oldid=1147980930 (rest of page in a different font after tag error)
  • https://en.wikipedia.org/w/index.php?title=User_talk%3APiazzajordan2&diff=1275354081&oldid=1212951931 (rest of page's text was yellow)
  • https://en.wikipedia.org/w/index.php?title=Wikipedia_talk%3AProposed_deletion_of_biographies_of_living_people%2FArchive_2&diff=1275536465&oldid=1137433252 (rest of page small after unclosed tag)
  • https://en.wikipedia.org/w/index.php?title=User_talk%3AMighty_Antar&diff=1275782106&oldid=1258269325 (rest of page small after unclosed tag)
  • https://en.wikipedia.org/w/index.php?title=User%3AJonesey95%2Fsandbox&diff=1275973015&oldid=1275973000 (unclosed p tag caused unexpected removal of paragraph breaks in rendered wikitext; this is an example page)
  • https://en.wikipedia.org/w/index.php?title=Talk%3ATropical_cyclone%2FArchive_4&diff=1278930973&oldid=1080949982 (all text small after an unclosed tag)
  • https://en.wikipedia.org/w/index.php?title=Talk%3AROKS_Cheonan_sinking%2FArchive_1&diff=1287206392&oldid=1231077770 (all text blue after an unclosed tag)
  • https://en.wikipedia.org/w/index.php?title=User_talk%3ACunard%2FArchive_3&diff=1287975457&oldid=1147986904 (all text was larger after an unclosed tag)
  • https://en.wikipedia.org/w/index.php?title=User_talk%3AAlba&diff=1290137584&oldid=1160362250 (plain text was pink after a missing end tag)

Fix fostered content at start of table with noinclude tags

See {{tl|AchievementTable}}. A Linter bug workaround.

Remember the dot's syntax highlighter instructions

Filtering out pages with EXPECTUNUSEDTEMPLATE magic word

Add __EXPECTUNUSEDTEMPLATE__ to exclude template pages from Special:UnusedTemplates (see Tech News: 2024-36). Use inside an includeonly tag in the template.

How to fix pxpx in templates

{{Str number/trim|(existing parameter)}}

[https://en.wikipedia.org/w/index.php?title=Template%3ALeague_icon&diff=1133885860&oldid=1125274352 Example diff] of a template.

Sockpuppets

How to force the Internet Archive to save a page

https://web.archive.org/save

Previous TFDs for Use XX English templates

The 2019 mass TFD did not address the redundancy or justification for their existence. Wikipedia:Templates_for_discussion/Log/2019_April_6#No-display_English_variant_types

Here's the 2021 TFD for Use Commonwealth English. It did not address the similarity with EngvarB directly. Multiple people noted that there is no such thing as "Commonwealth English".

How to prevent top Search box from matching the wrong case

if you append a tilde to any search in the top-right box, it will force a search result page, regardless if a page exists matching your search string or not. This is actually documented somewhere, and not some kind of klugey thing that might go away next version. Try Template:Ambox~ or similar.

Linter category numbers

Linter cat numbers are defined at https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/Linter/+/refs/heads/master/extension.json

Color contrast checking tool

https://webaim.org/resources/contrastchecker/

Text for reviewed copy edit category

{{y}} All articles have been checked for appropriate application of {{tl|copy edit}} and related tags. – Jonesey95 (talk) 05:31, 1 October 2023 (UTC)