Template:OPL-attribution/doc

Requirements
The requirements of the copyright holder (the Parliament of the United Kingdom) to copy text into a Wikipedia article from one of their documenters can be found in "Open Parliament Licence".

This template will supply an attribution prescript to place in front of a standard formatted Wikipedia citation and three parameters to alter the visual look of that prescript. The requirement of the copyright holder to provide date and linking should be added with the use of a standard citation template of similar method as described below.

Usage
This template should be placed in the References section of an article if the article incorporates text under the British Government Open Government Licence, unless the inline parameter is specified in which case the template should be placed in an inline citation next to the copied text.

This template takes four optional parameters which can be combined together or used separately:

unnamed parameter

 * The name of the source, along with any other details which are needed to identify the work:

A text string can be passed as the parameter:

or a citation template, like cite web can be used:

These would display as:

version parameter


Appends a the given version number with a leading "v" to prescript:

inline parameter


Changes the wording from "This article" to "One or more of the preceding sentences":

Hidden category
This template includes a hidden category—Category:Open Parliament Licence attribution —which does not appear at the bottom of an article page but does contain any article page that contains this template.