Template:LSpecial/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "To use for Special: links on translated pages so that they take the interfaces {{LSpecial|ProtectedPages}}")
 
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
To use for Special: links on translated pages so that they take the interfaces
To use for Special: links on translated pages so that they use the translation used in wiki interface
* {{param|1}} - Special: page name
* {{param|2}} - alt name (default uses string defined in MediaWiki namespace i.e interface language)
* {{param|case}} - lc - all lower case, lcfirst - first letter lower case, uc - all upper, ucfirst - first letter upper
* {{param|lang}} - force specific language (default use {{T|language}})


{{LSpecial|ProtectedPages}}
 
* {{Code|<nowiki>{{LSpecial|ProtectedPages}}</nowiki>}} = {{LSpecial|ProtectedPages}}
* {{Code|<nowiki>{{LSpecial|AllMessages}}</nowiki>}} = {{LSpecial|AllMessages}}
* {{Code|<nowiki>{{LSpecial|AllMessages|lang=sk}}</nowiki>}} = {{LSpecial|AllMessages|lang=sk}}
* {{Code|<nowiki>{{LSpecial|RandomRootpage|Rocket Raccoon}}</nowiki>}} = {{LSpecial|RandomRootpage|Rocket Raccoon}}
* {{Code|<nowiki>{{LSpecial|RandomRootpage|case=uc}}</nowiki>}} = {{LSpecial|RandomRootpage|case=uc}}
* {{Code|<nowiki>{{LSpecial|RandomRootpage|case=lcfirst}}</nowiki>}} = {{LSpecial|RandomRootpage|case=lcfirst}}
 
 
Sometimes there are multiple links for a single page like [[Special:UncategorizedFiles]] vs [[Special:UncategorizedImages]], but only one of them is the proper name for the interface string so only one will properly get translated
* {{Code|<nowiki>{{LSpecial|UncategorizedFiles}}</nowiki>}} = {{LSpecial|UncategorizedFiles}}
* {{Code|<nowiki>{{LSpecial|UncategorizedImages}}</nowiki>}} = {{LSpecial|UncategorizedImages}}
 
If you stumble upon some not getting translated mention it in the discussion section.
 
== See Also ==
* {{T|L}}
* {{T|Lx}}
* {{T|LCategory}}
* {{T|ACategory}}

Latest revision as of 05:25, 11 August 2024

To use for Special: links on translated pages so that they use the translation used in wiki interface

  • {{{1}}} - Special: page name
  • {{{2}}} - alt name (default uses string defined in MediaWiki namespace i.e interface language)
  • {{{case}}} - lc - all lower case, lcfirst - first letter lower case, uc - all upper, ucfirst - first letter upper
  • {{{lang}}} - force specific language (default use {{language}})



Sometimes there are multiple links for a single page like Special:UncategorizedFiles vs Special:UncategorizedImages, but only one of them is the proper name for the interface string so only one will properly get translated

If you stumble upon some not getting translated mention it in the discussion section.

See Also