Template:Languages: Difference between revisions

From Shareaza Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== Template ==
== Template ==
<onlyinclude><div class="LanguageLinks">
<onlyinclude>{{Article Information Box
| class name          = Languages
| table text align    = middle
| left cell bgcolor    = #EEF3E2
| left cell padding    = 2px 1em 0 0.5em
| left cell icon      = [[File:GeoLogo.png]]
| left cell text      = '''[[Project:Language policy|Languages]]:'''
| right cell bgcolor  = #F6F9ED
| 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|{{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>
 
== Old Code ==
<div class="LanguageLinks">
<table width="100%" style="border: 1px solid #aaaaaa;">
<table width="100%" style="border: 1px solid #aaaaaa;">
<tr valign="top" style="background: #EEF3E2;">
<tr valign="top" style="background: #EEF3E2;">
<td style="width: 10px; white-space: nowrap; padding: 2px 1em 0 0.5em; border-right: 1px solid #aaaaaa; font-size: 12px;">'''[[Project:Language policy|Languages]]:'''&nbsp;</td><td style="padding: 1px 1em 0; background: #F6F9ED; font-size: 12px;">
<td style="width: {{PageTitleTemplatesLeftAreaWidth}}; white-space: nowrap; padding: 2px 1em 0 0.5em; border-right: 1px solid #aaaaaa; font-size: 12px;">[[File:GeoLogo.png]]&nbsp;'''[[Project:Language policy|Languages]]:'''&nbsp;</td><td style="padding: 1px 1em 0; background: #F6F9ED; font-size: 12px;">
[[{{{1}}}|English]] •
[[:{{{1}}}|English]] •
[[{{{1}}}/de|Deutsch]] •
[[:{{{1}}}/de|Deutsch]] •
[[{{{1}}}/es|Español]] •
[[:{{{1}}}/es|Español]] •
[[{{{1}}}/fr|Français]] •
[[:{{{1}}}/fr|Français]] •
[[{{{1}}}/he|עברית]] •
[[:{{{1}}}/he|עברית]] •
[[{{{1}}}/it|Italiano]] •
[[:{{{1}}}/it|Italiano]] •
[[{{{1}}}/nl|Nederlands]] •
[[:{{{1}}}/nl|Nederlands]] •
[[{{{1}}}/pl|Polski]] •
[[:{{{1}}}/pl|Polski]] •
[[{{{1}}}/pt|Português]] •
[[:{{{1}}}/pt|Português]] •
[[{{{1}}}/ru|Русский]] •
[[:{{{1}}}/ru|Русский]] •
[[{{{1}}}/zh-hant|‪中文(繁體)]]
[[:{{{1}}}/zh-hant|‪中文(繁體)]]
</td></tr></table></div><br/></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 ==
{{Languages|This Page}}
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.


==Wrong Usage==
[[Category:Templates]]
{{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]]

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.