Difference between revisions of "Template:FancyFormatLink"

From Wikispooks
Jump to navigation Jump to search
(Page.png for objectclassless pages)
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>{{#if: {{{1|}}}|{{Namespace detect
+
</noinclude><includeonly>__NOCACHE__{{#if: {{{1|}}}|[[image:{{Namespace detect
  | document  = [[image:Document.png|26px|link={{{1}}}]]&nbsp;[[{{{1}}}]]
+
  | document  =Document
  | other = [[image:{{#ifexist: Image:{{#show: {{{1}}} |? Has objectClass2 }}.png | {{#show: {{{1}}} |? Has objectClass2 }}|Page}}.png|26px|link={{{1}}}]]&nbsp;<font face="arial">[[{{{1}}}]]</font>
+
| user  =Wikispooks
| page  = Document:UK_Intelligence_And_Security_Report,_2003
+
  | other ={{#ifexist: Image:{{#show: {{{1}}} |? Has objectClass2 }}.png | {{#show: {{{1}}} |? Has objectClass2 }}|Page}}
}}}}</includeonly>
+
| page  ={{{1}}}}}.png|26px|link={{{1}}}]]&nbsp;<font face="arial">[[{{{1}}}]]</font>}}</includeonly>

Revision as of 16:35, 25 January 2015

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}}