Difference between revisions of "Template:Hig-subnav-inter-lang"
Jump to navigation
Jump to search
Dfarning-bot (talk | contribs) m (Robot: Automated text replacement (-[OLPC Human Interface Guidelines +[DesignTeam/Human Interface Guidelines)) |
(restructure wiki path) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
{| width="100%" cellpadding="0" cellspacing="0" | {| width="100%" cellpadding="0" cellspacing="0" | ||
|- | |- | ||
− | |width=25% align=left bgcolor=#E2EDFF|& | + | |width=25% align=left bgcolor=#E2EDFF|← '''[[Human Interface Guidelines/{{{p_link}}}/lang-{{{lang}}}|{{:Human Interface Guidelines/{{{p_link}}}/lang-{{{lang}}}/title}}]]''' |
− | |width=50% align=center bgcolor=#E2EDFF|'''[[ | + | |width=50% align=center bgcolor=#E2EDFF|'''[[Human Interface Guidelines/{{{c_section}}}/{{{c_page}}}/lang-{{{lang}}}|{{:Human Interface Guidelines/{{{c_section}}}/{{{c_page}}}/lang-{{{lang}}}/title}}]]''' |
− | |width=25% align=right bgcolor=#E2EDFF| '''[[ | + | |width=25% align=right bgcolor=#E2EDFF| '''[[Human Interface Guidelines/{{{n_link}}}/lang-{{{lang}}}|{{:Human Interface Guidelines/{{{n_link}}}/lang-{{{lang}}}/title}}]]''' → |
|} | |} | ||
</div><noinclude> | </div><noinclude> | ||
− | The 'normal' [[Template:hig-subnav-inter]] assumes that all pages are sub-pages of a sub-page (chapter) of [[ | + | The 'normal' [[Template:hig-subnav-inter]] assumes that all pages are sub-pages of a sub-page (chapter) of [[Human Interface Guidelines]]. In other words, the 'root' of navigation is not the guideline itself, but a chapter of it. |
This modification assumes not only that, but adds two more things: | This modification assumes not only that, but adds two more things: | ||
Line 17: | Line 17: | ||
So a 'typical' structure would be: | So a 'typical' structure would be: | ||
− | * | + | * Human Interface Guidelines |
** /aChapterName ''- the original chapter in english'' | ** /aChapterName ''- the original chapter in english'' | ||
*** /aSectionName ''- the original section in english'' | *** /aSectionName ''- the original section in english'' |
Latest revision as of 19:46, 7 July 2009
← [[Human Interface Guidelines/{{{p_link}}}/lang-{{{lang}}}|{{:Human Interface Guidelines/{{{p_link}}}/lang-{{{lang}}}/title}}]] | [[Human Interface Guidelines/{{{c_section}}}/{{{c_page}}}/lang-{{{lang}}}|{{:Human Interface Guidelines/{{{c_section}}}/{{{c_page}}}/lang-{{{lang}}}/title}}]] | [[Human Interface Guidelines/{{{n_link}}}/lang-{{{lang}}}|{{:Human Interface Guidelines/{{{n_link}}}/lang-{{{lang}}}/title}}]] → |
The 'normal' Template:hig-subnav-inter assumes that all pages are sub-pages of a sub-page (chapter) of Human Interface Guidelines. In other words, the 'root' of navigation is not the guideline itself, but a chapter of it.
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:
- Human Interface Guidelines
- /aChapterName - the original chapter in english
- /aSectionName - the original section in english
- /lang-xx - the translation of the section into language 'xx'
- /title - the translated title of a section into language 'xx'
- /lang-xx - the translation of the section into language 'xx'
- /anotherSectionName - another original section in english
- /lang-xx - the translation of another section into language 'xx'
- /title - the translated title of another section into language 'xx'
- /lang-xx - the translation of another section into language 'xx'
- /aSectionName - the original section in english
- /aChapterName - the original chapter in english