Changes

From SME Server
Jump to navigationJump to search
4 bytes removed ,  21:07, 29 November 2017
no edit summary
Line 1: Line 1: −
== Template ==
   
<onlyinclude><div class="LanguageLinks">
 
<onlyinclude><div class="LanguageLinks">
 
<table width="100%" style="clear: both; border: 1px solid #aaaaaa; border-collapse: collapse; padding: 0.2em; margin: 0; font-size: 85%; margin: 0 1px;">
 
<table width="100%" style="clear: both; border: 1px solid #aaaaaa; border-collapse: collapse; padding: 0.2em; margin: 0; font-size: 85%; margin: 0 1px;">
Line 5: Line 4:  
<td style="width: 25px; padding-left: 0.5em;">[[Image:Geographylogo.png|25px|]]</td>
 
<td style="width: 25px; padding-left: 0.5em;">[[Image:Geographylogo.png|25px|]]</td>
 
<td style="width: 10px; white-space: nowrap; padding: 4px 1em 0 0.5em; border-right: 1px solid #aaaaaa;">'''[[Project:Language policy|Languages]]:'''&nbsp;</td><td style="padding: 1px 1em 0; background: #F6F9ED;">
 
<td style="width: 10px; white-space: nowrap; padding: 4px 1em 0 0.5em; border-right: 1px solid #aaaaaa;">'''[[Project:Language policy|Languages]]:'''&nbsp;</td><td style="padding: 1px 1em 0; background: #F6F9ED;">
[[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}|English]]
+
[[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}|English]]  
 
<!---
 
<!---
 
{{Languages/Lang|br|{{{1|}}}}}
 
{{Languages/Lang|br|{{{1|}}}}}
Line 36: Line 35:  
</td></tr></table></div><br></onlyinclude>
 
</td></tr></table></div><br></onlyinclude>
   −
== Syntax ==
+
<noinclude>
<nowiki><noinclude>{{Languages|PageName}}</noinclude></nowiki>
  −
 
  −
* '''PageName''' (optional) - the name of the page to display language links for.  If omitted then the English version of the current page is used.  This parameter can normally be omitted, as it is only required if you want to link to a page other than the one you place the template on, which is very uncommon.  If this parameter is used on a sub-page make sure you supply the root name, not the full page name (e.g. on [[MediaWiki/fr]] you would need to use <code><nowiki>{{Languages|MediaWiki}}</nowiki></code> and not <code><nowiki>{{Languages|MediaWiki/fr}}</nowiki></code>).
      
== Usage ==
 
== Usage ==
 +
<pre>{{Languages}}</pre>
    
The template should only be placed on pages that exist in more than one language, and it should be placed in the same location on each translation of the page.
 
The template should only be placed on pages that exist in more than one language, and it should be placed in the same location on each translation of the page.
Line 50: Line 47:     
See [[Project:Language policy]] for further details about translating pages.
 
See [[Project:Language policy]] for further details about translating pages.
 +
 +
<pre>{{Languages|PageName}}</pre>
 +
 +
* '''PageName''' (optional) - the name of the page to display language links for.  If omitted then the English version of the current page is used.  This parameter can normally be omitted, as it is only required if you want to link to a page other than the one you place the template on, which is very uncommon.  If this parameter is used on a sub-page make sure you supply the root name, not the full page name (e.g. on [[MediaWiki/fr]] you would need to use <code><nowiki>{{Languages|MediaWiki}}</nowiki></code> and not <code><nowiki>{{Languages|MediaWiki/fr}}</nowiki></code>).
 +
    
== Supported languages ==
 
== Supported languages ==
Line 82: Line 84:  
which will look like this:
 
which will look like this:
 
{{Warning box|type=Lorem ipsum|Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec vel neque.}}
 
{{Warning box|type=Lorem ipsum|Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec vel neque.}}
 +
 +
</noinclude>
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,240

edits

Navigation menu