Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:LanguageSelector/link: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
{{#if: {{{1|}}}
{{#if:{{{1|}}}
| <span id="LanguageSelector-{{lc:{{{1|}}}}}-{{#switch: {{lc:{{{2|}}}}}
| <bdi id="LanguageSelector-{{lc:{{{1|}}}}}" class="plainlinks" style="white-space:nowrap">[{{UselangLink|bare=1|1={{lc:{{{1|}}}}}|action={{{action|}}}}} {{#switch:{{#switch:{{lc:{{{2|}}}}}|only={{#if:{{{3|}}}|i|c}}|code={{#if:{{{3|}}}|i}}c|yes|y|1={{#if:{{{3|}}}|i}}n|#default=n}}
  |only = {{#if: {{{3|}}} | Icon | Code }}
   |c=<bdi style="font-size:88%" lang="{{Int:Lang}}" title="{{#language:{{lc:{{{1|}}}}}|{{Int:Lang}}}}">&#91;<tt>{{lc:{{{1|}}}}}</tt>&#93;</bdi>
  |code = {{#if: {{{3|}}} | Icon }}Code
   |ic=<bdi style="font-size:88%" lang="{{Int:Lang}}" title="{{#language:{{lc:{{{1|}}}}}|{{Int:Lang}}}}"><bdi lang="{{lc:{{{1|}}}}}">[[File:{{{3|}}}|x13px|border|top|link=|alt={{#language:{{lc:{{{1|}}}}}}}]]</bdi>&#x202F;&#91;<tt>{{lc:{{{1|}}}}}</tt>&#93;</bdi>
  |yes|y|1 = {{#if: {{{3|}}} | Icon }}Name
   |i=<bdi style="font-size:88%" lang="{{Int:Lang}}" title="{{#language:{{lc:{{{1|}}}}}|{{Int:Lang}}}}"><bdi lang="{{lc:{{{1|}}}}}">[[File:{{{3|}}}|x13px|border|top|link=|alt={{#language:{{lc:{{{1|}}}}}}}]]</bdi></bdi>
  |#default = Name
   |in=<bdi lang="{{Int:Lang}}" title="{{#language:{{lc:{{{1|}}}}}|{{Int:Lang}}}}"><bdi lang="{{lc:{{{1|}}}}}">[[File:{{{3|}}}|x13px|border|top|link=|alt={{#language:{{lc:{{{1|}}}}}}}]]</bdi>&#x202F;<bdi lang="{{lc:{{{1|}}}}}">{{#language:{{lc:{{{1|}}}}}}}</bdi></bdi>
  }}" class="plainlinks" style="white-space:nowrap">[{{UselangLink|bare=1|1={{lc:{{{1|}}}}}|action={{{action|}}}}} {{#switch:
   |n=<bdi lang="{{Int:Lang}}" title="{{#language:{{lc:{{{1|}}}}}|{{Int:Lang}}}}"><bdi lang="{{lc:{{{1|}}}}}">{{#language:{{lc:{{{1|}}}}}}}</bdi></bdi>
    {{#switch: {{lc:{{{2|}}}}}
   }}]</bdi>
    |only = {{#if: {{{3|}}} | i | c }}
    |code = {{#if: {{{3|}}} | i }}c
    |yes|y|1 = {{#if: {{{3|}}} | i }}n
    |#default = n
    }}
   |c = <small style="font-size:88%" lang="{{Int:Lang}}" title="{{#language:{{lc:{{{1|}}}}}|{{Int:Lang}}}}">&#91;<tt>{{lc:{{{1|}}}}}</tt>&#93;</small>
   |ic = <small style="font-size:88%" lang="{{Int:Lang}}" title="{{#language:{{lc:{{{1|}}}}}|{{Int:Lang}}}}"><bdi lang="{{lc:{{{1|}}}}}">[[File:{{{3|}}}|x13px|border|link=|alt={{#language:{{lc:{{{1|}}}}}}}]]</bdi>&#x202F;&#91;<tt>{{lc:{{{1|}}}}}</tt>&#93;</small>
   |i = <small style="font-size:88%" lang="{{Int:Lang}}" title="{{#language:{{lc:{{{1|}}}}}|{{Int:Lang}}}}"><bdi lang="{{lc:{{{1|}}}}}">[[File:{{{3|}}}|x13px|border|link=|alt={{#language:{{lc:{{{1|}}}}}}}]]</bdi></small>
   |in = <span lang="{{Int:Lang}}" title="{{#language:{{lc:{{{1|}}}}}|{{Int:Lang}}}}"><bdi lang="{{lc:{{{1|}}}}}">[[File:{{{3|}}}|x13px|border|link=|alt={{#language:{{lc:{{{1|}}}}}}}]]</bdi>&#x202F;<bdi lang="{{lc:{{{1|}}}}}">{{#language:{{lc:{{{1|}}}}}}}</bdi></span>
   |n = <span lang="{{Int:Lang}}" title="{{#language:{{lc:{{{1|}}}}}|{{Int:Lang}}}}"><bdi lang="{{lc:{{{1|}}}}}">{{#language:{{lc:{{{1|}}}}}}}</bdi></span>
   }}]</span>
}}<noinclude>{{Documentation}}</noinclude><noinclude>
}}<noinclude>{{Documentation}}</noinclude><noinclude>


[[Category:Miscellaneous subtemplates]]
[[Category:Miscellaneous subtemplates]]
</noinclude>
</noinclude>

Revision as of 04:56, 13 July 2020

Template documentation[ view · edit · history · purge ]

Displays a link to the current page in displayed in another specified language.

Usage

{{LanguageSelector/link |1= |2= |3= |action= }}

Template parameters

ParameterDescriptionDefaultStatus
1language code, required to display any actual linkemptyoptional
2what to display within the link:
  • code : display only the language code
  • yes : display the language name and the language icon (if any)
  • only : display only the language icon
  • otherwise : display only the language name
emptyoptional
3icon file name (required when parameter 2 is yes or only)emptyoptional
actionoptional action (such as "edit") to include in the target URL. Passed through to {{UselangLink}}emptyoptional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: no user group specified

Relies on:
{{UselangLink}}

Examples

Code Renders as
"{{LanguageSelector/link|fr}}" "français"
"{{LanguageSelector/link|fr|code}}" "[fr]"
"{{LanguageSelector/link|fr|yes|Flag of La Francophonie.svg}}" "françaisfrançais"
"{{LanguageSelector/link|fr|only|Flag of La Francophonie.svg}}" "français"
"{{LanguageSelector/link}}" ""



Cookies help us deliver our services. By using our services, you agree to our use of cookies.