Sorry for the inconvenience.  Known Navigation header breakage of “Previous:” and “Next:” links, the Table Of Contents may be the solution for those.
However, unfortunately, the Table of contents may also be broken, and there may be other unforeseen breakage primarily in the handbook portion of the wiki.
Presently the 10.1 and 10.1.1 Table Of Contents are being "reconstructed" becoming incrementally fixed while the other handbook versions may have various breakage.

Difference between revisions of "Template:Local"

From PC-BSD Wiki
Jump to: navigation, search
(thinking :))
(working it out bit by bit..)
Line 2: Line 2:
  
  
 
+
[[
 
{{#if: {{{1}}}
 
{{#if: {{{1}}}
   |{{#if: {{{anchor}}} <!-- has alt text -->
+
   |{{#if: {{{anchor}}}                     <!-- has alt text -->
       |[[{{{link|}}}{{putLang}}{{pound}}{{{anchor}}}|{{#if: {{getLang}} <!-- has anchor -->
+
       |{{{link|}}}{{putLang}}{{pound}}{{{anchor}}}  <!-- has anchor -->
                                                            |{{:Translations:{{#titleparts: {{{link}}}|1|1}}/Page display title/{{getLang}} }}]] <!-- on lang page -->
+
      |{{{link|}}}{{putLang}}                      <!-- not anchor -->
                                                            |   <!-- not on lang page -->
+
    }}
                                                          }}
+
  |{{{link}}}{{putLang}}|{{#if: {{getLang}} <!-- not alt text -->
      | <!-- has no anchor -->
+
                            |{{:Translations:{{#titleparts: {{{link}}}|1|1}}/Page display title/{{getLang}} }}  <!-- on lang page -->
 
+
                            |{{{link}}}                                                                         <!-- no lang page -->
  |[[{{{link}}}{{putLang}}]] <!-- no alt text -->
+
                          }}
 
}}
 
}}
 
+
]]
  
 
{{{1}}} is the alternate text.
 
{{{1}}} is the alternate text.

Revision as of 21:16, 3 September 2013


[[ #{{{anchor}}} ]]

{{{1}}} is the alternate text.

[[|Missing link ]]

This template hopes to solve the trouble of localization of links within the wiki. The link will automatically match the localized page URL (such as Goals and features/en) of the page that the link resides. As with other locations on the wiki, if the page for the local link has not yet been translated, it will not then exist and will appear as a red link.

Usage: {{local|link=page URL|alternate text}}
Example: [[Goals and Features|Project Goals and Spiffy Bits]] becomes {{local|link=Goals and Features|Project Goals and Spiffy Bits}}
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox