Template:Wikidata alignment/doc

Usage
This template is designed for use in Infobox templates. It will compare the values of locally defined parameters with data available on Wikidata, and report back on whether they are the same or different. If the result is different it will display the Wikidata value alongside the local parameter value, for comparison.

It will also categorise articles accordingly, if desired, in the same manner as Template:WikidataCheck.

It is designed for editors rather than readers; therefore its output is hidden by default. To show the output you should add the following to your personal CSS file: .infobox .showwd {display:inline !important;}

The following table shows the output in various circumstances:

Syntax
The parameters are:
 * - if a Wikidata other than that associated with the current article is used, then this should be passed, e.g. Q76833710
 * - the associated property ID on Wikidata, e.g. P3920
 * - pass the value of the local parameter to the template, e.g. local
 * - naming scheme of the categories, if required, e.g. Admiralty number
 * - Scribunto ustring pattern involving the local parameter to define an equivalent value on Wikidata. See Module:String for more detail.
 * for example 11%d%- was used to say that something of the form "11n-" (where n is a digit) in front of the local value shoul be treated as equivalent.

Example
This screenshot shows four fields in an infobox.
 * The NGA number is defined locally but missing from Wikidata. A link to import this value via QuickStatements is provided.
 * The admiralty number is not defined locally, so the Wikidata value is used by default.
 * The ARLHS number stored on Wikidata is slightly different to the local value. The Wikidata value is displayed in red alongside.
 * The USCG number defined locally matches the local parameter.