Template:UK Legislation link
See this legislation with any revisons at legislation.gov.uk
Usage
[edit]This template creates a statement along with a link to a given piece of legislation on Legislation.gov.uk. It is intended for use within the notes= section of Template:Header to provide a link so that users may view the given legislation with any current revisions or legal commentary not in the original law.
The template takes only NO parameters, but rather automatically pulls the active URL from the property P3343 (legislation.gov.uk ID) which is part of the legislation's Wikidata page. For this template to work, the work needs to be linked on Wikidata, and the Wikidata page needs property P3343 filled out.
Example:
{{UK Legislation link}}
See Scotland Act 1998 for a working example, as this template only functions on Wikidata-linked main work pages.