Difference between revisions of "Template:Aljazeera topic/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Zyxw
(update documentation, add TemplateData)
m (11 revisions imported)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
{{info|1=This template is intended for [[Wikipedia:External links|external links]].  It is not designed for use as a [[Wikipedia:Citation templates|citation template]] for reliable sources.}}
 +
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
  
Line 15: Line 17:
 
=== One parameter ===
 
=== One parameter ===
 
URL:
 
URL:
: <code><nowiki>http://</nowiki>english.aljazeera.net/category/{{hilite|person/hosni-mubarak}}</code>
+
: <code><nowiki>https://</nowiki>www.aljazeera.com/topics/{{hilite|people/hosni-mubarak}}.html</code>
 
Usage:
 
Usage:
: <code>{{((}}{{BASEPAGENAME}} {{!}} person/hosni-mubarak {{))}}</code>
+
: <code>{{((}}{{BASEPAGENAME}} {{!}} people/hosni-mubarak {{))}}</code>
 
Output:
 
Output:
: {{{{BASEPAGENAME}} | person/hosni-mubarak }}
+
: {{{{BASEPAGENAME}} | people/hosni-mubarak }}
  
 
=== Two parameters ===
 
=== Two parameters ===
 
URL:
 
URL:
: <code><nowiki>http://</nowiki>english.aljazeera.net/category/{{hilite|person/hosni-mubarak}}</code>
+
: <code><nowiki>https://</nowiki>www.aljazeera.com/topics/{{hilite|people/hosni-mubarak}}.html</code>
 
Usage:
 
Usage:
: <code>{{((}}{{BASEPAGENAME}} {{!}} person/hosni-mubarak {{!}} Hosni Mubarak {{))}}</code>
+
: <code>{{((}}{{BASEPAGENAME}} {{!}} people/hosni-mubarak {{!}} Hosni Mubarak {{))}}</code>
 
Output:
 
Output:
: {{{{BASEPAGENAME}} | person/hosni-mubarak | Hosni Mubarak }}
+
: {{{{BASEPAGENAME}} | people/hosni-mubarak | Hosni Mubarak }}
  
 
== Template data ==
 
== Template data ==
Line 58: Line 60:
 
* {{tl|WhoRunsGov}} &ndash; topic page at ''[[The Washington Post]]''
 
* {{tl|WhoRunsGov}} &ndash; topic page at ''[[The Washington Post]]''
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
<includeonly>{{Sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:External link templates]]
 
[[Category:External link templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 11:08, 20 October 2020


This template generates an external link to a topic page at the Al Jazeera English website.

Usage

{{Aljazeera topic | ID }}
{{Aljazeera topic | ID | NAME }}

Instructions

Provide the URL path (after the first level) as the first parameter, and an optional name as the second parameter. If no name is provided for the second parameter, the template will use the name of the Wikipedia article.

Examples

One parameter

URL:

https://www.aljazeera.com/topics/people/hosni-mubarak.html

Usage:

{{Aljazeera topic | people/hosni-mubarak }}

Output:

Template:PAGENAMEBASE collected news and commentary at Al Jazeera English

Two parameters

URL:

https://www.aljazeera.com/topics/people/hosni-mubarak.html

Usage:

{{Aljazeera topic | people/hosni-mubarak | Hosni Mubarak }}

Output:

Hosni Mubarak collected news and commentary at Al Jazeera English

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Aljazeera topic

This template generates an external link to a topic page at the Al Jazeera English website.

Template parameters

ParameterDescriptionTypeStatus
ID1

ID string used in the URL.

Stringrequired
Name2

Name displayed in the link text. If not specified it defaults to the article's {{PAGENAME}}, without disambiguation.

Stringoptional

See also