Template:Bare URL inline/doc: Difference between revisions
m (Reverted 1 edit by 2604:3D08:EA77:47B0:4077:3B2F:10B8:7E6D (talk) to last revision by Xurizuri) |
m (1 revision imported) |
Latest revision as of 18:56, 18 May 2023
This is a documentation subpage for Template:Bare URL inline. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 14,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template is an inline alternative to {{Cleanup bare URLs}}.
Usage
Paste this after a bare-URL reference/link:
{{Bare URL inline|date=November 2024}}
It is best to place the tag inside a citation, just before the closing </ref>
tag:
<ref>https://www.salon.com/2020/01/31/the-disaster-of-utopian-engineering_partner/ {{bare URL inline|date=November 2024}}</ref>
- Result: [1]
References
This will still categorize the page for cleanup without cluttering the present paragraph with "[bare URL]", and it will also help track down the citation to improve by keeping the cleanup tag in the citation. It also allows the tag to be removed by tools such as WP:reFill and Citation bot if they fill the reference with a citation template.
When doing it this way, the date must be manually entered; it cannot be done with the {{Bare URL inline|{{subst:DATE}}}}
shortcut method, because template substitution does not work inside <ref>...</ref>
tags.
Tracking categories
- This template places the article into both of the following categories:
- Category:All articles with bare URLs for citations — 0 pages
- Category:Articles with bare URLs for citations or a dated subcategory thereof, currently
Why?
See WP:Bare URLs
How to respond to this tag
See WP:HOWCITE
TemplateData
TemplateData for Bare URL inline
<templatedata> { "params": { "reason": { "label": "Reason", "description": "A brief reason for the tag. Avoid using wikilinks, as they will be converted to plain text in the output." }, "date": { "label": "Month and year", "description": "Month and year of tagging; e.g., 'January 2013', but not 'jan13'", "type": "string", "autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}", "suggested": true } }, "description": "An inline template which indicates that a reference contains a bare URL, which may be threatened by link rot. It is best to place the tag inside a citation, just before the closing </ref> tag.", "format": "inline" } </templatedata>