Template:Sandbox: Difference between revisions
Jump to navigation
Jump to search
(testing some idea for Template:Translation) |
(trying to drop ''source'' and adding a status categorization) |
||
Line 13: | Line 13: | ||
{| width="100%" cellpadding="0" cellspacing="0" style="background-color:#3b9fca; color:white" |
{| width="100%" cellpadding="0" cellspacing="0" style="background-color:#3b9fca; color:white" |
||
|- |
|- |
||
| <!-- width=75% --> align=left | <font size="1">{{:Template:Translation/translation of/lang-{{{lang}}}}} '''[[{{{source}}}|{{{source_display|{{{source}}}}}}]]'''</font> |
| <!-- width=75% --> align=left | <font size="1">{{:Template:Translation/translation of/lang-{{{lang}}}}} '''[[{{{source|{{#rel2abs: .. }}}}}|{{{source_display|{{{source|{{#rel2abs: .. }}}}}}}}]]'''</font> |
||
| <!-- width=25% --> align=right | <font size="1">'''<span class="plainlinks">[{{fullurl:{{{source}}}|oldid={{{version}}}}} {{{version_display|{{:Template:Translation/original/lang-{{{lang}}}}}}}}]</span>'''</font> |
| <!-- width=25% --> align=right | <font size="1">'''<span class="plainlinks">[{{fullurl:{{{source}}}|oldid={{{version}}}}} {{{version_display|{{:Template:Translation/original/lang-{{{lang}}}}}}}}]</span>'''</font> |
||
|- |
|- |
||
Line 20: | Line 20: | ||
|- |
|- |
||
|} |
|} |
||
[[Category:Translations {{ #switch: {{lc:{{{status|wanted}}}}} |
|||
| new = to review |
|||
| old = to sync |
|||
| ok = finished |
|||
| ongoing = ongoing |
|||
| wanted = wanted |
|||
| wanted |
|||
}} lang-{{{lang}}}|{{PAGENAME}}]] |
|||
</div><includeonly>[[Category:Translations lang-{{{lang}}}|{{PAGENAME}}]]</includeonly><noinclude> |
|||
== Usage == |
== Usage == |
||
Line 26: | Line 34: | ||
<nowiki>{{</nowiki> Translation |
<nowiki>{{</nowiki> Translation |
||
| lang = <-- 2/3 character language-code of the translation—ie: <tt>en, es, ...</tt> --> |
| lang = <-- 2/3 character language-code of the translation—ie: <tt>en, es, ...</tt> --> |
||
⚫ | |||
| version = <-- Version ID# of the edition being translated or last updated --> |
| version = <-- Version ID# of the edition being translated or last updated --> |
||
| status = <-- Status of the translation: |
|||
new = brand new (finished) translation, which would need to be ''reviewed'' |
|||
old = the source has been modified, so it needs to be ''sync'ed'' |
|||
ok = the page has been reviewed and 'approved' (sort of speaking) |
|||
ongoing = the translation is not yet finished, and somebody is actively working on it |
|||
wanted = unfinished and nobody is actively working on it --> |
|||
⚫ | |||
default = the parent-page (as translations are usually xyzzy/lang-xx) --> |
|||
| ''source_display'' = <-- OPTIONAL - display string to the source link above |
| ''source_display'' = <-- OPTIONAL - display string to the source link above |
||
default = value of ''source'' --> |
default = value of ''source'' --> |
Revision as of 13:36, 23 August 2007
Many times you may want to just 'test' an idea for a template, I haven't found a sensible way of fully testing templates by themselves (as they will not get included in the edited version, but rather the saved version).
The idea of this {{Sandbox}} is to have that, a simple testing zone that will not interfere with others and avoid leaving a trail of botched attempts.
Please leave this comment/text for others to read. See Also http://meta.wikimedia.org/wiki/Help:Template
- Testing: {{Translation}}
{{:Template:Translation/translation of/lang-{{{lang}}}}} [[|]] | [{{fullurl:{{{source}}}|oldid={{{version}}}}} {{:Template:Translation/original/lang-{{{lang}}}}}] |
{{:{{{source}}}/translations}} | [{{fullurl:{{{source}}}|diff=current&oldid={{{version}}}}} {{:Template:Translation/changes/lang-{{{lang}}}}}] |
[[Category:Translations wanted lang-{{{lang}}}|Sandbox]]
Usage
{{ Translation | lang = <-- 2/3 character language-code of the translation—ie: en, es, ... --> | version = <-- Version ID# of the edition being translated or last updated --> | status = <-- Status of the translation: new = brand new (finished) translation, which would need to be reviewed old = the source has been modified, so it needs to be sync'ed ok = the page has been reviewed and 'approved' (sort of speaking) ongoing = the translation is not yet finished, and somebody is actively working on it wanted = unfinished and nobody is actively working on it --> | source = <-- OPTIONAL - Source page name—ie: "The OLPC Wiki" (sans quotes) default = the parent-page (as translations are usually xyzzy/lang-xx) --> | source_display = <-- OPTIONAL - display string to the source link above default = value of source --> | version_display = <-- OPTIONAL - display string for the translated version link default = "original" --> | diff_display = <-- OPTIONAL - display string for the differences to current link default = "diff" --> }}
- NOTE
- the version parameter is the number displayed in the source page in the [ID# xxxxx] of the language-navigation blue bar. Keeping this number updated to the LAST version you 'translated' or 'updated' will ease updating the page when following the diff link in your page, as it will show those changes in the original from your last update.
Samples
{{ Translation | lang = es | source = The OLPC Wiki | version = 30534 }}
Traducción de The OLPC Wiki | original |
english | عربي | پښتو | български | deutsch | español | français | kreyòl ayisyen | italiano | 日本語 | 한국어 | монгол | Bahasa Melayu | नेपाली | norsk | português | română | русский | kinyarwanda | türkçe | 中文 | 繁體中文 +/- | cambios |
{{ Translation | lang = es | source = The OLPC Wiki | version = 30534 | source_display = original | version_display = versión traducida | diff_display = últimos cambios }}
Traducción de original | versión traducida |
english | عربي | پښتو | български | deutsch | español | français | kreyòl ayisyen | italiano | 日本語 | 한국어 | монгол | Bahasa Melayu | नेपाली | norsk | português | română | русский | kinyarwanda | türkçe | 中文 | 繁體中文 +/- | últimos cambios |