Template:Sandbox: Difference between revisions
Jump to navigation
Jump to search
(testing the nesting of templates) |
m (tweaking) |
||
Line 9: | Line 9: | ||
</noinclude> |
</noinclude> |
||
{{Translation | lang = {{{lang}}} | source = {{{source}}} | version = {{{version}}} |
{{Translation | lang = {{{lang}}} | source = {{{source}}} | version = {{{version}}} |
||
| source_display = {{{source_display}}} | version_display = {{{version_display}}} | diff_display = {{{diff_display}}}}} |
| source_display = {{{source_display|}}} | version_display = {{{version_display|}}} | diff_display = {{{diff_display|}}}}} |
||
<includeonly> |
<includeonly> |
||
[[Category:PO files|{{{lang}}}]] [[Category:Laptop.org|{{{lang}}}]] |
[[Category:PO files|{{{lang}}}]] [[Category:Laptop.org|{{{lang}}}]] |
||
Category:PO files|{{{lang}}} Category:Laptop.org|{{{lang}}} |
|||
</includeonly> |
</includeonly> |
||
<noinclude> |
<noinclude> |
Revision as of 15:24, 5 April 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 Template: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
{{:Template:Translation/translation of/lang-{{{lang}}}}} [[{{{source}}}|]] | [{{fullurl:{{{source}}}|oldid={{{version}}}&redirect=no}} ] |
{{:{{{source}}}/translations|translated={{{lang}}}}} [{{fullurl:{{{source}}}/translations|action=edit}} +/-] | [{{fullurl:{{{source}}}|diff=current&oldid={{{version}}}}} ] |
[[Category:Translations lang-{{{lang}}}]]
- Trying to nest template Template:Translation
usage
{{ Sandbox | lang = <-- 2/3 character language-code of the translation—ie: en, es, ... --> | source = <-- Source page name—ie: "The OLPC Wiki" (sans quotes) --> | version = <-- Version ID# of the edition being translated or last updated --> | source_display = <-- OPTIONAL - a string to display the source link above default = value of source --> | version_display = <-- OPTIONAL - a string to display for the link to the version translated default = "original" --> | diff_display = <-- OPTIONAL - string to display the link to the version translated and current default = "diff" --> }}
samples
{{ Sandbox | lang = es | source = The OLPC Wiki | version = 30534 }}
Traducción de [[The OLPC Wiki|]] | [1] |
english | عربي | پښتو | български | deutsch | español | français | kreyòl ayisyen | italiano | 日本語 | 한국어 | монгол | Bahasa Melayu | नेपाली | norsk | português | română | русский | kinyarwanda | türkçe | 中文 | 繁體中文 +/- | [2] |
Category:PO files|es Category:Laptop.org|es
{{ Sandbox | 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 |
Category:PO files|es Category:Laptop.org|es