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/doc: Difference between revisions

Template page
mNo edit summary
mNo edit summary
Line 27: Line 27:
|usage-notes=
|usage-notes=
|type=
|type=
|example=fr
|example=
|i18n-method=
|i18n-method=
|i18n-desc=
|i18n-desc=
Line 36: Line 36:
|relieson={{tl|UselangLink}}
|relieson={{tl|UselangLink}}
}}
}}
 
== Examples ==
{| class="wikitable"
|-
! Code !! Renders as
|-
| <code>"<nowiki>{{</nowiki>{{<noinclude>BASE</noinclude>PAGENAME}} |fr|code<nowiki>}}</nowiki>"</code>
| "{{ {{<noinclude>BASE</noinclude>PAGENAME}}|fr|code}}"
|-
| <code>"<nowiki>{{</nowiki>{{<noinclude>BASE</noinclude>PAGENAME}} |fr|yes<nowiki>}}</nowiki>"</code>
| "{{ {{<noinclude>BASE</noinclude>PAGENAME}}|fr|yes}}"
|-
| <code>"<nowiki>{{</nowiki>{{<noinclude>BASE</noinclude>PAGENAME}} |fr|icon<nowiki>}}</nowiki>"</code>
| "{{ {{<noinclude>BASE</noinclude>PAGENAME}}|fr|icon}}"
|-
| <code>"<nowiki>{{</nowiki>{{<noinclude>BASE</noinclude>PAGENAME}}<nowiki>}}</nowiki>"</code>
| "{{ {{<noinclude>BASE</noinclude>PAGENAME}} }}"
|}
{{DEFAULTSORT:LanguageSelector/link}}
{{DEFAULTSORT:LanguageSelector/link}}
<includeonly>
<includeonly>

Revision as of 05:15, 17 July 2010

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
fr|code}}" "[fr]"
fr|yes}}" "français"
fr|icon}}" "français"
"{{LanguageSelector/link}}" ""


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