Template:Hig-nav-lang: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Reverted edits by 59.95.246.6 (Talk); changed back to last version by Xavi) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<div style="border-top:1px solid #888888; border-bottom:1px solid #888888; margin:0px;"> |
|||
{| width="100%" cellpadding="0" cellspacing="0" |
{| width="100%" cellpadding="0" cellspacing="0" |
||
|- |
|- |
||
|width=25% align=left bgcolor=#C3D9FF|← '''[[OLPC Human Interface Guidelines/{{{prev}}}/lang-{{{lang}}}|{{{ |
|width=25% align=left bgcolor=#C3D9FF|← '''[[OLPC Human Interface Guidelines/{{{prev}}}/lang-{{{lang}}}|{{:OLPC Human Interface Guidelines/{{{prev}}}/lang-{{{lang}}}/title}}]]''' |
||
|width=50% align=center bgcolor=#C3D9FF|'''[[OLPC Human Interface Guidelines/{{{curr}}}/lang-{{{lang}}}|{{{ |
|width=50% align=center bgcolor=#C3D9FF|'''[[OLPC Human Interface Guidelines/{{{curr}}}/lang-{{{lang}}}|{{:OLPC Human Interface Guidelines/{{{curr}}}/lang-{{{lang}}}/title}}]] [[{{NAMESPACE}} talk:OLPC Human Interface Guidelines/{{{curr}}}/lang-{{{lang}}}|<font color="white"><b>(discussion)</b></font>]]''' |
||
|width=25% align=right bgcolor=#C3D9FF| '''[[OLPC Human Interface Guidelines/{{{next}}}/lang-{{{lang}}}|{{{ |
|width=25% align=right bgcolor=#C3D9FF| '''[[OLPC Human Interface Guidelines/{{{next}}}/lang-{{{lang}}}|{{:OLPC Human Interface Guidelines/{{{next}}}/lang-{{{lang}}}/title}}]]''' → |
||
|} |
|} |
||
</div><noinclude>[[Category:Template]] |
|||
</div> |
|||
The 'normal' [[Template:hig-nav]] assumes that all chapters are sub-pages of [[OLPC Human Interface Guidelines]]. |
|||
This modification assumes not only that, but adds two more things: |
|||
# Translated chapters are sub-pages of the original chapter, and labeled ''.../lang-xx'' |
|||
# The title of the chapters are are themselves a sub-page of the translated chapter's sub-page: ''.../lang-xx/title'' |
|||
The purpose of this is that changing the ''translation'' of a chapter's name as simple as changing the contents of the title page (ie: .../lang-xx/title) and all navigation bars and the table of contents remains consistent. |
|||
So a 'typical' structure would be: |
|||
* OLPC Human Interface Guidelines |
|||
** /aChapterName - ''the original chapter in english'' |
|||
*** /lang-xx - ''the translation of the chapter into language 'xx''' |
|||
**** /title - ''the translated title of the previous chapter into language 'xx''' |
|||
** /anotherChapterName - ''another original chapter in english'' |
|||
*** /lang-xx - ''the translation of another chapter into language 'xx''' |
|||
**** /title - ''the translated title of another chapter into language 'xx''' |
|||
== Usage == |
|||
Same structure as the [[Template:hig-nav]] with the addition of an extra parameter "<tt>| lang=xx</tt>" where ''xx'' should be replaced by a standard language identificacion (ie: es, fr, etc.) |
|||
</noinclude> |
Latest revision as of 20:14, 17 November 2007
← [[OLPC Human Interface Guidelines/{{{prev}}}/lang-{{{lang}}}|{{:OLPC Human Interface Guidelines/{{{prev}}}/lang-{{{lang}}}/title}}]] | [[OLPC Human Interface Guidelines/{{{curr}}}/lang-{{{lang}}}|{{:OLPC Human Interface Guidelines/{{{curr}}}/lang-{{{lang}}}/title}}]] [[Template talk:OLPC Human Interface Guidelines/{{{curr}}}/lang-{{{lang}}}|(discussion)]] | [[OLPC Human Interface Guidelines/{{{next}}}/lang-{{{lang}}}|{{:OLPC Human Interface Guidelines/{{{next}}}/lang-{{{lang}}}/title}}]] → |
The 'normal' Template:hig-nav assumes that all chapters are sub-pages of OLPC Human Interface Guidelines.
This modification assumes not only that, but adds two more things:
- Translated chapters are sub-pages of the original chapter, and labeled .../lang-xx
- The title of the chapters are are themselves a sub-page of the translated chapter's sub-page: .../lang-xx/title
The purpose of this is that changing the translation of a chapter's name as simple as changing the contents of the title page (ie: .../lang-xx/title) and all navigation bars and the table of contents remains consistent.
So a 'typical' structure would be:
- OLPC Human Interface Guidelines
- /aChapterName - the original chapter in english
- /lang-xx - the translation of the chapter into language 'xx'
- /title - the translated title of the previous chapter into language 'xx'
- /lang-xx - the translation of the chapter into language 'xx'
- /anotherChapterName - another original chapter in english
- /lang-xx - the translation of another chapter into language 'xx'
- /title - the translated title of another chapter into language 'xx'
- /lang-xx - the translation of another chapter into language 'xx'
- /aChapterName - the original chapter in english
Usage
Same structure as the Template:hig-nav with the addition of an extra parameter "| lang=xx" where xx should be replaced by a standard language identificacion (ie: es, fr, etc.)