English language version

Template:Alt-lang: Difference between revisions

From Leftypedia
Jump to navigation Jump to search
(Added maincat template, to automatically capitalize {{{lang}}} and add page to such a category.)
Tag: Reverted
mNo edit summary
 
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Top icon
{{Top icon
| imagename    = Open-red-book.png
| imagename    = Open-red-book.png
| wikilink    = {{{show|''Link to the non-English article, e.g. [[Comunismo]]''}}}
| wikilink    = {{{2|}}}
| lang        = {{{show|''What language the non-English article is in, e.g German, Russian, Spanish, etc.''}}}
| lang        = {{ucfirst:{{{1|[language name missing!]}}}}}
| alt          = English language version
| alt          = English language version
| description  = This article is also available in {{{lang}}}. Click to see that version.
| description  = This article is also available in {{{lang}}}. Click to see that version.
| maincat     = Articles in {{ucfirst:{{{lang}}}}}
| cat     = Articles in test category
| width        = 30
| height      = 30
| id          = open-red-book
| id          = open-red-book
}}
}}<noinclude>This template is designed to create a small icon at the top of the page which directly links to alternate languages available.
 
To use, simply put the following:
 
<nowiki>{{ alt-lang |</nowiki> {{red|[''language'']}} | {{blue|[''target page title or location'']}} | {{green|[''current page language, if not English (optional)'']}} <nowiki>}}</nowiki>
 
at the top of the page.[[category:original templates]][[Category:Articles in non-English languages|*]]</noinclude><includeonly>{{#if:{{{1|}}}|{{#ifeq:english|{{lc:{{{1|}}}}}|[[Category:Articles in non-English languages]]{{#if:{{{3|}}}|[[category:articles in {{ucfirst:{{{3|]}}}}}]]|}}|[[Category:articles with non-English versions]]}}|[[category:articles using the alt-lang template incorrectly]]}}</includeonly>

Latest revision as of 18:24, 25 April 2024

This template is designed to create a small icon at the top of the page which directly links to alternate languages available.

To use, simply put the following:

{{ alt-lang | [language] | [target page title or location] | [current page language, if not English (optional)] }}

at the top of the page.