සැකිල්ල:Annotated link/testcases
This is the template test cases page for the sandbox of සැකිල්ල:Annotated link. Purge this page to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Handling of misuse
සංස්කරණය{{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]]
<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| User:Fred Gandt/nonexistent page }}
{{Annotated link}}
[[:User:Fred Gandt/nonexistent page|User:Fred Gandt/nonexistent page]]
[[:User:Fred Gandt/nonexistent page|User:Fred Gandt/nonexistent page]]
|red_cat=no
{{Annotated link| User:Fred Gandt/nonexistent page |red_cat=no}}
{{Annotated link}}
[[:User:Fred Gandt/nonexistent page|User:Fred Gandt/nonexistent page]]
[[:User:Fred Gandt/nonexistent page|User:Fred Gandt/nonexistent page]]
|name=
; formatted link provided{{Annotated link| [[Wikipedia]] }}
{{Annotated link}}
Wikipedia – නොමිලේ ලැබෙන සැමටම සංස්කරණය කල හැකි අන්තර්ජාල විශ්වකෝශය
Wikipedia – නොමිලේ ලැබෙන සැමටම සංස්කරණය කල හැකි අන්තර්ජාල විශ්වකෝශය
|name=
; formatted link with piped display provided{{Annotated link| [[Wikipedia|This project]] }}
{{Annotated link}}
This project – නොමිලේ ලැබෙන සැමටම සංස්කරණය කල හැකි අන්තර්ජාල විශ්වකෝශය
This project – නොමිලේ ලැබෙන සැමටම සංස්කරණය කල හැකි අන්තර්ජාල විශ්වකෝශය
|name=
; formatted link in Template namespace with piped display provided{{Annotated link| [[ Template:Annotated link | Annotated link ]] }}
{{Annotated link}}
{{[[:Template:Annotated link|Annotated link]]}} – 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:Annotated link|Annotated link]]}} – 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]]
|name=
; formatted link in Category namespace provided{{Annotated link| [[ : Category:Link templates ]] }}
{{Annotated link}}
[[:Category:Link templates|Category:Link templates]]
[[:Category:Link templates|Category:Link templates]]
|name=
; template markup{{Annotated link| {{[[Template:Void|Void]]}} }}
{{Annotated link}}
<span style="color:#d33">[[Module:Annotated link]] requires only a page name (including namespace) without markup. If an attempt is being made to annotate a link to a template, provide only the template name with namespace e.g. "Template:Example".</span>[[Category:Pages displaying alarming messages about Module:Annotated link]]
<span style="color:#d33">[[Module:Annotated link]] requires only a page name (including namespace) without markup. If an attempt is being made to annotate a link to a template, provide only the template name with namespace e.g. "Template:Example".</span>[[Category:Pages displaying alarming messages about Module:Annotated link]]
{{Annotated link| Albert Einstein#Life and career }}
{{Annotated link}}
Albert Einstein#Life and career – German-born theoretical physicist (1879–1955)
Albert Einstein § Life and career – German-born theoretical physicist (1879–1955)
Handling of explicit short description templates
සංස්කරණයBadly configured
සංස්කරණය{{short description}}
on the page{{Annotated link| User:Fred Gandt/sandbox/explicit short description undefined }}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description undefined
User:Fred Gandt/sandbox/explicit short description undefined
{{short description|}}
{{Annotated link| User:Fred Gandt/sandbox/explicit short description empty }}
{{Annotated link}}
{{short description|1=}}
{{Annotated link| User:Fred Gandt/sandbox/explicit short description numbered empty }}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description numbered empty
User:Fred Gandt/sandbox/explicit short description numbered empty
{{short description|pagetype= Talk || noreplace }}
{{Annotated link| User:Fred Gandt/sandbox/explicit short description complex empty }}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description complex empty
User:Fred Gandt/sandbox/explicit short description complex empty
{{short description|2 = noreplace | pagetype= Talk | 1 =}}
{{Annotated link| User:Fred Gandt/sandbox/explicit short description complex numbered empty }}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description complex numbered empty
User:Fred Gandt/sandbox/explicit short description complex numbered empty
{{short description|Explicit short description with unknown params|unknown=params}}
{{Annotated link| User:Fred Gandt/sandbox/explicit short description with unknown params }}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description with unknown params
User:Fred Gandt/sandbox/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| User:Fred Gandt/sandbox/explicit short description with complex unknown params }}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description with complex unknown params
User:Fred Gandt/sandbox/explicit short description with complex unknown params
Multiple
සංස්කරණය{{short description| Explicit short description first }}
{{short description| Explicit short description second (used) }}
{{Annotated link| User:Fred Gandt/sandbox/two explicit short description templates }}
{{Annotated link}}
User:Fred Gandt/sandbox/two explicit short description templates
User:Fred Gandt/sandbox/two explicit short description templates
{{short description| Explicit short description first (noreplace) | noreplace }}
{{short description| Explicit short description second (used) }}
{{Annotated link| User:Fred Gandt/sandbox/two explicit short description templates first noreplace }}
{{Annotated link}}
User:Fred Gandt/sandbox/two explicit short description templates first noreplace
User:Fred Gandt/sandbox/two explicit short description templates first noreplace
{{short description| Explicit short description first (used) }}
{{short description| Explicit short description second (noreplace) | noreplace }}
{{Annotated link| User:Fred Gandt/sandbox/two explicit short description templates second noreplace }}
{{Annotated link}}
User:Fred Gandt/sandbox/two explicit short description templates second noreplace
User:Fred Gandt/sandbox/two explicit short description templates second noreplace
{{short description| Explicit short description first }}
{{short description| Explicit short description second (noreplace) | noreplace }}
{{short description| Explicit short description third (used) }}
{{Annotated link| User:Fred Gandt/sandbox/three explicit short description templates second noreplace }}
{{Annotated link}}
User:Fred Gandt/sandbox/three explicit short description templates second noreplace
User:Fred Gandt/sandbox/three explicit short description templates second noreplace
{{short description| Explicit short description first (used) }}
{{short description| none }}
{{short description| Explicit short description third (noreplace) | noreplace }}
{{Annotated link| User:Fred Gandt/sandbox/three explicit short description templates second none third noreplace }}
{{Annotated link}}
User:Fred Gandt/sandbox/three explicit short description templates second none third noreplace
User:Fred Gandt/sandbox/three explicit short description templates second none third noreplace
Uncommon configurations
සංස්කරණය{{short description|pagetype= Talk | none| noreplace }}
{{Annotated link| User:Fred Gandt/sandbox/explicit short description complex none }}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description complex none
User:Fred Gandt/sandbox/explicit short description complex none
{{short description|2 = noreplace | pagetype= Talk | 1 =none}}
{{Annotated link| User:Fred Gandt/sandbox/explicit short description complex numbered none }}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description complex numbered none
User:Fred Gandt/sandbox/explicit short description complex numbered none
{{short description|pagetype= Talk | Explicit short description complex| noreplace }}
{{Annotated link| User:Fred Gandt/sandbox/explicit short description complex }}
{{Annotated link}}
{{short description|2 = noreplace | pagetype= Talk | 1 =Explicit short description complex numbered}}
{{Annotated link| User:Fred Gandt/sandbox/explicit short description complex numbered }}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description complex numbered
User:Fred Gandt/sandbox/explicit short description complex numbered
Common configurations
සංස්කරණය{{Annotated link| User:Fred Gandt/sandbox/no explicit short description }}
{{Annotated link}}
{{short description|none}}
{{Annotated link| User:Fred Gandt/sandbox/explicit short description none }}
{{Annotated link}}
{{short description|1=none}}
{{Annotated link| User:Fred Gandt/sandbox/explicit short description numbered none }}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description numbered none
User:Fred Gandt/sandbox/explicit short description numbered none
{{short description|Explicit short description}}
{{Annotated link| User:Fred Gandt/sandbox/explicit short description }}
{{Annotated link}}
{{short description|1=Explicit short description numbered}}
{{Annotated link| User:Fred Gandt/sandbox/explicit short description numbered }}
{{Annotated link}}
Template usage
සංස්කරණයBasic
සංස්කරණය{{Annotated link| User:Fred Gandt/sandbox/explicit short description }}
{{Annotated link}}
{{Annotated link|User:Fred Gandt/sandbox/explicit short description}}
{{Annotated link}}
|name=
{{Annotated link|name=User:Fred Gandt/sandbox/explicit short description}}
{{Annotated link}}
|title=
{{Annotated link|title=User:Fred Gandt/sandbox/explicit short description}}
{{Annotated link}}
{{Annotated link| User:Fred Gandt/sandbox/explicit short description | Test page }}
{{Annotated link}}
{{Annotated link| User:Fred Gandt/sandbox/explicit short description |Test page}}
{{Annotated link}}
|display=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description |display=Test page}}
{{Annotated link}}
|disp=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description |disp=Test page}}
{{Annotated link}}
{{Annotated link| User:Fred Gandt/sandbox/explicit short description || , }}
{{Annotated link}}
{{Annotated link| User:Fred Gandt/sandbox/explicit short description | Test page | , }}
{{Annotated link}}
{{Annotated link| User:Fred Gandt/sandbox/explicit short description |3=,}}
{{Annotated link}}
|dash=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description |dash=,}}
{{Annotated link}}
|comma=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description |comma=,}}
{{Annotated link}}
Extended
සංස්කරණය|quote=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description | Song Title |quote=yes}}
{{Annotated link}}
|quote_link=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description | Song Title |quote_link=yes}}
{{Annotated link}}
|quote-link=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description | Song Title |quote-link=yes}}
{{Annotated link}}
|ql=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description | Song Title |ql=yes}}
{{Annotated link}}
|abbr=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description |abbr=ESD}}
{{Annotated link}}
|abbreviation=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description |abbreviation=ESD}}
{{Annotated link}}
|abbr_title=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description |abbr=ESD |abbr_title=Explicit short description}}
{{Annotated link}}
|abbr-title=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description |abbr=ESD |abbr-title=Explicit short description}}
{{Annotated link}}
|abbreviation_title=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description |abbr=ESD |abbreviation_title=Explicit short description}}
{{Annotated link}}
|abbreviation-title=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description |abbr=ESD |abbreviation-title=Explicit short description}}
{{Annotated link}}
|at=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description |abbr=ESD |at=Explicit short description}}
{{Annotated link}}
|abbr_title=
used without |abbr=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description |abbr_title=Explicit short description}}
{{Annotated link}}
|aka=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description |aka=A test page}}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description, also known as A test page
User:Fred Gandt/sandbox/explicit short description, also known as A test page
|abbr=
followed by an "also known as" using |aka=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description |abbr=ESD |aka=A test page}}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description (ESD), also known as A test page
User:Fred Gandt/sandbox/explicit short description (ESD), also known as A test page
|wedge=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description |wedge=some extra information}}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description, some extra information
User:Fred Gandt/sandbox/explicit short description, some extra information
|insert=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description |insert=some extra information}}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description, some extra information
User:Fred Gandt/sandbox/explicit short description, some extra information
|extra=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description |extra=some extra information}}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description, some extra information
User:Fred Gandt/sandbox/explicit short description, some extra information
|abbr=
followed by extra information using |wedge=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description |abbr=ESD |wedge=some extra information}}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description (ESD), some extra information
User:Fred Gandt/sandbox/explicit short description (ESD), some extra information
|aka=
followed by extra information using |wedge=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description |aka=A test page |wedge=some extra information}}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description, also known as A test page, some extra information
User:Fred Gandt/sandbox/explicit short description, also known as A test page, some extra information
|abbr=
followed by an "also known as" using |aka=
followed by extra information using |wedge=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description |abbr=ESD |aka=A test page |wedge=some extra information}}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description (ESD), also known as A test page, some extra information
User:Fred Gandt/sandbox/explicit short description (ESD), also known as A test page, some extra information
{{Annotated link| Template:annotated link }}
{{Annotated link}}
{{[[:Template:annotated link|annotated link]]}} – 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:annotated link|annotated link]]}} – 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| Template:annotated link |template_link=code}}
{{Annotated link}}
<code>{{[[:Template:annotated link|annotated link]]}}</code> – 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]]
<code>{{[[:Template:annotated link|annotated link]]}}</code> – 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| Template:Annotated link |template_link=no}}
{{Annotated link}}
[[:Template:Annotated link|Template:Annotated link]] – 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:Annotated link|Template:Annotated link]] – 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| Template:Annotated link | Annotated link |template_link=no}}
{{Annotated link}}
[[:Template:Annotated link|Annotated link]] – 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:Annotated link|Annotated link]] – 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| User:Fred Gandt/sandbox/explicit short description with no spaces }}
{{Annotated link}}
[[:User:Fred Gandt/sandbox/explicit short description with no spaces|User:Fred Gandt/sandbox/explicit short description with no spaces]]
[[:User:Fred Gandt/sandbox/explicit short description with no spaces|User:Fred Gandt/sandbox/explicit short description with no spaces]]
{{Annotated link| User:Fred Gandt/sandbox/explicit short description with no spaces |space_cat=no}}
{{Annotated link}}
[[:User:Fred Gandt/sandbox/explicit short description with no spaces|User:Fred Gandt/sandbox/explicit short description with no spaces]]
[[:User:Fred Gandt/sandbox/explicit short description with no spaces|User:Fred Gandt/sandbox/explicit short description with no spaces]]
|desc_first_letter_case=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description with lowercase first letter |desc_first_letter_case=lower}}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description with lowercase first letter
User:Fred Gandt/sandbox/explicit short description with lowercase first letter
|desc-first-letter-case=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description with lowercase first letter |desc-first-letter-case=lower}}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description with lowercase first letter
User:Fred Gandt/sandbox/explicit short description with lowercase first letter
|desc_case =
{{Annotated link| User:Fred Gandt/sandbox/explicit short description with lowercase first letter |desc_case=lower}}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description with lowercase first letter
User:Fred Gandt/sandbox/explicit short description with lowercase first letter
|desc-case=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description with lowercase first letter |desc-case=lower}}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description with lowercase first letter
User:Fred Gandt/sandbox/explicit short description with lowercase first letter
|case=
{{Annotated link| User:Fred Gandt/sandbox/explicit short description with lowercase first letter |case=lower}}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description with lowercase first letter
User:Fred Gandt/sandbox/explicit short description with lowercase first letter
Specifying short description source preferences
සංස්කරණය|only=explicit
where none exists but a Wikidata description does{{Annotated link| Template:Annotated link |only=explicit}}
{{Annotated link}}
{{Annotated link}}
{{Annotated link}}
|only=wikidata
where a Wikidata description exists{{Annotated link| Template:Annotated link |only=wikidata}}
{{Annotated link}}
{{[[:Template:Annotated link|Annotated link]]}} – template used to display and annotate a wikilink using the short description of the linked page
{{[[:Template:Annotated link|Annotated link]]}} – template used to display and annotate a wikilink using the short description of the linked page
|prefer=explicit
where none exists but a Wikidata description does{{Annotated link| Template:Annotated link |prefer=explicit}}
{{Annotated link}}
{{[[:Template:Annotated link|Annotated link]]}} – 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:Annotated link|Annotated link]]}} – 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]]
|prefer=wikidata
where an explicit short description exists{{Annotated link| Wikipedia |prefer=wikidata}}
{{Annotated link}}
Wikipedia – නොමිලේ ලැබෙන සැමටම සංස්කරණය කල හැකි අන්තර්ජාල විශ්වකෝශය
Wikipedia – නොමිලේ ලැබෙන සැමටම සංස්කරණය කල හැකි අන්තර්ජාල විශ්වකෝශය
|only=explicit
where none exists but a |fallback=
is provided{{Annotated link| User:Fred Gandt/sandbox/no explicit short description |fallback=this is a fallback |only=explicit}}
{{Annotated link}}
User:Fred Gandt/sandbox/no explicit short description – this is a fallback
User:Fred Gandt/sandbox/no explicit short description – this is a fallback
|only=explicit
where one exists and a |fallback=
is provided{{Annotated link| User:Fred Gandt/sandbox/explicit short description |fallback=this is a fallback |only=explicit}}
{{Annotated link}}
User:Fred Gandt/sandbox/explicit short description – this is a fallback
User:Fred Gandt/sandbox/explicit short description – this is a fallback
Foreign language handling
සංස්කරණය{{short description|Explicit short description}}
{{Annotated link| User:Fred Gandt/sandbox/explicit short description |La page de test de Fred |aka=フレッドのテストページ |aka_lang=ja |link_lang=fr |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<span title="ප්රංශ-language text"><i lang="fr">[[:User:Fred Gandt/sandbox/explicit short description|La page de test de Fred]]</i></span>, also known as <span title="ජපන්-language text"><span lang="ja">フレッドのテストページ</span></span>, <span title="අයිරිෂ්-language text"><i lang="ga">Leathanach tástála Fred</i></span>La page de test de Fred, also known as フレッドのテストページ, Leathanach tástála Fred
<span title="ප්රංශ-language text"><i lang="fr">[[:User:Fred Gandt/sandbox/explicit short description|La page de test de Fred]]</i></span>, also known as <span title="ජපන්-language text"><span lang="ja">フレッドのテストページ</span></span>, <span title="අයිරිෂ්-language text"><i lang="ga">Leathanach tástála Fred</i></span>