Difference between revisions of "Template:FancyFormatLink"

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

Revision as of 16:23, 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}}