Jump to content

Template:Annotated link/testcases

From Wikipedia, the free encyclopedia

Handling of misuse

[edit]
No page name provided
{{Annotated link| }}

{{Annotated link}}

<span style="color:#d33">[[Module:Annotated link]] requires a page name (including namespace).</span>[[Category:Pages displaying alarming messages about Module:Annotated link]]

{{Annotated link/sandbox}}

<span style="color:#d33">[[Module:Annotated link]] requires a page name (including namespace).</span>[[Category:Pages displaying alarming messages about Module:Annotated link]]

Nonexistent page name provided
{{Annotated link| Intentionally permanent red link }}

{{Annotated link}}

[[:Intentionally permanent red link|Intentionally permanent red link]]

{{Annotated link/sandbox}}

[[:Intentionally permanent red link|Intentionally permanent red link]]

Nonexistent page name provided with |red_cat=no
{{Annotated link| Intentionally permanent red link |red_cat=no}}

{{Annotated link}}

[[:Intentionally permanent red link|Intentionally permanent red link]]

{{Annotated link/sandbox}}

[[:Intentionally permanent red link|Intentionally permanent red link]]

Wiki-markup in |name=; formatted link provided
{{Annotated link| [[Wikipedia]] }}

{{Annotated link}}

Wikipedia – Free online crowdsourced encyclopedia

{{Annotated link/sandbox}}

Wikipedia – Free online crowdsourced encyclopedia

Wiki-markup in |name=; formatted link with piped display provided
{{Annotated link| [[Wikipedia|This project]] }}

{{Annotated link}}

This project – Free online crowdsourced encyclopedia

{{Annotated link/sandbox}}

This project – Free online crowdsourced encyclopedia

Wiki-markup in |name=; formatted link in Template namespace with piped display provided
{{Annotated link| [[ Template:Annotated link | Annotated link ]] }}

{{Annotated link}}

{{[[:Template:Annotated link|Annotated link]]}}&nbsp;– template used to display and annotate a wikilink using the short description of the linked page<span style="display:none" class="category-wikidata-fallback-annotation">Pages displaying wikidata descriptions as a fallback</span>[[Category:Pages displaying wikidata descriptions as a fallback via Module:Annotated link]]

{{Annotated link/sandbox}}

{{[[:Template:Annotated link|Annotated link]]}}&nbsp;– template used to display and annotate a wikilink using the short description of the linked page<span style="display:none" class="category-wikidata-fallback-annotation">Pages displaying wikidata descriptions as a fallback</span>[[Category:Pages displaying wikidata descriptions as a fallback via Module:Annotated link]]

Wiki-markup in |name=; formatted link in Category namespace provided
{{Annotated link| [[ : Category:Link templates ]] }}

{{Annotated link}}

[[:Category:Link templates|Category:Link templates]]

{{Annotated link/sandbox}}

[[:Category:Link templates|Category:Link templates]]

