Template:LanguageSelector/link: Difference between revisions
Template page
More actions
m alt= within an image link does not display the needed tooltip when icon is alone |
m Tagging this template as uncategorized. |
||
| Line 3: | Line 3: | ||
|yes|only={{#if:{{{3|}}}|<span id="LanguageSelector-{{{1|}}}" {{#ifeq:{{{2|}}}|yes|style="display:none"}}>[[File:{{{3|}}}|20x13px|link={{UselangLink|{{{1|}}}|bare=1|action={{{action|}}}}}|{{#ifeq:{{{2|}}}|yes|alt=}}{{#language:{{{1|}}}}}]]{{#ifeq:{{{2|}}}|yes| }}</span>}}{{#ifeq:{{{2|}}}|yes|{{UselangLink|{{{1}}}|action={{{action|}}}}}}} | |yes|only={{#if:{{{3|}}}|<span id="LanguageSelector-{{{1|}}}" {{#ifeq:{{{2|}}}|yes|style="display:none"}}>[[File:{{{3|}}}|20x13px|link={{UselangLink|{{{1|}}}|bare=1|action={{{action|}}}}}|{{#ifeq:{{{2|}}}|yes|alt=}}{{#language:{{{1|}}}}}]]{{#ifeq:{{{2|}}}|yes| }}</span>}}{{#ifeq:{{{2|}}}|yes|{{UselangLink|{{{1}}}|action={{{action|}}}}}}} | ||
|#default={{UselangLink|{{{1|}}}|action={{{action|}}}}} | |#default={{UselangLink|{{{1|}}}|action={{{action|}}}}} | ||
}}}}<noinclude>{{documentation}}</noinclude> | }}}}<noinclude>{{documentation}}</noinclude><noinclude> | ||
{{Uncategorized|year=2011|month=February|day=27}} | |||
</noinclude> | |||
Revision as of 15:04, 27 February 2011
This documentation is transcluded from Template:LanguageSelector/link/doc.
Displays a link to the current page in displayed in another specified language.
Usage
{{LanguageSelector/link |1= |2= |3= |action= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | language code, required to display any actual link | empty | optional | |
2 | what to display within the link:
| empty | optional | |
3 | icon file name (required when parameter 2 is yes or only) | empty | optional | |
action | optional action (such as "edit") to include in the target URL. Passed through to {{UselangLink}} | empty | optional | |
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çais" |
"{{LanguageSelector/link|fr|only|Flag of La Francophonie.svg}}"
|
" |
"{{LanguageSelector/link}}"
|
"" |