Revision 621080 of "قالب:Link FL/doc" on arzwiki

<noinclude>{{صفحه توثيق فرعيه}}</noinclude>
<!--
    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|{{ifdc|1=Monobook-bullet-star.png|log=2009 May 26}}]]) in order to indicate the article of this Wikipedia’s language edition was promoted to the Featured List status.

== Usage ==
To use this template, add <nowiki>{{Link FL|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.

== Example ==
Suppose Flimble is a featured list on the German Wikipedia. Then before the list of interlanguage links (<nowiki>[[de:Flimble]]</nowiki>), simply add <nowiki>{{Link FL|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>FL</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|{{ifdc|1=Monobook-bullet-star.png|log=2009 May 26}}]] with CSS rule in [[Mediawiki:Monobook.css]].

(Yes, this template piggybacks on the [[Template:Link FA|Link FA]]-template and just exists as an own template in order to be easier to maintain without having to re-code maintaining bots)

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

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