Difference between revisions of "Template:Abbrlink/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Edokter
m
blackwiki>Meteor sandwich yum
(using new sandbox preload code: removes sandboxes from categories and says to use Wikidata)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
  
 
== Usage ==
 
== Usage ==
Line 21: Line 21:
 
*[[Template:R-phrase]]
 
*[[Template:R-phrase]]
  
<includeonly>
+
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<!-- Categories go here and interwikis go in Wikidata. -->
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]
+
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]
  
</includeonly>
+
}}</includeonly>

Revision as of 03:01, 16 February 2014

Usage

{{abbrlink|abbr|expanded term}}

Example:

{{abbrlink|UK|United Kingdom}}

Which results in: UK

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

See also