Template:Link FA/doc: Difference between revisions
m (1 revision) |
(clean up) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
YOU CAN EDIT THE TEMPLATE DOCUMENTATION BELOW THIS COMMENT | YOU CAN EDIT THE TEMPLATE DOCUMENTATION BELOW THIS COMMENT | ||
--> | --> | ||
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]]) to indicate that the article of this | 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]]) to indicate that the article of this Sarkarverse’s language edition was promoted to the Featured Article status (for more details about these articles and the criteria associated to their status, see [[Sarkarverse:Featured articles in other languages]]). | ||
===Usage=== | ===Usage=== | ||
To use this template, add <nowiki>{{Link FA|xx}}</nowiki>, where xx is the language code of the | To use this template, add <nowiki>{{Link FA|xx}}</nowiki>, where xx is the language code of the Sarkarverse on which it has been featured. This template does not replace the classical interwiki; you have to use them both to get an interlanguage link with a gold star. | ||
===Example=== | ===Example=== | ||
Suppose | Suppose an article is featured on the German Sarkarverse. Then at the end of the English article (or before the list of interlanguage links, if present), simply add <nowiki>{{Link FA|de}}</nowiki> in the wikitext. The star will appear next to the link to the German article. | ||
===Mechanism=== | ===Mechanism=== | ||
Line 23: | Line 23: | ||
===From another language edition=== | ===From another language edition=== | ||
Many other language editions also have their equivalent template. So after an article has become featured on the English | Many other language editions also have their equivalent template. So after an article has become featured on the English Sarkarverse, you can add a starred link in the other language projects by using these tags in the respective wikis: | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
Line 132: | Line 132: | ||
| [[French language|French]] | | [[French language|French]] | ||
| fr | | fr | ||
|| {{[[:fr:Template: | || {{[[:fr:Template:lien AdQ|lien AdQ]]|en}} | ||
|- | |- | ||
| [[Irish language|Irish]] | | [[Irish language|Irish]] | ||
Line 286: | Line 286: | ||
|| {{[[:sh:Template:Link FA|Link FA]]|en}} | || {{[[:sh:Template:Link FA|Link FA]]|en}} | ||
|- | |- | ||
| [[ | | [[Sarkarverse:Simple English Sarkarverse|Simple English]] | ||
| simple | | simple | ||
|| {{[[:simple:Template:Link FA|Link FA]]|en}} | || {{[[:simple:Template:Link FA|Link FA]]|en}} | ||
Line 377: | Line 377: | ||
<includeonly> | <includeonly> | ||
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS. --> | <!-- PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS. --> | ||
[[Category: | [[Category:Sarkarverse featured content templates|{{PAGENAME}}]] | ||
[[Category: | [[Category:Sarkarverse formatting and function templates|{{PAGENAME}}]] | ||
<!-- PLEASE ADD INTERWIKIS BELOW THIS LINE, THANKS. --> | <!-- PLEASE ADD INTERWIKIS BELOW THIS LINE, THANKS. --> | ||
</includeonly> | </includeonly> |
Latest revision as of 15:00, 17 December 2013
This is a documentation subpage for Template:Link FA. It contains usage information, categories and other content that is not part of the original template page. |
This template is designed to replace the classical list-item marker of an interlanguage link (square) by a gold star () to indicate that the article of this Sarkarverse’s language edition was promoted to the Featured Article status (for more details about these articles and the criteria associated to their status, see Sarkarverse:Featured articles in other languages).
Usage
To use this template, add {{Link FA|xx}}, where xx is the language code of the Sarkarverse on which it has been featured. This template does not replace the classical interwiki; you have to use them both to get an interlanguage link with a gold star.
Example
Suppose an article is featured on the German Sarkarverse. Then at the end of the English article (or before the list of interlanguage links, if present), simply add {{Link FA|de}} in the wikitext. The star will appear next to the link to the German article.
Mechanism
It works by creating an invisible span with id="interwiki-lang-fa"
where lang is a specific language code. Function LinkFA()
in Mediawiki:Common.js recognizes this invisible span and adds a special FA
class to the corresponding interwiki link. All interwiki links with FA
class are given a special bullet with CSS rule in Mediawiki:Monobook.css.
- this template;
- the
LinkFA()
function in Mediawiki:Common.js; - the
li.FA
code block in Mediawiki:Monobook.css; - the image (only for non-Wikimedia wikis).
From another language edition
Many other language editions also have their equivalent template. So after an article has become featured on the English Sarkarverse, you can add a starred link in the other language projects by using these tags in the respective wikis:
See also
- {{Link GA}}
- This list is incomplete; you can help by expanding it.