Predloga:Guardian topic
{{{name}}} zbrane novice in komentarji v The Guardian
Uporablja Lua: |
Predloga:Guardian topic 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.
Usage
[uredi kodo]- Unnamed parameters
{{Guardian topic | ID }}
{{Guardian topic | ID | NAME }}
- Named parameters
{{Guardian topic | id= ID }}
{{Guardian topic | id= ID | name= NAME }}
- Using Wikidata property Guardian (tema) (P3106)
{{Guardian topic}}
{{Guardian topic | name= NAME }}
Instructions
[uredi kodo]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.
Examples
[uredi kodo]One parameter
[uredi kodo]- Usage
* {{Guardian topic | music/aretha-franklin }}
* {{Guardian topic | id= music/aretha-franklin }}
- Output
-
- Guardian topic zbrane novice in komentarji v The Guardian
Two parameters
[uredi kodo]- Usage
* {{Guardian topic | us-news/bill-gates | Bill Gates }}
* {{Guardian topic | id= us-news/bill-gates | name= Bill Gates }}
- Output
-
- Bill Gates zbrane novice in komentarji v The Guardian
No ID in template or Wikidata
[uredi kodo]- Usage
* {{Guardian topic}}
- Output
-
TemplateData
[uredi kodo]TemplateData za Guardian topic
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.
Parameter | Opis | Vrsta | Stanje | |
---|---|---|---|---|
ID | 1 id | 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.
| Niz | neobvezno |
Name | 2 name | 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.
| Niz | neobvezno |
See also
[uredi kodo]- {{New York Times topic}} – topic page at The New York Times
- {{Bloomberg topic}} – topic page at Bloomberg News
- {{Aljazeera topic}} – topic page at Al Jazeera English