Difference between revisions of "Template:Bare URL inline/doc"

From blackwiki
Jump to navigation Jump to search
imported>SMcCandlish
(update, about using it INSIDE the <ref>; better example formatting; don't imply that WP can be cited as a source (WP:CIRCULAR).)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 37: Line 37:
  
 
{{Inline cleanup tags}}
 
{{Inline cleanup tags}}
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Inline cleanup templates]]
 
[[Category:Inline cleanup templates]]
  
</includeonly>
+
}}</includeonly>

Latest revision as of 23:38, 23 April 2020

This template is an inline alternative to {{Cleanup bare URLs}}.

Usage

Paste this after a bare-URL reference/link:

{{Bare URL inline|date=March 2026}}

Examples:

With a <ref> tag:

  • <ref>https://www.salon.com/2020/01/31/the-disaster-of-utopian-engineering_partner/</ref>{{bare URL inline|date=March 2026}}

Template:Talkref

It can also be done 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=March 2026}}</ref>

Template:Talkref 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. 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.

See also