Difference between revisions of "Template:Abbrlink/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Meteor sandwich yum
(using new sandbox preload code: removes sandboxes from categories and says to use Wikidata)
blackwiki>Nnemo
(Notably accessibility)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
+
<!-- Categories go at the end of this page and interwikis links go in Wikidata. -->
  
 
== Usage ==
 
== Usage ==
  
  <nowiki>{{</nowiki>abbrlink|''abbr''|''expanded term''}}
+
  <nowiki>{{</nowiki>abbrlink|''abbr''|''expanded phrase''}}
 +
 
 +
Example:
  
Example:
 
 
<pre>
 
<pre>
 
{{abbrlink|UK|United Kingdom}}
 
{{abbrlink|UK|United Kingdom}}
</pre>
+
</pre>  
Which results in:
+
 
 +
Which results in:  
 +
 
 
{{abbrlink|UK|United Kingdom}}
 
{{abbrlink|UK|United Kingdom}}
  
That is, like template {{tl|abbr}} but it also creates an article link to the expanded term.
+
That is like template {{tl|abbr}} but it also creates an article link to the expanded phrase.
  
==See also ==
+
== See also ==
  
*[[Wikipedia:Accessibility]]
+
* [[Wikipedia:Accessibility]]
*[[Template:Abbr]]
+
* [[Template:Abbr]]
*[[Template:R-phrase]]
+
* [[Template:Dabbr]]
 +
* [[Template:R-phrase]]
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories go here and interwikis go in Wikidata. -->
+
 
 +
<!-- Categories go here and interwikis links go in Wikidata. -->
 
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]
 
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]
  
 
}}</includeonly>
 
}}</includeonly>

Revision as of 09:39, 14 May 2014

Usage

{{abbrlink|abbr|expanded phrase}}

Example:

{{abbrlink|UK|United Kingdom}}

Which results in:

UK

That is like template {{abbr}} but it also creates an article link to the expanded phrase.

See also