Changes

Jump to navigation Jump to search
48 bytes added ,  22:43, 4 February 2009
m
Robot: Automated text replacement (-[OLPC Human Interface Guidelines +[DesignTeam/Human Interface Guidelines)
Line 2: Line 2:  
This template creates an HTML anchor without creating a visible section header or a TOC entry.
 
This template creates an HTML anchor without creating a visible section header or a TOC entry.
   −
Its main use is to allow the translation of links without interfering with the translation of content. The most usual 'problem' arising when translating is that some section titles are much less immutable than the original. For example, in the [[HIG]] there's the concept of [[OLPC Human Interface Guidelines/The Laptop Experience/Zoom Metaphor#Home|Home]]. The word itself may have several possible translations in a given language, and one may be preferred to others but may not have been the 'initial' choosing. In later revisions, the header could be changed for a ''better wording'', but then all the links pointing to it would be broken.  The solution is to use this template as the ''anchor'' for the original language header.
+
Its main use is to allow the translation of links without interfering with the translation of content. The most usual 'problem' arising when translating is that some section titles are much less immutable than the original. For example, in the [[HIG]] there's the concept of [[DesignTeam/Human Interface Guidelines/The Laptop Experience/Zoom Metaphor#Home|Home]]. The word itself may have several possible translations in a given language, and one may be preferred to others but may not have been the 'initial' choosing. In later revisions, the header could be changed for a ''better wording'', but then all the links pointing to it would be broken.  The solution is to use this template as the ''anchor'' for the original language header.
    
== Example ==
 
== Example ==
 
In a page you are translating there's the following link to a section:
 
In a page you are translating there's the following link to a section:
  <nowiki>[[OLPC Human Interface Guidelines/The Laptop Experience/Zoom Metaphor#Home]]</nowiki>
+
  <nowiki>[[DesignTeam/Human Interface Guidelines/The Laptop Experience/Zoom Metaphor#Home]]</nowiki>
 
You know the translated page will be named
 
You know the translated page will be named
 
  OLPC Human Interface Guidelines/The Laptop Experience/Zoom Metaphor/lang-xx
 
  OLPC Human Interface Guidelines/The Laptop Experience/Zoom Metaphor/lang-xx
 
You want to leave the link as
 
You want to leave the link as
  <nowiki>[[OLPC Human Interface Guidelines/The Laptop Experience/Zoom Metaphor/lang-xx#Home]]</nowiki>
+
  <nowiki>[[DesignTeam/Human Interface Guidelines/The Laptop Experience/Zoom Metaphor/lang-xx#Home]]</nowiki>
 
so you don't have locate the translated section text and change the link to use it.
 
so you don't have locate the translated section text and change the link to use it.
    
If the page you are linking to uses [[Template:Anchor]] then you can do this;
 
If the page you are linking to uses [[Template:Anchor]] then you can do this;
the linking of translated pages (and their sections) can be done regardless of how the ''Home'' section header was translated &mdash; in [[spanish]] it could be translated as either ''[[OLPC Human Interface Guidelines/The Laptop Experience/Zoom Metaphor/lang-es#Home|Hogar]]'' or ''[[OLPC Human Interface Guidelines/The Laptop Experience/Zoom Metaphor/lang-es#Home|Casa]]''&mdash;both actually linking to the ''anchor'' [[OLPC Human Interface Guidelines/The Laptop Experience/Zoom Metaphor/lang-es#Home|#Home]] and will both work.
+
the linking of translated pages (and their sections) can be done regardless of how the ''Home'' section header was translated &mdash; in [[spanish]] it could be translated as either ''[[DesignTeam/Human Interface Guidelines/The Laptop Experience/Zoom Metaphor/lang-es#Home|Hogar]]'' or ''[[DesignTeam/Human Interface Guidelines/The Laptop Experience/Zoom Metaphor/lang-es#Home|Casa]]''&mdash;both actually linking to the ''anchor'' [[DesignTeam/Human Interface Guidelines/The Laptop Experience/Zoom Metaphor/lang-es#Home|#Home]] and will both work.
: It's also possible to link the translated section heading, for example''[[OLPC Human Interface Guidelines/The Laptop Experience/Zoom Metaphor/lang-es#Hogar|#Hogar]]'' or ''[[OLPC Human Interface Guidelines/The Laptop Experience/Zoom Metaphor/lang-es#Casa|#Casa]]''&mdash;but in this case, one of them will not work.
+
: It's also possible to link the translated section heading, for example''[[DesignTeam/Human Interface Guidelines/The Laptop Experience/Zoom Metaphor/lang-es#Hogar|#Hogar]]'' or ''[[DesignTeam/Human Interface Guidelines/The Laptop Experience/Zoom Metaphor/lang-es#Casa|#Casa]]''&mdash;but in this case, one of them will not work.
    
== Usage ==
 
== Usage ==

Navigation menu