Difference between revisions of "Template:Aljazeera topic"

From blackwiki
Jump to navigation Jump to search
blackwiki>DocWatson42
m (De-italicized "Al Jazeera English" per the article's own title.)
blackwiki>Getsnoopy
(Updated the template URL to conform to new Al Jazeera's new URL structure and prevent 404 errors.)
Line 1: Line 1:
[http://www.aljazeera.com/topics/categories/{{Trim|{{{1}}}}} {{{2|{{PAGENAMEBASE}}}}}] collected news and commentary at [[Al Jazeera English]]<noinclude>
+
[https://www.aljazeera.com/topics/{{Trim|{{{1}}}}}.html {{{2|{{PAGENAMEBASE}}}}}] collected news and commentary at [[Al Jazeera English]]<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
<!-- Add categories to the /doc subpage, add interwikis to Wikidata -->
 
<!-- Add categories to the /doc subpage, add interwikis to Wikidata -->
 
</noinclude>
 
</noinclude>

Revision as of 22:44, 17 April 2020

Template:PAGENAMEBASE collected news and commentary at Al Jazeera English

Template documentation[view] [edit] [history] [purge]


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