Template:Hig-subnav-intra-lang: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (typo)
m (changed 'talk page' to 'discussion')
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
{| width="100%" cellpadding="0" cellspacing="0"
{| width="100%" cellpadding="0" cellspacing="0"
|-
|-
|width=25% align=left bgcolor=#E2EDFF|← '''[[OLPC Human Interface Guidelines/{{{c_section}}}/{{{p_page}}}/lang-{{{lang}}}|{{{p_page_lang}}}]]'''
|width=25% align=left bgcolor=#E2EDFF|← '''[[OLPC Human Interface Guidelines/{{{c_section}}}/{{{p_page}}}/lang-{{{lang}}}|{{:OLPC Human Interface Guidelines/{{{c_section}}}/{{{p_page}}}/lang-{{{lang}}}/title}}]]'''
|width=50% align=center bgcolor=#E2EDFF|'''[[OLPC Human Interface Guidelines/{{{c_section}}}/{{{c_page}}}/lang-{{{lang}}}|{{{c_page_lang}}}]] [[{{NAMESPACE}} talk:OLPC Human Interface Guidelines/{{{c_section}}}/{{{c_page}}}/lang-{{{lang}}}|<font color="gray"><b>(talk page)</b></font>]]'''
|width=50% align=center bgcolor=#E2EDFF|'''[[OLPC Human Interface Guidelines/{{{c_section}}}/{{{c_page}}}/lang-{{{lang}}}|{{:OLPC Human Interface Guidelines/{{{c_section}}}/{{{c_page}}}/lang-{{{lang}}}/title}}]] [[{{NAMESPACE}} talk:OLPC Human Interface Guidelines/{{{c_section}}}/{{{c_page}}}/lang-{{{lang}}}|<font color="gray"><b>(discussion)</b></font>]]'''
|width=25% align=right bgcolor=#E2EDFF| '''[[OLPC Human Interface Guidelines/{{{c_section}}}/{{{n_page}}}/lang-{{{lang}}}|{{{n_page_lang}}}]]''' &#8594;
|width=25% align=right bgcolor=#E2EDFF| '''[[OLPC Human Interface Guidelines/{{{c_section}}}/{{{n_page}}}/lang-{{{lang}}}|{{:OLPC Human Interface Guidelines/{{{c_section}}}/{{{n_page}}}/lang-{{{lang}}}/title}}]]''' &#8594;
|}
|}
</div>
</div><noinclude>

The 'normal' [[Template:hig-subnav-intra]] assumes that all pages are sub-pages of a sub-page (chapter) of [[OLPC 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: <tt>.../lang-xx/title</tt>) 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''
*** /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'''
*** /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'''</noinclude>

Latest revision as of 17:17, 4 April 2007

[[OLPC Human Interface Guidelines/{{{c_section}}}/{{{p_page}}}/lang-{{{lang}}}|{{:OLPC Human Interface Guidelines/{{{c_section}}}/{{{p_page}}}/lang-{{{lang}}}/title}}]] [[OLPC Human Interface Guidelines/{{{c_section}}}/{{{c_page}}}/lang-{{{lang}}}|{{:OLPC Human Interface Guidelines/{{{c_section}}}/{{{c_page}}}/lang-{{{lang}}}/title}}]] [[Template talk:OLPC Human Interface Guidelines/{{{c_section}}}/{{{c_page}}}/lang-{{{lang}}}|(discussion)]] [[OLPC Human Interface Guidelines/{{{c_section}}}/{{{n_page}}}/lang-{{{lang}}}|{{:OLPC Human Interface Guidelines/{{{c_section}}}/{{{n_page}}}/lang-{{{lang}}}/title}}]]

The 'normal' Template:hig-subnav-intra assumes that all pages are sub-pages of a sub-page (chapter) of OLPC 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:

  1. Translated chapters are sub-pages of the original chapter, and labeled .../lang-xx
  2. 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
      • /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'
      • /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'