Template:Sandbox: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (removed reference to (obsolete) Translated Page template)
(testing the nesting of templates)
Line 8: Line 8:
[[Category:Template]]
[[Category:Template]]
</noinclude>
</noinclude>
{{Translation | lang = {{{lang}}} | source = {{{source}}} | version = {{{version}}}
<div style="border-top:1px solid #888888; border-bottom:1px solid #888888; margin:0px;">
| source_display = {{{source_display}}} | version_display = {{{version_display}}} | diff_display = {{{diff_display}}}}}
{| width="100%" cellpadding="0" cellspacing="0" style="background-color:#0093d0; color:white"
<includeonly>
|-
[[Category:PO files|{{{lang}}}]] [[Category:Laptop.org|{{{lang}}}]]
|width=75% align=left | &nbsp;&nbsp;<font size="1">Translation of '''[[{{{source}}}|{{{source_display|{{{source}}}}}}]]'''</font>
</includeonly>
|width=25% align=right | <font size="1">'''[{{fullurl:{{{source}}}|oldid={{{version}}}}} {{{version_display|original}}}]'''</font>&nbsp;&nbsp;
<noinclude>
|-
!width=75% align=left | &nbsp;&nbsp;{{:{{{source}}}/translations}}
|width=25% align=right | <font size="1">'''[{{fullurl:{{{source}}}|diff=current&amp;oldid={{{version}}}}} {{{diff_display|diff}}}]'''</font>&nbsp;&nbsp;
|-
|}
</div>category:Translations lang-{{{lang}}}<noinclude>


: <big>'''Trying to simplify the <strike>Template:Translated Page</strike>'''</big>
: <big>'''Trying to nest template Template:Translation<strike></strike>'''</big>

{{fullurl:The OLPC Wiki|oldid=30534}}

{{fullurl:The OLPC Wiki|diff=30630&amp;oldid=30534}}


{{localurl:The OLPC Wiki}}

{{localurl:The OLPC Wiki|action=edit}}


== usage ==
== usage ==

Revision as of 15:22, 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}}}|{{{source_display}}}]] [{{fullurl:{{{source}}}|oldid={{{version}}}&redirect=no}} {{{version_display}}}]  
  {{:{{{source}}}/translations|translated={{{lang}}}}}   [{{fullurl:{{{source}}}/translations|action=edit}} +/-] [{{fullurl:{{{source}}}|diff=current&oldid={{{version}}}}} {{{diff_display}}}]  

[[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 {{{source_display}}} {{{version_display}}}  
   english | عربيپښتوбългарскиdeutschespañolfrançaiskreyòl ayisyenitaliano日本語한국어монголBahasa Melayuनेपालीnorskportuguêsromânăрусскийkinyarwandatürkçe中文繁體中文   +/- {{{diff_display}}}  


{{ 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 | عربيپښتوбългарскиdeutschespañolfrançaiskreyòl ayisyenitaliano日本語한국어монголBahasa Melayuनेपालीnorskportuguêsromânăрусскийkinyarwandatürkçe中文繁體中文   +/- últimos cambios