Template:Aljazeera topic/doc

{{Documentation subpage}}

{{info|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 Al Jazeera English website.

Usage

: {{{{BASEPAGENAME}} | ID }}

: {{{{BASEPAGENAME}} | 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/{{hilite|people/hosni-mubarak}}.html

Usage:

: {{((}}{{BASEPAGENAME}} {{!}} people/hosni-mubarak {{))}}

Output:

: {{{{BASEPAGENAME}} | people/hosni-mubarak }}

= Two parameters =

URL:

: https://www.aljazeera.com/topics/{{hilite|people/hosni-mubarak}}.html

Usage:

: {{((}}{{BASEPAGENAME}} {{!}} people/hosni-mubarak {{!}} Hosni Mubarak {{))}}

Output:

: {{{{BASEPAGENAME}} | people/hosni-mubarak | Hosni Mubarak }}

Template data

{{TemplateDataHeader}}

{

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

"params": {

"1": {

"label": "ID",

"description": "ID string used in the URL.",

"type": "string",

"required": true

},

"2": {

"label": "Name",

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

"type": "string",

"required": false

}

}

}

See also

{{Sandbox other||

Category:External link templates

}}