English language version

User:Harrystein/sandbox/template/alt-lang: Difference between revisions

From Leftypedia
Jump to navigation Jump to search
(Created page with "{{Top icon | imagename = Open-red-book.png | wikilink = {{{2|}}} | lang = {{ucfirst:{{{1|[language name missing!]}}}}} | alt = English language version | description = This article is also available in {{{lang}}}. Click to see that version. | maincat = Articles in {{{lang}}} | 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...")
 
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 5: Line 5:
| 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 {{{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.
}}<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
To use, simply put the following:


  <nowiki>{{alt-lang|[language]|[target page title or location]}}</nowiki>
  <nowiki>{{alt-lang|</nowiki>{{red|[''language'']}}|{{blue|[''target page title or location'']}}<nowiki>}}</nowiki>


at the top of the page.</noinclude><includeonly>[[category:original templates]][[Category:Articles in non-English languages|*]]</includeonly>
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 with non-English versions]]|[[Category:Articles in non-English languages]]}}|[[category:articles using the alt-lang template incorrectly]]}}</includeonly>

Latest revision as of 18:13, 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]}}

at the top of the page.