Template:NOMIS2011/doc

The Nomis website is run by the University of Durham on behalf of the Office for National Statistics (ONS), providing a database of UK labour market statistics. This template is used to provide a link to the Nomis database local area reports, based on the key statistics from the 2011 United Kingdom census. It can be used to replace citations linked to content at the ONS Local statistics site which is no longer available.

Required parameter
To obtain the value for this parameter: Nomis Local Area Report search page
 * id: the record identifier on the Nomis website. This a Government Statistical Service (GSS) code.
 * 1) Search for and open the required report on the Nomis site, for example "Silverdale", at the
 * 1) The code is included in the body of the report and also in the URL. In this example the URL for Silverdale parish is:
 * 2) Copy the code (in this case  ) and add it to the template.

Optional parameters
Additional information for the title:
 * title: additional text description such as the name of the place, it is recommended to copy the title of the Nomis report. eg "Silverdale Parish".
 * author: defaults to UK Census, but can be changed to another name if desired.
 * author-link: defaults to 2011 United Kingdom census, but is not set by default if author is set to something other than UK Census.
 * date: the date provided by Office for National Statistics; can be a full or partial date.
 * orig-year: the date information was first provided by Office for National Statistics; only appears if date is also used.
 * accessdate: the date a Wikipedia editor retrieved information from the Nomis database.
 * mode: defaults to cs1; set to cs2 to provide consistency with citation style 2, as produced by.
 * postscript: controls the closing punctuation for the citation; defaults to a period ; for no terminating punctuation, set to none, however using cs2 does this automatically.
 * fewer-links: use yes to remove repeated wikilinks where the template is used more than once in an article.
 * ref: defaults to author (Census 2011) and the id, but can be reset to any value.
 * short: use yes with id to produce an external link with just the list number shown; yes suppresses the display of other parameters.

Examples
displays as:

displays as:

displays as:

displays as:

displays as:

If a short citation is required (not to be confused with short) and one of the harv templates or sfn is used then  will link the short reference to the long one. For example,  produces  that links to the 'Silverdate Parish' example above. This is different from the standard use of the that links using the parameters 'author' and 'date' or 'year'.

Some articles have multiple entries. yes can be used to remove the repeated internal wikilinks from any additional and subsequent instances of the template: displays as:

Template data
{	"description": "Provides an external link to an entry on the Office for National Statistics (ONS) — Nomis database for the 2011 United Kingdom census", "params": { "id": { "label": "id", "description": "the 'record id' from the database", "required": true, "type": "string" },		"title": { "label": "title", "description": "Additional text description, such as the name of the location", "required": false, "suggested": true, "type": "string" },		"author": { "label": "author", "description": "defaults to 'Census 2011', but can be changed to another name if desired", "required": false, "default": "Census 2011", "type": "string" },		"author-link": { "label": "author-link", "description": "defaults to '2011 United Kingdom census', but is not set by default if author is set to something other than 2011 United Kingdom census", "required": false, "default": "2011 United Kingdom census", "type": "string" },		"date": { "label": "date", "description": "the date provided by ; can be a full or partial date", "required": false, "type": "string" },		"orig-year": { "label": "orig-dateyear", "description": "the date information was first provided by the Office for National Statistics; only appears if date parameter is also used", "required": false, "type": "string" },		"accessdate": { "label": "accessdate", "description": "the date a Wikipedia editor retrieved and/or verified information from the Office for National Statistics database", "required": false, "suggested": true, "aliases": ["access-date"], "autovalue": " ", "type": "string" },		"mode": { "label": "mode", "description": "defaults to 'cs1'; set to 'cs2' to provide consistency with Citation style 2, as produced by ", "required": false, "default": "cs1", "type": "string" },		"postscript": { "label": "postscript", "description": "controls the closing punctuation for the citation; defaults to a period (.); for no terminating punctuation set to none, however using mode=cs2 does this automatically", "required": false, "default": ".", "type": "string" },		"fewer-links": { "label": "fewer-links", "description": "set to 'yes' to remove repeated wikilinks to 'Office for National Statistics' and '2011 United Kingdom census', where the template is used more than once in an article", "required": false, "default": "yes", "type": "string" },		"ref": { "label": "ref", "description": "defaults to author and the Nomis record id number, but can be set to any value", "required": false, "type": "number" },		"short": { "label": "short", "description": "use 'yes' with just the id parameter to produce an external link with just the record id number shown; suppresses the display of other parameters", "required": false, "default": "yes", "type": "string" }	} }

Tracking categories

 * This tracks pages which have an empty id field.
 * This tracks pages which have an empty id field.