Difference between revisions 410869 and 412806 on arzwiki

<noinclude>{{documentation subpage}}</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).

==From another language edition==
Right now, this template is new, so very few other language editions have an equivalent template. So after a list has become featured on the English Wikipedia, you can add a starred link in the other language projects by using these tags in the respective wikis (once the feature becomes available):
{| class="toccolours sortable"
! style="background:#c0c090" | Language
! style="background:#c0c090" | Lang. code
! style="background:#c0c090" | Wikitext
|-
| Finnish ({{#language:fi}}) || fi || [[:fi:Malline:Link FL|<nowiki>{{Link FL|en}}</nowiki>]]
|-
| German ({{#language:de}}) || de || [[:de:Vorlage:Link FL|<nowiki>{{Link FL|en}}</nowiki>]]
|-
| Japanese  ({{#language:ja}}) || ja || [[:ja:Template:Link FL|<nowiki>{{Link FL|en}}</nowiki>]]
|-
| Portuguese ({{#language:pt}}) || pt || [[:pt:Predefinição:Link FL|<nowiki>{{Link FL|en}}</nowiki>]]
|-
| Persian ({{#language:fa}}) || fa || [[:fa:الگو:Link FL|<nowiki>{{Link FL|en}}</nowiki>]]
|-
| Russian ({{#language:ru}}) || ru || [[:ru:Шаблон:Link FL|<nowiki>{{Link FL|en}}</nowiki>]]
|-
|}

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

<!-- PLEASE ADD INTERWIKIS BELOW THIS LINE, THANKS. -->
[[az:Şablon:Link FL]]
[[be:Шаблон:Link FL]]
[[de:Vorlage:Link FL]]
[[ja:Template:Link FL]]
[[ka:თარგი:Link FL]]
[[ms:Templat:Link FL]]
[[mzn:شابلون:Link FL]]
[[ne:ढाँचा:Link FL]]
[[no:Mal:Link GLP]]
[[pt:Predefinição:Link FL]]
[[en:Template:Link FL]]
[[fa:الگو:Link FL]]
[[fi:Malline:Link FL]]
[[ro:Format:Legătură LC]]
[[ru:Шаблон:Link FL]]
[[simple:Template:Link FL]]
[[sv:Mall:Link FL]]
[[th:แม่แบบ:Link FL]]
[[uk:Шаблон:Link FL]]
[[uz:Andoza:Link FL]]
[[vi:Bản mẫu:Link FL]]
[[zh:Template:Link FL]]
</includeonly>