Template:Guardian topic/doc
This is a documentation subpage for Template:Guardian topic. It may contain usage information, categories and other content that is not part of the original template page. |
This template is a Citation Style 1 wrapper template based on {{Cite web}}. For centralised Citation Style 1 discussions, see Help talk:Citation Style 1. |
This template is intended for external links. It is not designed for use as a citation template for reliable sources. |
This template generates an external link to a topic page at The Guardian website.
Usage
change{{Guardian topic | ID }}
{{Guardian topic | ID | NAME }}
Instructions
changeProvide 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.
Examples
changeOne parameter
changeURL: http://www.theguardian.com/music/aretha-franklin
Usage: {{Guardian topic | music/aretha-franklin }}
Output: "Guardian topic/doc collected news and commentary". The Guardian.
Two parameters
changeURL: http://www.theguardian.com/technology/billgates
Usage: {{Guardian topic | technology/billgates | Bill Gates }}
Output: "Bill Gates collected news and commentary". The Guardian.
Template data
changeTemplateData for Guardian topic
This template generates an external link to a topic page at The Guardian website.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | 1 | ID string used in the URL. | String | optional |
Name | 2 | Name displayed in the link text. If not specified it defaults to the article's {{PAGENAME}}, without disambiguation. | String | optional |
Tracking categories
change- Category:Guardian topic ID not in Wikidata (0)
- Category:Guardian topic ID different from Wikidata (0)
- Category:Guardian topic ID same as Wikidata (1)
- Category:Guardian topic template with no id set (exists in template, not created)
See also
change- {{NYT topic}} – topic page at The New York Times
- {{Bloomberg topic}} – topic page at Bloomberg News
- {{Aljazeera topic}} – topic page at Al Jazeera English
- {{WhoRunsGov}} – topic page at The Washington Post