shortcuts: {{Bare links}} {{Bare refs}} {{Link rot}} {{Lr}}

Template:Cleanup bare URLs/doc: Difference between revisions

Safer nicotine wiki Tobacco Harm Reduction
Jump to navigation Jump to search
(Updated TemplateData)
 
imported>Fgnievinski
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
{{Redirect|Template:Bare URL|the template that tags specific citations|Template:Bare URL inline}}
{{For|the template that tags specific citations|Template:Bare URL inline}}
{{High use|18767}}
{{AWB standard installation}}
{{AWB standard installation}}
{{Twinkle standard installation}}
{{Twinkle standard installation}}
Line 30: Line 31:
A manual of the tool is available on [[Wikipedia:ReFill]].
A manual of the tool is available on [[Wikipedia:ReFill]].


This template will add tagged articles to [[:Category:Articles with bare URLs for citations]] and [[:Category:Wikipedia cleanup]], or a dated subcategory thereof. If no date was added, a [[Wikipedia:Bots|bot]] will add it later. It will also be added to [[:Category:Articles covered by WikiProject Wikify]].
== Tracking categories ==
This template places the article into the following categories:
*[[:Category:All articles with bare URLs for citations]] — {{PAGESINCATEGORY:All articles with bare URLs for citations}} pages
*[[:Category:Articles with bare URLs for citations]] or a dated subcategory thereof, currently
**[[:Category:Articles with bare URLs for citations from {{CURRENTMONTHNAME}} {{CURRENTYEAR}}]] — {{PAGESINCATEGORY:Articles with bare URLs for citations from {{CURRENTMONTHNAME}} {{CURRENTYEAR}}}} pages
* [[:Category:Articles covered by WikiProject Wikify]] or a dated subcategory thereof, currently
**[[:Category:Articles covered by WikiProject Wikify from {{CURRENTMONTHNAME}} {{CURRENTYEAR}}]] — {{PAGESINCATEGORY:Articles covered by WikiProject Wikify from {{CURRENTMONTHNAME}} {{CURRENTYEAR}}}} pages
* [[:Category:Articles needing cleanup]] or a dated subcategory thereof, currently
**[[:Category:Articles needing cleanup from {{CURRENTMONTHNAME}} {{CURRENTYEAR}}]] — {{PAGESINCATEGORY:Articles needing cleanup from {{CURRENTMONTHNAME}} {{CURRENTYEAR}}}} pages
 
If no date was added, a [[Wikipedia:Bots|bot]] will add it later.
 
<small>{{Purge|''Purge this page to update pages-in-category counts''}}</small>


== TemplateData ==
== TemplateData ==
Line 93: Line 106:
* [https://en.wikipedia.org/w/index.php?title=Special:WhatLinksHere/Template:Cleanup_bare_URLs&hideredirs=1&hidelinks=1 List of Wikipedia articles with bare URLs]
* [https://en.wikipedia.org/w/index.php?title=Special:WhatLinksHere/Template:Cleanup_bare_URLs&hideredirs=1&hidelinks=1 List of Wikipedia articles with bare URLs]
* {{tl|Bare URL inline}}
* {{tl|Bare URL inline}}
* {{tl|Citations broken}}
* {{tl|Dead link}}
* {{tl|Dead link}}
* {{tl|Citations broken}}
* {{tl|External links}}
* [[Wikipedia:Link rot]]
* [[Wikipedia:Link rot]]
* [[Wikipedia:Template messages/Cleanup]]
* [[Wikipedia:Template messages/Cleanup]]

Latest revision as of 03:42, 13 November 2022


This template will add tagged articles to a cleanup category according to the month and year given.

What is a bare URL?

A bare URL is a link to a website with no identifying information except the link itself. It is not just a citation style that leaves the URL visible to the reader. Fully visible URLs are required by some citation styles, such as the MLA style. However, these visible URLs should be accompanied by useful descriptions of the page being linked, such as information about the author, title, and/or publication.

Bare URLs—add this tag
Good citations—do not add this tag

How to use

Before adding this template, consider trying toollabs:refill, paste into the text box the name of the page with bare references, then click the "Fix page" button. Wait patiently for the program to finish filling in all citation templates for each bare reference. When the result page is loaded, please double-check the changes made in the diff preview on the result page and fix the errors before clicking the "Show preview" button at the bottom. References that could not be filled in with the tool will be listed on the page. On the actual editing interface on-wiki, you may wish to check the changes once again and use Ohconfucius's scripts to automatically correct some mistakes. When everything looks fine, click the "Publish changes" button to save your changes.

If there are references you failed to fix or you need assistance in fixing them, paste this at the top of an article with bare-URL references:

{{Cleanup bare URLs|date=May 2024}}

Save the page. Someone else may click on the reFill tool link on the template to fix the bare references semi-automatically, or manually correct them.

A manual of the tool is available on Wikipedia:ReFill.

Tracking categories

This template places the article into the following categories:

If no date was added, a bot will add it later.

Purge this page to update pages-in-category counts

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Cleanup bare URLs

Use this cleanup template to indicate that an article uses references containing bare URLs, which may be threatened by link rot.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Month and yeardate

The month and year that the template was placed (in full). "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}" inserts the current month and year automatically.

Example
January 2013
Auto value
{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}
Linesuggested
Affected area1

Text to replace the word "article", usually "section"

Example
section
Auto value
section
Lineoptional

On-demand search and tag

Tagbot adds the template on-demand. It searches for pages with bare links and tags them. See the control page Template:Cleanup bare URLs/bot for instructions how to trigger the bot to run.

In addition to |date= the bot adds two arguments:

  • |bot=wp:tagbot
  • |requester=<username> ie. who requested the bot to run

Redirects

And more

See also