Difference between revisions of "Template:Aljazeera topic"

From blackwiki
Jump to navigation Jump to search
blackwiki>777sms
blackwiki>Zyxw
(Remove any leading from first unnamed parameter that would break link. Remove disambiguation if {{PAGENAME}} is used as link text.)
Line 1: Line 1:
[http://english.aljazeera.net/category/{{{1}}} {{{2|{{PAGENAME}}}}}] collected news and commentary at ''[[Al Jazeera English]]''<noinclude>
+
[http://english.aljazeera.net/category/{{Trim|{{{1}}}}} {{{2|{{Title without disambig|{{PAGENAME}}}}}}}] collected news and commentary at ''[[Al Jazeera English]]''<noinclude>
{{documentation}}
+
{{Documentation}}
<!-- Add cats and interwikis to the /doc subpage, not here! -->
+
<!-- Add categories to the /doc subpage, add interwikis to Wikidata -->
 
</noinclude>
 
</noinclude>

Revision as of 15:46, 7 October 2014

Template:Title without disambig 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:Title without disambig 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