Difference between revisions of "Template:Local"

From PC-BSD Wiki
Jump to: navigation, search
(add a class to tie to CSS to make edits more obvious.)
Line 1: Line 1:
<includeonly><span class="usesLocal">[[{{{link}}}{{putLang}}{{hasAnchor|{{{anchor|}}}}}|{{{1|{{#if: {{getLang}}|{{:Translations:{{#titleparts: {{{link}}}|1|1}}/Page display title/{{getLang}}}}|{{{link|Missing link}}}}}}}}]]</span></includeonly><noinclude>
+
<includeonly><span class="usesLocal">[[{{{link}}}{{putVers}}{{putLang}}{{hasAnchor|{{{anchor|}}}}}|{{{1|{{#if: {{getLang}}|{{:Translations:{{#titleparts: {{{link}}}|1|1}}/Page display title/{{getLang}}}}|{{{link|Missing link}}}}}}}}]]</span></includeonly><noinclude>
  
 
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.
 
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.

Revision as of 07:34, 2 December 2013


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}}
Example: [[Disk_Selection_Screen#Advanced_Mode|Advanced Mode]] becomes {{local|link=Disk_Selection_Screen|anchor=Advanced_Mode|Advanced Mode}}