Difference between revisions of "Template:L10n/item"
Jump to navigation
Jump to search
m (prettytable wastes less space...) |
(more flexibility) |
||
Line 2: | Line 2: | ||
|- | |- | ||
|[[{{{1|}}}]]{{#vardefine:parent|{{urlencode:{{{1|}}}}}}} | |[[{{{1|}}}]]{{#vardefine:parent|{{urlencode:{{{1|}}}}}}} | ||
|{{#ifexist:{{{1|}}}/fr|[[{{{1|}}}|done]]|{{L10n/create|/fr|{{#var:parent}}}}}} | |{{#ifexist:{{{1|}}}/fr|[[{{{1|}}}|done]]|{{L10n/create|/fr|{{#var:parent}}|{{{2|}}}|alt={{{alt|}}}}}}} | ||
|{{#ifexist:{{{1|}}}/de|[[{{{1|}}}|done]]|{{L10n/create|/de|{{#var:parent}}}}}} | |{{#ifexist:{{{1|}}}/de|[[{{{1|}}}|done]]|{{L10n/create|/de|{{#var:parent}}|{{{2|}}}|alt={{{alt|}}}}}}} | ||
|{{#ifexist:{{{1|}}}/ja|[[{{{1|}}}|done]]|{{L10n/create|/ja|{{#var:parent}}}}}} | |{{#ifexist:{{{1|}}}/ja|[[{{{1|}}}|done]]|{{L10n/create|/ja|{{#var:parent}}|{{{2|}}}|alt={{{alt|}}}}}}} | ||
|{{#ifexist:{{{1|}}}/pt|[[{{{1|}}}|done]]|{{L10n/create|/pt|{{#var:parent}}}}}} | |{{#ifexist:{{{1|}}}/pt|[[{{{1|}}}|done]]|{{L10n/create|/pt|{{#var:parent}}|{{{2|}}}|alt={{{alt|}}}}}}} | ||
|{{#ifexist:{{{1|}}}/it|[[{{{1|}}}|done]]|{{L10n/create|/it|{{#var:parent}}}}}} | |{{#ifexist:{{{1|}}}/it|[[{{{1|}}}|done]]|{{L10n/create|/it|{{#var:parent}}|{{{2|}}}|alt={{{alt|}}}}}}} | ||
|{{#ifexist:{{{1|}}}/es|[[{{{1|}}}|done]]|{{L10n/create|/es|{{#var:parent}}}}}} | |{{#ifexist:{{{1|}}}/es|[[{{{1|}}}|done]]|{{L10n/create|/es|{{#var:parent}}|{{{2|}}}|alt={{{alt|}}}}}}} | ||
</includeonly></onlyinclude> | </includeonly></onlyinclude> | ||
Supposed to be used in a table environment | Builds links to create localized pages for tier 1 and tier 2 languages. Supposed to be used in a table environment. | ||
{|{{Prettytable}} | |||
|-{{Hl2}} | |||
!Parameter | |||
!Description | |||
!Default | |||
|- | |||
|1 | |||
|Base page title of the parent which is supposed to be cloned. | |||
|Defaults to <code><nowiki>{{FULLPAGENAMEE}}</nowiki></code> | |||
|- | |||
|2 | |||
|Subpagename of the parent which is supposed to be cloned (including the slash <code>/</code>). | |||
|<code>/en</code> | |||
|- | |||
|alt | |||
|Alternate text for the link. | |||
|Click to create. | |||
|} | |||
== Dependencies == | |||
* [[Template:L10n/create]] | |||
== Example == | |||
E.g. | E.g. | ||
{|{{Prettytable}} | {|{{Prettytable}} | ||
Line 21: | Line 44: | ||
! Italian | ! Italian | ||
! Spanish | ! Spanish | ||
{{L10n/item|{{FULLPAGENAME}}}} | {{L10n/item|{{FULLPAGENAME}}|}} | ||
|} | |} | ||
(Please don't actually create these...) | (Please don't actually create these...) |
Revision as of 13:22, 2 March 2010
Builds links to create localized pages for tier 1 and tier 2 languages. Supposed to be used in a table environment.
Parameter | Description | Default |
---|---|---|
1 | Base page title of the parent which is supposed to be cloned. | Defaults to {{FULLPAGENAMEE}}
|
2 | Subpagename of the parent which is supposed to be cloned (including the slash / ).
|
/en
|
alt | Alternate text for the link. | Click to create. |
Dependencies
Example
E.g.
Item | French | German | Japanese | Portuguese | Italian | Spanish |
---|---|---|---|---|---|---|
Template:L10n/item | Click to create. | Click to create. | Click to create. | Click to create. | Click to create. | Click to create. |
(Please don't actually create these...)