Wiki-markup in |name=; template markup
{{Annotated link|1= <span class="nowrap">&#123;&#123;</span>[[Template:Void|Void]]<span class="nowrap">&#125;&#125;</span> }}

{{Annotated link}}

<strong class="error"><span class="scribunto-error mw-scribunto-error-1807dafe">Lua error in Module:GetShortDescription at line 230: attempt to index local 'args_name_title_table' (a nil value).</span></strong>

{{Annotated link/sandbox}}

<strong class="error"><span class="scribunto-error mw-scribunto-error-e454c89c">Lua error in Module:GetShortDescription at line 230: attempt to index local 'args_name_title_table' (a nil value).</span></strong>

Section link provided
{{Annotated link| Albert Einstein#Life and career }}

{{Annotated link}}

Albert Einstein#Life and career – German-born physicist (1879–1955)

{{Annotated link/sandbox}}

Albert Einstein § Life and career – German-born physicist (1879–1955)

Handling of explicit short description templates

[edit]

Badly configured

[edit]
An entirely empty {{short description}} on the page
{{Annotated link| Template:GetShortDescription/explicit short description undefined |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description undefined

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description undefined

{{short description|}}
{{Annotated link| Template:GetShortDescription/explicit short description empty |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description empty

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description empty

{{short description|1=}}
{{Annotated link| Template:GetShortDescription/explicit short description numbered empty |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description numbered empty

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description numbered empty

{{short description|pagetype= Talk || noreplace }}
{{Annotated link| Template:GetShortDescription/explicit short description complex empty |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description complex empty

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description complex empty

{{short description|2 = noreplace | pagetype= Talk | 1 =}}
{{Annotated link| Template:GetShortDescription/explicit short description complex numbered empty |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description complex numbered empty

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description complex numbered empty

{{short description|Explicit short description with unknown params|unknown=params}}
{{Annotated link| Template:GetShortDescription/explicit short description with unknown params |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description with unknown params – Explicit short description with unknown params

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description with unknown params – Explicit short description with unknown params

{{short description| unknown =param| 2= noreplace |things=stuff| Explicit short description with complex unknown params |pagetype = Talk }}
{{Annotated link| Template:GetShortDescription/explicit short description with complex unknown params |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description with complex unknown params – Explicit short description with complex unknown params

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description with complex unknown params – Explicit short description with complex unknown params

Multiple

[edit]
{{short description| Explicit short description first }} {{short description| Explicit short description second (used) }}
{{Annotated link| Template:GetShortDescription/two explicit short description templates |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/two explicit short description templates – Explicit short description second (used)

{{Annotated link/sandbox}}

Template:GetShortDescription/two explicit short description templates – Explicit short description second (used)

{{short description| Explicit short description first (noreplace) | noreplace }} {{short description| Explicit short description second (used) }}
{{Annotated link| Template:GetShortDescription/two explicit short description templates first noreplace |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/two explicit short description templates first noreplace – Explicit short description second (used)

{{Annotated link/sandbox}}

Template:GetShortDescription/two explicit short description templates first noreplace – Explicit short description second (used)

{{short description| Explicit short description first (used) }} {{short description| Explicit short description second (noreplace) | noreplace }}
{{Annotated link| Template:GetShortDescription/two explicit short description templates second noreplace |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/two explicit short description templates second noreplace – Explicit short description first (used)

{{Annotated link/sandbox}}

Template:GetShortDescription/two explicit short description templates second noreplace – Explicit short description first (used)

{{short description| Explicit short description first }}

{{short description| Explicit short description second (noreplace) | noreplace }}

{{short description| Explicit short description third (used) }}
{{Annotated link| Template:GetShortDescription/three explicit short description templates second noreplace |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/three explicit short description templates second noreplace – Explicit short description third (used)

{{Annotated link/sandbox}}

Template:GetShortDescription/three explicit short description templates second noreplace – Explicit short description third (used)

{{short description| Explicit short description first (used) }}

{{short description| none }}

{{short description| Explicit short description third (noreplace) | noreplace }}
{{Annotated link| Template:GetShortDescription/three explicit short description templates second none third noreplace |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/three explicit short description templates second none third noreplace – Explicit short description first (used)

{{Annotated link/sandbox}}

Template:GetShortDescription/three explicit short description templates second none third noreplace – Explicit short description first (used)

Uncommon configurations

[edit]
{{short description|pagetype= Talk | none| noreplace }}
{{Annotated link| Template:GetShortDescription/explicit short description complex none |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description complex none

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description complex none

{{short description|2 = noreplace | pagetype= Talk | 1 =none}}
{{Annotated link| Template:GetShortDescription/explicit short description complex numbered none |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description complex numbered none

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description complex numbered none

{{short description|pagetype= Talk | Explicit short description complex| noreplace }}
{{Annotated link| Template:GetShortDescription/explicit short description complex |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description complex – Explicit short description complex

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description complex – Explicit short description complex

{{short description|2 = noreplace | pagetype= Talk | 1 =Explicit short description complex numbered}}
{{Annotated link| Template:GetShortDescription/explicit short description complex numbered |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description complex numbered – Explicit short description complex numbered

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description complex numbered – Explicit short description complex numbered

Common configurations

[edit]
No explicit {{short description}} on the page
{{Annotated link| Template:GetShortDescription/no explicit short description |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/no explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/no explicit short description

{{short description|none}}
{{Annotated link| Template:GetShortDescription/explicit short description none |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description none

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description none

{{short description|1=none}}
{{Annotated link| Template:GetShortDescription/explicit short description numbered none |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description numbered none

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description numbered none

{{short description|Explicit short description}}
{{Annotated link| Template:GetShortDescription/explicit short description |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description – Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description – Explicit short description

{{short description|1=Explicit short description numbered}}
{{Annotated link| Template:GetShortDescription/explicit short description numbered |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description numbered – Explicit short description numbered

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description numbered – Explicit short description numbered

Template usage

[edit]

Basic

[edit]
Page name supplied as unnamed-or-numbered first parameter
{{Annotated link| Template:GetShortDescription/explicit short description |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description – Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description – Explicit short description

Page name supplied as numbered first parameter
{{Annotated link|Template:GetShortDescription/explicit short description|template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description – Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description – Explicit short description

Page name supplied as named parameter using alias |name=
{{Annotated link|name=Template:GetShortDescription/explicit short description |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description – Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description – Explicit short description

Page name supplied as named parameter using alias |title=
{{Annotated link|template_link=no |title=Template:GetShortDescription/explicit short description}}

{{Annotated link}}

Template:GetShortDescription/explicit short description – Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description – Explicit short description

Piped link display supplied as unnamed-or-numbered second parameter
{{Annotated link| Template:GetShortDescription/explicit short description | Test page |template_link=no}}

{{Annotated link}}

Test page – Explicit short description

{{Annotated link/sandbox}}

Test page – Explicit short description

Piped link display supplied as numbered second parameter
{{Annotated link| Template:GetShortDescription/explicit short description |Test page|template_link=no}}

{{Annotated link}}

Test page – Explicit short description

{{Annotated link/sandbox}}

Test page – Explicit short description

Piped link display supplied as named parameter using alias |display=
{{Annotated link| Template:GetShortDescription/explicit short description |display=Test page |template_link=no}}

{{Annotated link}}

Test page – Explicit short description

{{Annotated link/sandbox}}

Test page – Explicit short description

Piped link display supplied as named parameter using alias |disp=
{{Annotated link| Template:GetShortDescription/explicit short description |disp=Test page |template_link=no}}

{{Annotated link}}

Test page – Explicit short description

{{Annotated link/sandbox}}

Test page – Explicit short description

Dash replacement using unnamed-or-numbered third parameter, where the second param is empty
{{Annotated link| Template:GetShortDescription/explicit short description || , |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description, Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description, Explicit short description

Dash replacement using unnamed-or-numbered third parameter, where the second param is used
{{Annotated link| Template:GetShortDescription/explicit short description | Test page | , |template_link=no}}

{{Annotated link}}

Test page, Explicit short description

{{Annotated link/sandbox}}

Test page, Explicit short description

Dash replacement using numbered third parameter
{{Annotated link| Template:GetShortDescription/explicit short description |3=, |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description, Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description, Explicit short description

Dash replacement using named third parameter using alias |dash=
{{Annotated link| Template:GetShortDescription/explicit short description |dash=, |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description, Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description, Explicit short description

Dash replacement using named third parameter using alias |comma=
{{Annotated link| Template:GetShortDescription/explicit short description |comma=, |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description, Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description, Explicit short description

Extended

[edit]
Double quoting of links using |quote=
{{Annotated link| Template:GetShortDescription/explicit short description | Song Title |quote=yes |template_link=no}}

{{Annotated link}}

"Song Title" – Explicit short description

{{Annotated link/sandbox}}

"Song Title" – Explicit short description

Double quoting of links using alias |quote_link=
{{Annotated link| Template:GetShortDescription/explicit short description | Song Title |quote_link=yes |template_link=no}}

{{Annotated link}}

"Song Title" – Explicit short description

{{Annotated link/sandbox}}

"Song Title" – Explicit short description

Double quoting of links using alias |quote-link=
{{Annotated link| Template:GetShortDescription/explicit short description | Song Title |quote-link=yes |template_link=no}}

{{Annotated link}}

"Song Title" – Explicit short description

{{Annotated link/sandbox}}

"Song Title" – Explicit short description

Double quoting of links using alias |ql=
{{Annotated link| Template:GetShortDescription/explicit short description | Song Title |ql=yes |template_link=no}}

{{Annotated link}}

"Song Title" – Explicit short description

{{Annotated link/sandbox}}

"Song Title" – Explicit short description

Adding an abbreviation using |abbr=
{{Annotated link| Template:GetShortDescription/explicit short description |abbr=ESD |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description (ESD) – Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description (ESD) – Explicit short description

Adding an abbreviation using alias |abbreviation=
{{Annotated link| Template:GetShortDescription/explicit short description |abbreviation=ESD |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description (ESD) – Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description (ESD) – Explicit short description

Adding an abbreviation title using |abbr_title=
{{Annotated link| Template:GetShortDescription/explicit short description |abbr=ESD |abbr_title=Explicit short description |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description (ESD) – Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description (ESD) – Explicit short description

Adding an abbreviation title using alias |abbr-title=
{{Annotated link| Template:GetShortDescription/explicit short description |abbr=ESD |abbr-title=Explicit short description |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description (ESD) – Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description (ESD) – Explicit short description

Adding an abbreviation title using alias |abbreviation_title=
{{Annotated link| Template:GetShortDescription/explicit short description |abbr=ESD |abbreviation_title=Explicit short description |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description (ESD) – Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description (ESD) – Explicit short description

Adding an abbreviation title using alias |abbreviation-title=
{{Annotated link| Template:GetShortDescription/explicit short description |abbr=ESD |abbreviation-title=Explicit short description |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description (ESD) – Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description (ESD) – Explicit short description

Adding an abbreviation title using alias |at=
{{Annotated link| Template:GetShortDescription/explicit short description |abbr=ESD |at=Explicit short description |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description (ESD) – Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description (ESD) – Explicit short description

|abbr_title= used without |abbr=
{{Annotated link| Template:GetShortDescription/explicit short description |abbr_title=Explicit short description |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description – Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description – Explicit short description

Adding an "also known as" using |aka=
{{Annotated link| Template:GetShortDescription/explicit short description |aka=A test page |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description, also known as A test page – Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description, also known as A test page – Explicit short description

Adding an abbreviation using |abbr= followed by an "also known as" using |aka=
{{Annotated link| Template:GetShortDescription/explicit short description |abbr=ESD |aka=A test page |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description (ESD), also known as A test page – Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description (ESD), also known as A test page – Explicit short description

Adding extra information using |wedge=
{{Annotated link| Template:GetShortDescription/explicit short description |template_link=no |wedge=some extra information}}

{{Annotated link}}

Template:GetShortDescription/explicit short description, some extra information – Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description, some extra information – Explicit short description

Adding extra information using alias |insert=
{{Annotated link| Template:GetShortDescription/explicit short description |insert=some extra information |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description, some extra information – Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description, some extra information – Explicit short description

Adding extra information using alias |extra=
{{Annotated link| Template:GetShortDescription/explicit short description |extra=some extra information |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description, some extra information – Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description, some extra information – Explicit short description

Adding an abbreviation using |abbr= followed by extra information using |wedge=
{{Annotated link| Template:GetShortDescription/explicit short description |abbr=ESD |template_link=no |wedge=some extra information}}

{{Annotated link}}

Template:GetShortDescription/explicit short description (ESD), some extra information – Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description (ESD), some extra information – Explicit short description

Adding an "also known as" using |aka= followed by extra information using |wedge=
{{Annotated link| Template:GetShortDescription/explicit short description |aka=A test page |template_link=no |wedge=some extra information}}

{{Annotated link}}

Template:GetShortDescription/explicit short description, also known as A test page, some extra information – Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description, also known as A test page, some extra information – Explicit short description

Adding an abbreviation using |abbr= followed by an "also known as" using |aka= followed by extra information using |wedge=
{{Annotated link| Template:GetShortDescription/explicit short description |abbr=ESD |aka=A test page |template_link=no |wedge=some extra information}}

{{Annotated link}}

Template:GetShortDescription/explicit short description (ESD), also known as A test page, some extra information – Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description (ESD), also known as A test page, some extra information – Explicit short description

Template link formatting akin to that expected of {{template link}}
{{Annotated link| Template:annotated link }}

{{Annotated link}}

{{[[:Template:annotated link|annotated link]]}}&nbsp;– template used to display and annotate a wikilink using the short description of the linked page<span style="display:none" class="category-wikidata-fallback-annotation">Pages displaying wikidata descriptions as a fallback</span>[[Category:Pages displaying wikidata descriptions as a fallback via Module:Annotated link]]

{{Annotated link/sandbox}}

{{[[:Template:annotated link|annotated link]]}}&nbsp;– template used to display and annotate a wikilink using the short description of the linked page<span style="display:none" class="category-wikidata-fallback-annotation">Pages displaying wikidata descriptions as a fallback</span>[[Category:Pages displaying wikidata descriptions as a fallback via Module:Annotated link]]

Template link formatting akin to that expected of {{template link expanded}}
{{Annotated link| Template:annotated link |template_link=code}}

{{Annotated link}}

<code>{{[[:Template:annotated link|annotated link]]}}</code>&nbsp;– template used to display and annotate a wikilink using the short description of the linked page<span style="display:none" class="category-wikidata-fallback-annotation">Pages displaying wikidata descriptions as a fallback</span>[[Category:Pages displaying wikidata descriptions as a fallback via Module:Annotated link]]

{{Annotated link/sandbox}}

<code>{{[[:Template:annotated link|annotated link]]}}</code>&nbsp;– template used to display and annotate a wikilink using the short description of the linked page<span style="display:none" class="category-wikidata-fallback-annotation">Pages displaying wikidata descriptions as a fallback</span>[[Category:Pages displaying wikidata descriptions as a fallback via Module:Annotated link]]

Disabled special template link formatting
{{Annotated link| Template:Annotated link |template_link=no}}

{{Annotated link}}

[[:Template:Annotated link|Template:Annotated link]]&nbsp;– template used to display and annotate a wikilink using the short description of the linked page<span style="display:none" class="category-wikidata-fallback-annotation">Pages displaying wikidata descriptions as a fallback</span>[[Category:Pages displaying wikidata descriptions as a fallback via Module:Annotated link]]

{{Annotated link/sandbox}}

[[:Template:Annotated link|Template:Annotated link]]&nbsp;– template used to display and annotate a wikilink using the short description of the linked page<span style="display:none" class="category-wikidata-fallback-annotation">Pages displaying wikidata descriptions as a fallback</span>[[Category:Pages displaying wikidata descriptions as a fallback via Module:Annotated link]]

Disabled special template link formatting with piped link title
{{Annotated link| Template:Annotated link | Annotated link |template_link=no}}

{{Annotated link}}

[[:Template:Annotated link|Annotated link]]&nbsp;– template used to display and annotate a wikilink using the short description of the linked page<span style="display:none" class="category-wikidata-fallback-annotation">Pages displaying wikidata descriptions as a fallback</span>[[Category:Pages displaying wikidata descriptions as a fallback via Module:Annotated link]]

{{Annotated link/sandbox}}

[[:Template:Annotated link|Annotated link]]&nbsp;– template used to display and annotate a wikilink using the short description of the linked page<span style="display:none" class="category-wikidata-fallback-annotation">Pages displaying wikidata descriptions as a fallback</span>[[Category:Pages displaying wikidata descriptions as a fallback via Module:Annotated link]]

Categorisation of short descriptions with no spaces
{{Annotated link| Template:GetShortDescription/explicit short description with no spaces |template_link=no}}

{{Annotated link}}

[[:Template:GetShortDescription/explicit short description with no spaces|Template:GetShortDescription/explicit short description with no spaces]]&nbsp;– Spacelessness<span style="display:none" class="category-spaceless-annotation">Pages displaying short descriptions with no spaces</span>[[Category:Pages displaying short descriptions with no spaces via Module:Annotated link]]

{{Annotated link/sandbox}}

[[:Template:GetShortDescription/explicit short description with no spaces|Template:GetShortDescription/explicit short description with no spaces]]&nbsp;– Spacelessness<span style="display:none" class="category-spaceless-annotation">Pages displaying short descriptions with no spaces</span>[[Category:Pages displaying short descriptions with no spaces via Module:Annotated link]]

Disabling categorisation of short descriptions with no spaces
{{Annotated link| Template:GetShortDescription/explicit short description with no spaces |space_cat=no |template_link=no}}

{{Annotated link}}

[[:Template:GetShortDescription/explicit short description with no spaces|Template:GetShortDescription/explicit short description with no spaces]]&nbsp;– Spacelessness

{{Annotated link/sandbox}}

[[:Template:GetShortDescription/explicit short description with no spaces|Template:GetShortDescription/explicit short description with no spaces]]&nbsp;– Spacelessness

Converting first letter case using |desc_first_letter_case=
{{Annotated link| Template:GetShortDescription/explicit short description with lowercase first letter |desc_first_letter_case=lower |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description with lowercase first letter – explicit short description with a lowercase first letter

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description with lowercase first letter – explicit short description with a lowercase first letter

Converting first letter case using alias |desc-first-letter-case=
{{Annotated link| Template:GetShortDescription/explicit short description with lowercase first letter |desc-first-letter-case=lower |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description with lowercase first letter – explicit short description with a lowercase first letter

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description with lowercase first letter – explicit short description with a lowercase first letter

Converting first letter case using alias |desc_case =
{{Annotated link| Template:GetShortDescription/explicit short description with lowercase first letter |desc_case=lower |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description with lowercase first letter – explicit short description with a lowercase first letter

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description with lowercase first letter – explicit short description with a lowercase first letter

Converting first letter case using alias |desc-case=
{{Annotated link| Template:GetShortDescription/explicit short description with lowercase first letter |desc-case=lower |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description with lowercase first letter – explicit short description with a lowercase first letter

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description with lowercase first letter – explicit short description with a lowercase first letter

Converting first letter case using alias |case=
{{Annotated link| Template:GetShortDescription/explicit short description with lowercase first letter |case=lower |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description with lowercase first letter – explicit short description with a lowercase first letter

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description with lowercase first letter – explicit short description with a lowercase first letter

Specifying short description source preferences

[edit]
Specifying |only=explicit where none exists but a Wikidata description does
{{Annotated link| Template:Annotated link |only=explicit}}

{{Annotated link}}

{{Annotated link}}

{{Annotated link/sandbox}}

{{Annotated link}}

Specifying |only=wikidata where a Wikidata description exists
{{Annotated link| Template:Annotated link |only=wikidata}}

{{Annotated link}}

{{[[:Template:Annotated link|Annotated link]]}}&nbsp;– template used to display and annotate a wikilink using the short description of the linked page

{{Annotated link/sandbox}}

{{[[:Template:Annotated link|Annotated link]]}}&nbsp;– template used to display and annotate a wikilink using the short description of the linked page

Specifying |prefer=explicit where none exists but a Wikidata description does
{{Annotated link| Template:Annotated link |prefer=explicit}}

{{Annotated link}}

{{[[:Template:Annotated link|Annotated link]]}}&nbsp;– template used to display and annotate a wikilink using the short description of the linked page<span style="display:none" class="category-wikidata-fallback-annotation">Pages displaying wikidata descriptions as a fallback</span>[[Category:Pages displaying wikidata descriptions as a fallback via Module:Annotated link]]

{{Annotated link/sandbox}}

{{[[:Template:Annotated link|Annotated link]]}}&nbsp;– template used to display and annotate a wikilink using the short description of the linked page<span style="display:none" class="category-wikidata-fallback-annotation">Pages displaying wikidata descriptions as a fallback</span>[[Category:Pages displaying wikidata descriptions as a fallback via Module:Annotated link]]

Specifying |prefer=wikidata where an explicit short description exists
{{Annotated link| Wikipedia |prefer=wikidata |template_link=no}}

{{Annotated link}}

Wikipedia – free multilingual online encyclopedia

{{Annotated link/sandbox}}

Wikipedia – free multilingual online encyclopedia

Specifying |only=explicit where none exists but a |fallback= is provided
{{Annotated link| Template:GetShortDescription/no explicit short description |fallback=this is a fallback |only=explicit |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/no explicit short description – this is a fallback

{{Annotated link/sandbox}}

Template:GetShortDescription/no explicit short description – this is a fallback

Specifying |only=explicit where one exists and a |fallback= is provided
{{Annotated link| Template:GetShortDescription/explicit short description |fallback=this is a fallback |only=explicit |template_link=no}}

{{Annotated link}}

Template:GetShortDescription/explicit short description – Explicit short description

{{Annotated link/sandbox}}

Template:GetShortDescription/explicit short description – Explicit short description

Foreign language handling

[edit]
{{short description|Explicit short description}}
{{Annotated link| Template:GetShortDescription/explicit short description |La page de test de Fred |aka=フレッドのテストページ |aka_lang=ja |link_lang=fr |template_link=no |wedge=Leathanach tástála Fred |wedge_lang=ga}}

{{Annotated link}}

La page de test de Fred, also known as フレッドのテストページ, Leathanach tástála Fred – Explicit short description
<span title="French-language text"><i lang="fr">[[:Template:GetShortDescription/explicit short description|La page de test de Fred]]</i></span>, also known as <span title="Japanese-language text"><span lang="ja">フレッドのテストページ</span></span>, <span title="Irish-language text"><i lang="ga">Leathanach tástála Fred</i></span>&nbsp;– Explicit short description

{{Annotated link/sandbox}}

La page de test de Fred, also known as フレッドのテストページ, Leathanach tástála Fred – Explicit short description
<span title="French-language text"><i lang="fr">[[:Template:GetShortDescription/explicit short description|La page de test de Fred]]</i></span>, also known as <span title="Japanese-language text"><span lang="ja">フレッドのテストページ</span></span>, <span title="Irish-language text"><i lang="ga">Leathanach tástála Fred</i></span>&nbsp;– Explicit short description

Short description with deliberate lower-case first letter

[edit]
{{short description|iOS, macOS, and tvOS graphics rendering API }}
{{Annotated link| Metal (API) |template_link=no}}

{{Annotated link}}

Metal (API) – iOS, macOS, and tvOS graphics rendering API
[[:Metal (API)|Metal (API)]]&nbsp;– iOS, macOS, and tvOS graphics rendering API

{{Annotated link/sandbox}}

Metal (API) – iOS, macOS, and tvOS graphics rendering API
[[:Metal (API)|Metal (API)]]&nbsp;– iOS, macOS, and tvOS graphics rendering API
{{short description|IOS, macOS, and tvOS graphics rendering API }} (upper-cased by this template)
{{Annotated link| Metal (API) |desc_first_letter_case=upper |template_link=no}}

{{Annotated link}}

Metal (API) – IOS, macOS, and tvOS graphics rendering API
[[:Metal (API)|Metal (API)]]&nbsp;– IOS, macOS, and tvOS graphics rendering API

{{Annotated link/sandbox}}

Metal (API) – IOS, macOS, and tvOS graphics rendering API
[[:Metal (API)|Metal (API)]]&nbsp;– IOS, macOS, and tvOS graphics rendering API