Difference between revisions of "Template:FancyFormatLink"

From Wikispooks
Jump to navigation Jump to search
(trim NBSP)
m (Text replacement - "__NOCACHE__" to "")
 
Line 4: Line 4:
 
'''Usage:'''<br/>
 
'''Usage:'''<br/>
 
<font face="courier"><nowiki>{{</nowiki>{{PAGENAME}}|Document:Example document<nowiki>}}</nowiki></font>
 
<font face="courier"><nowiki>{{</nowiki>{{PAGENAME}}|Document:Example document<nowiki>}}</nowiki></font>
</noinclude><includeonly>__NOCACHE__{{#if: {{{1|}}}|[[image:{{Namespace detect
+
</noinclude><includeonly>{{#if: {{{1|}}}|[[image:{{Namespace detect
 
<!-- Long list of icons, once for each namespace - might want to farm this out to another template -->
 
<!-- Long list of icons, once for each namespace - might want to farm this out to another template -->
 
| document =document
 
| document =document

Latest revision as of 09:52, 17 February 2018

This template marks up internal links in a fancy fashion. It is used e.g. by Template:Ratings/Output.
As well as using an unusual font (Arial) it shortens the link and uses an icon to represent the namespace.

Usage:
{{FancyFormatLink|Document:Example document}}