Template:Translations: Difference between revisions
pass translated=ORIGINAL to PAGENAME/translationes "template" |
mNo edit summary |
||
| (12 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
<div style="border-top:1px solid #888888; border-bottom:1px solid #888888; margin:0px;"> | <div class="linkgroup" style="border-top:1px solid #888888; border-bottom:1px solid #888888; margin:0px; padding-left:0.7em; background-color:#d0e6f9;"> | ||
<table width="100%" cellpadding="0" cellspacing="0" style="background-color:#d0e6f9; color:grey"> | <table width="100%" cellpadding="0" cellspacing="0" style="background-color:#d0e6f9; color:grey"> | ||
<tr> | <tr> | ||
<td> | <td>{{{1|{{#ifexist: {{NAMESPACE}}:{{PAGENAME}}/translations |{{{{NAMESPACE}}:{{PAGENAME}}/translations|translated=ORIGINAL}}|{{translations/instructions}} }}}}}</td> | ||
<td align="right" style="font-size:80%">[[ | <td align="right" style="font-size:80%">[[Translation Team/Wiki Translation|HowTo]] '''[ID# {{REVISIONID}}]''' {{#if:{{{1|}}}|| <span class="plainlinks">[{{fullurl:{{NAMESPACE}}:{{PAGENAME}}/translations|action=edit}} <tt>'''+/-'''</tt>] </span>}} | ||
</div><includeonly>[[Category:Translated | </td> | ||
</tr> | |||
</table> | |||
</div> | |||
<includeonly>[[Category:Translated]]</includeonly> | |||
<noinclude><!-- | <noinclude><!-- | ||
| Line 19: | Line 23: | ||
== Usage == | == Usage == | ||
If no argument is provided, the sub-page <tt>currentPage/translations</tt> will be included. This page should use the {{ | If no argument is provided, the sub-page <tt>currentPage/translations</tt> will be included. This page should use the <nowiki>{{Translationlist}}</nowiki> template to create a list of available translations. For instance, putting <nowiki>{{Translationlist|es|pt|origlang=en}}</nowiki> will result in a list like: | ||
english | español | português | english | español | português | ||
| Line 25: | Line 29: | ||
== Not recommended usage == | == Not recommended usage == | ||
If an argument is provided, it should be a fully set of wiki links with their display. Unfortunately, '|' is used as parameter | If an argument is provided, it should be a fully set of wiki links with their display. Unfortunately, '|' is used as parameter delimiter and thus needs to be escaped. A solution is to use &#124; | or some other (discrete) separator (i.e.: , - /) | ||
<nowiki>{{Translations | <nowiki>{{Translations | ||
| [[ | | [[Sugar Labs|english]] &#124; [[Azúcar Labs|español]] - [[Açúcar Labs|português]] / [[糖 实验室|中文]]}}</nowiki> | ||
{{Translations | {{Translations | ||
| [[ | | [[Sugar Labs|english]] | [[Azúcar Labs|español]] - [[Açúcar Labs|português]] / [[糖 实验室/lang-zh|中文]]}} | ||
</noinclude> | </noinclude> | ||