Template:Guardian topic/doc

It is intended for use in the external links section of an article.

Usage

 * Unnamed parameters


 * Named parameters


 * Using Wikidata property

Instructions
Provide the URL path (after the first level) as the first parameter, and an optional name as the second parameter. If no ID is provided, the template will attempt to fetch the value from Wikidata. If no name is provided for the second parameter, the template will use the name of the Wikipedia article.

One parameter

 * URL


 * Usage


 * Output

Two parameters

 * URL


 * Usage


 * Output

No ID in template or Wikidata

 * Usage


 * Output

TemplateData
{	"description": "This template generates an external link to a topic page at The Guardian website. It is intended for use in the external links section of an article.", "params": { "1": {			"label": "ID", "aliases" : [ "id" ], "description": "The \"id\" parameter (or unnamed parameter \"1\") may be used to specify the ID portion of the URL. Example: music/aretha-franklin is the ID in https://www.theguardian.com/music/aretha-franklin. This parameter is optional if Wikidata property P3106 exists, but required if not.", "type": "string", "required": false, "default": "Wikidata property P3106" },		"2": {			"label": "Name", "aliases" : [ "name" ], "description": "The \"name\" parameter (or unnamed parameter \"2\") may be used to specify the topic name, which is displayed in the link text. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation.", "type": "string", "required": false, "default": "" }	},	"paramOrder": [ "1",		"2"	] }

Tracking categories

 * ID parameter exists
 * ID parameter does not exist
 * ID parameter does not exist
 * ID parameter does not exist
 * ID parameter does not exist