Template:Include PO: Difference between revisions

From OLPC
Jump to navigation Jump to search
(hide arrow for what is really a local link and avoided hardcoded paths)
m (missing /font)
 
Line 5: Line 5:
|width=25% align=center | <font size="1">[[PO-laptop.org-{{{section}}}-{{{source_lang|en-US}}}|current {{{source_lang|english}}}]]</font>
|width=25% align=center | <font size="1">[[PO-laptop.org-{{{section}}}-{{{source_lang|en-US}}}|current {{{source_lang|english}}}]]</font>
|width=25% align=right | <font size="1">
|width=25% align=right | <font size="1">
<span class="plainlinks">[[{{fullurl:PO-laptop.org-{{{section}}}-{{{lang}}}|action=edit}} <tt>edit</tt>]]</span>&nbsp;&nbsp;
<span class="plainlinks">[[{{fullurl:PO-laptop.org-{{{section}}}-{{{lang}}}|action=edit}} <tt>edit</tt>]]</span></font>&nbsp;&nbsp;
|}</div>{{:PO-laptop.org-{{{section}}}-{{{lang}}}}}
|}</div>{{:PO-laptop.org-{{{section}}}-{{{lang}}}}}
<noinclude>
<noinclude>

Latest revision as of 13:29, 4 April 2007

  Included page/section [[PO-laptop.org-{{{section}}}-{{{lang}}}]] [[PO-laptop.org-{{{section}}}-en-US|current english]]

[[{{fullurl:PO-laptop.org-{{{section}}}-{{{lang}}}|action=edit}} edit]]  

{{:PO-laptop.org-{{{section}}}-{{{lang}}}}}

This template allows a simple way to include a given PO file of the new laptop.org site in the page. It provides links to:

  • the actual PO file translation of the section
  • the english original (by default) section
  • enter the edit-mode of the translated section

These links are helper links, nothing more.

Usage

{{Include PO
    lang    =     <!-- language code ie: en-US, es, kr, pt, zh-CN, etc) -->
    section =     <!-- section to include (top-level, vision, laptop, foundation, bio, children, or auxiliary) -->
    source_lang = <!-- OPTIONAL, by default the source language is en-US -->
}}

Examples

{{Include PO | lang = zh-CN | section = laptop }}
{{Include PO | lang = pt | section = bio  | source_lang = es}}