Template:Languages: Difference between revisions

From Shareaza Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(5 intermediate revisions by one other user not shown)
Line 2: Line 2:
<onlyinclude>{{Article Information Box
<onlyinclude>{{Article Information Box
  | class name          = Languages
  | class name          = Languages
  | table text align    = top
  | table text align    = middle
  | left cell bgcolor    = #EEF3E2
  | left cell bgcolor    = #EEF3E2
  | left cell padding    = 2px 1em 0 0.5em
  | left cell padding    = 2px 1em 0 0.5em
Line 8: Line 8:
  | left cell text      = '''[[Project:Language policy|Languages]]:'''
  | left cell text      = '''[[Project:Language policy|Languages]]:'''
  | right cell bgcolor  = #F6F9ED
  | right cell bgcolor  = #F6F9ED
  | right cell text      = [[:{{{1}}}|English]] •
  | right cell text      = [[:{{{1|{{NAMESPACE}}:{{BASEPAGENAME}}}}}|English]] • [[:{{{1|{{NAMESPACE}}:{{BASEPAGENAME}}}}}/de|Deutsch]] • [[:{{{1|{{NAMESPACE}}:{{BASEPAGENAME}}}}}/es|Español]] • [[:{{{1|{{NAMESPACE}}:{{BASEPAGENAME}}}}}/fr|Français]] • [[:{{{1|{{NAMESPACE}}:{{BASEPAGENAME}}}}}/he|עברית]] •  
[[:{{{1}}}/de|Deutsch]] •
[[:{{{1|{{NAMESPACE}}:{{BASEPAGENAME}}}}}/it|Italiano]] • [[:{{{1|{{NAMESPACE}}:{{BASEPAGENAME}}}}}/nl|Nederlands]] • [[:{{{1|{{NAMESPACE}}:{{BASEPAGENAME}}}}}/pl|Polski]] • [[:{{{1|{{NAMESPACE}}:{{BASEPAGENAME}}}}}/pt|Português]] • [[:{{{1|{{NAMESPACE}}:{{BASEPAGENAME}}}}}/ru|Русский]] • [[:{{{1|{{NAMESPACE}}:{{BASEPAGENAME}}}}}/zh-hant|‪中文(繁體)]] }}</onlyinclude>
[[:{{{1}}}/es|Español]] •
[[:{{{1}}}/fr|Français]] •
[[:{{{1}}}/he|עברית]] •
[[:{{{1}}}/it|Italiano]] •
[[:{{{1}}}/nl|Nederlands]] •
[[:{{{1}}}/pl|Polski]] •
[[:{{{1}}}/pt|Português]] •
[[:{{{1}}}/ru|Русский]] •
[[:{{{1}}}/zh-hant|‪中文(繁體)]]
}}


== Old Code ==
<div class="LanguageLinks">
<div class="LanguageLinks">
<table width="100%" style="border: 1px solid #aaaaaa;">
<table width="100%" style="border: 1px solid #aaaaaa;">
Line 36: Line 27:
[[:{{{1}}}/ru|Русский]] •
[[:{{{1}}}/ru|Русский]] •
[[:{{{1}}}/zh-hant|‪中文(繁體)]]
[[:{{{1}}}/zh-hant|‪中文(繁體)]]
</td></tr></table></div></onlyinclude>
</td></tr></table></div>


== Syntax ==
== Syntax ==
Use
<nowiki>{{Languages}}</nowiki>
on English pages or
  <nowiki>{{Languages|This Page}}</nowiki>
  <nowiki>{{Languages|This Page}}</nowiki>
on pages of all other languages.


== Correct Usage ==
== Wrong Usage ==
<nowiki>{{Languages|This Page}}</nowiki>
Due to the restrictions of this mediawiki installation, the English page name is now a required parameter on all non-English pages. It is not required, however, on English pages. The alternate [[Template:Language]] was previously used on English pages to not to have to use a parameter. It redirects to this page now.
{{Languages|This Page}}


== Wrong Usage ==
<nowiki>{{Languages}}</nowiki>
{{Languages}}
Due to the restrictions of this mediawiki installation, the (English) page name is now a required parameter. If you want to you do not want to specify the page name on an english page you can use the [[Template:Language|Language Template]].
[[Category:Templates]]
[[Category:Templates]]

Latest revision as of 19:31, 16 November 2023

Template

Old Code

Syntax

Use

{{Languages}}

on English pages or

{{Languages|This Page}}

on pages of all other languages.

Wrong Usage

Due to the restrictions of this mediawiki installation, the English page name is now a required parameter on all non-English pages. It is not required, however, on English pages. The alternate Template:Language was previously used on English pages to not to have to use a parameter. It redirects to this page now.