Template:SemiBareRefNeedsTitle

From HandWiki
Revision as of 11:59, 26 May 2022 by imported>MusikBot II (Changed protection settings for "Template:SemiBareRefNeedsTitle": High-risk template or module: 2615 transclusions (more info) ([Edit=Require extended confirmed access] (indefinite) [Move=Require extended confirmed access] (indefinite)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation[view] [edit] [history] [purge]

This is a (probably-temporary) template used by @BrownHairedGirl to track a set of references which are being improved.

It creates no output and in most cases it populates no-tracking categories. Its only purpose is to create backlinks: see Special:WhatLinksHere/Template:SemiBareRefNeedsTitle

This template is used as part of a cleanup of "semi-bare" refs, i.e. which are almost WP:Bare URLs. Specifically, those where <ref> ... </ref> tags contain only a bare URL followed by an accessdate.

Examples:

  1. <ref>http://example.com/fubar Accessed 20 July 2017.</ref>
  2. <ref>http://example.net/greensky Accessed on 9 March 1825</ref>
  3. <ref>http://example.edu/stuff Accessed: 3 October 2020</ref>
  4. <ref>http://haddock.example/fried Retrieved: 8 December 2001</ref>
  5. <ref>http://trout.example/baked Retrieved on 5 January 1906</ref>
  6. <ref>http://beef.example/roast accessdate: 23 June 2014</ref>
  7. <ref>http://lamb.example/grilled accessdate=31 November 2007</ref>

The ref may be formatted as if it was a fragment from a citation template

  1. <ref>http://bankster.example/bbqed|accessdate=31 November 2007</ref>

The URL may be wrapped in square brackets:

  1. <ref>[http://pork.example/tartare] accessed: 16 August 2004</ref>
  2. <ref>[http://venison.example/stewed] Retrieved on 4 February 1798</ref>

These references cannot be filled by tool such as WP:Reflinks, WP:ReFill, or @Citation bot. (Testcases at Template:SemiBareRefNeedsTitle/examples.)

Using AWB, these refs are being converted into partially-filled {{cite web}} templates, followed by {{SemiBareRefNeedsTitle}}, e.g.

  • old ref: <ref>http://example.edu/stuff Accessed: 3 October 2020</ref>
  • new ref: <ref>{{cite web |url=http://example.edu/stuff |title= |website=example.edu |access-date=3 October 2020}}{{SemiBareRefNeedsTitle|date=May 2022}}</ref>

These partially-filled partially-filled {{cite web}} templates will be fed to @Citation bot, hopefully to be filled by the bot. Those which are not filled by @Citation bot will be filled manually.

In the meantime, they will look horrible. In the example above: 8 <ref>http://example.edu/stuff Accessed: 3 October 2020</ref>"Error: no |title= specified when using {{Cite web}}". http://example.edu/stuff. 

When the |title= parameter is filled, this template should be removed.

Tracking category