Template:Sandbox: Difference between revisions
(testing to embed PO sections) |
(testing to simplify Translated Page template) |
||
Line 10: | Line 10: | ||
<noinclude> |
<noinclude> |
||
: <big>'''Trying to simplify the [[Template:Translated Page]]'''</big> |
|||
: '''Testing auto-embeder of laptop.org PO file sections''' |
|||
</noinclude> |
</noinclude> |
||
Line 16: | Line 16: | ||
{| width="100%" cellpadding="0" cellspacing="0" style="background-color:#0093d0; color:white" |
{| width="100%" cellpadding="0" cellspacing="0" style="background-color:#0093d0; color:white" |
||
|- |
|- |
||
| |
|width=75% align=left | <font size="1">Translation of '''[[{{{page_name}}}|{{{page_display|{{{page_name}}}}}}]]'''</font> |
||
|width=25% align= |
|width=25% align=right | <font size="1">'''[{{{version_http}}} {{{version_display|original}}}]'''</font> |
||
|- style="background:blue" |
|||
|width=25% align=right | <font size="1">[http://wiki.laptop.org/index.php?title=PO-laptop.org-bio-{{{lang}}}&action=edit +/-]</font> |
|||
|width=75% align=left | <font size="1">Translation of '''[[{{{source}}}|{{{source_display|{{{source}}}}}}]]'''</font> |
|||
|}</div>{{:PO-laptop.org-{{{section}}}-{{{lang}}}}} |
|||
|width=25% align=right | <font size="1">'''[{{fullurl:{{{source}}}|oldid={{{version}}}}} {{{version_display|original}}}]'''</font> |
|||
|- |
|||
!width=75% align=left | {{:{{{page_name}}}/translations}} |
|||
|width=25% align=right | <font size="1">'''[{{{diff_http}}} {{{diff_display|diff}}}]'''</font> |
|||
|- style="background:blue" |
|||
!width=75% align=left | {{:{{{source}}}/translations}} |
|||
|width=25% align=right | <font size="1">'''[{{fullurl:{{{source}}}|diff=current&oldid={{{version}}}}} {{{diff_display|diff}}}]'''</font> |
|||
|- |
|||
|} |
|||
</div> |
|||
category:pages translated into {{{lang}}} |
|||
category:pages translated from {{{source_lang}}} |
|||
<noinclude> |
|||
{{fullurl:The OLPC Wiki|oldid=30534}} |
|||
{{fullurl:The OLPC Wiki|diff=30630&oldid=30534}} |
|||
{{localurl:The OLPC Wiki}} |
|||
{{localurl:The OLPC Wiki|action=edit}} |
|||
== usage == |
|||
<nowiki>{{</nowiki> Sandbox |
|||
| source = <-- Source page name—ie: "<tt>The OLPC Wiki</tt>" (sans quotes) --> | source_lang = <-- 2/3 character language-code of the source page—ie: <tt>en, es, ...</tt> --> |
|||
| lang = <-- 2/3 character language-code of the translation --> |
|||
| 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 = "<tt>original</tt>" --> |
|||
| diff_display = <-- OPTIONAL - string to display the link to the version translated and current |
|||
default = "<tt>diff</tt>" --> |
|||
<nowiki>}}</nowiki> |
|||
== samples == |
|||
<nowiki>{{</nowiki> Sandbox | source = The OLPC Wiki | version = 30534 <nowiki>}}</nowiki> |
|||
{{ Sandbox | lang = es | source_lang = en | source = The OLPC Wiki | version = 30534 }} |
|||
</noinclude> |
Revision as of 19:27, 3 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
- Trying to simplify the Template:Translated Page
Translation of [[{{{page_name}}}|{{{page_name}}}]] | [{{{version_http}}} original] |
Translation of [[{{{source}}}|{{{source}}}]] | [{{fullurl:{{{source}}}|oldid={{{version}}}}} original] |
{{:{{{page_name}}}/translations}} | [{{{diff_http}}} diff] |
---|---|
{{:{{{source}}}/translations}} | [{{fullurl:{{{source}}}|diff=current&oldid={{{version}}}}} diff] |
category:pages translated into {{{lang}}}
category:pages translated from {{{source_lang}}}
http://wiki.laptop.org/mediawiki/index.php?title=The_OLPC_Wiki&oldid=30534
http://wiki.laptop.org/mediawiki/index.php?title=The_OLPC_Wiki&diff=30630&oldid=30534
/go/The_OLPC_Wiki
/mediawiki/index.php?title=The_OLPC_Wiki&action=edit
usage
{{ Sandbox | source = <-- Source page name—ie: "The OLPC Wiki" (sans quotes) --> | source_lang = <-- 2/3 character language-code of the source page—ie: en, es, ... --> | lang = <-- 2/3 character language-code of the translation --> | 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 | source = The OLPC Wiki | version = 30534 }}
Translation of [[{{{page_name}}}|{{{page_name}}}]] | [{{{version_http}}} original] |
Translation of The OLPC Wiki | original |
{{:{{{page_name}}}/translations}} | [{{{diff_http}}} diff] |
---|---|
english | عربي | پښتو | български | deutsch | español | français | kreyòl ayisyen | italiano | 日本語 | 한국어 | монгол | Bahasa Melayu | नेपाली | norsk | português | română | русский | kinyarwanda | türkçe | 中文 | 繁體中文 |
diff |
category:pages translated into es
category:pages translated from en