Difference between revisions 166150 and 169754 on kmwiki

{{delete|documentation for a deleted template}}
{{Template doc page}}
<!--
    PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE
    YOU CAN EDIT THE TEMPLATE DOCUMENTATION BELOW THIS COMMENT
-->
__NOTOC__
This template is designed to replace the classical list-item marker of an interlanguage link (square) by a gold star ([[Image:monobook-bullet-star.png]]) in order to indicate the article of this Wikipedia’s language edition was promoted to the Featured Article status (for more details about these articles and the criteria associated to their status, see [[Wikipedia:Featured articles in other languages]]).

==បំរើបំរាស់==
To use this template, add <nowiki>{{Link FA|xx}}</nowiki>, where xx is the language code of the Wikipedia on which it has been featured. This template doesn't replace the classical interwiki, you have to use them both to get an interlanguage link with a gold star.

==ឧទាហរណ៏==
Suppose Flimble is a featured article on the German Wikipedia. Then before the list of interlanguage links (<nowiki>[[de:Flimble]]</nowiki>), simply add <nowiki>{{Link FA|de}}</nowiki> in the wikitext. If you're using the monobook skin, the star will appear next to the de: link.

==Mechanism==
It works by creating an invisible span with <code>id=interwiki-''lang''-fa </code> where ''lang'' is a specific language code. Function <tt>LinkFA()</tt> in [[Mediawiki:Common.js]] recognizes this invisible span and adds a special <tt>FA</tt> class to the corresponding interwiki link. All interwiki links with <tt>FA</tt> class are given a special bullet [[Image:Monobook-bullet-star.png]] with CSS rule in [[Mediawiki:Monobook.css]].

The star is displayed only if the skin used is MonoBook (default).

== Acknowledgements ==

This cute trick was shamelessly stolen from the French Wikipedia; it is also used on the Italian wikipedia.

<includeonly>

<!-- PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS. -->
[[Category:Wikipedia featured content templates|{{PAGENAME}}]]
[[Category:Function templates|{{PAGENAME}}]]
</includeonly>