Template:LSpecial/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
* {{Code|<nowiki>{{LSpecial|RandomRootpage|case=uc}}</nowiki>}} = {{LSpecial|RandomRootpage|case=uc}}
* {{Code|<nowiki>{{LSpecial|RandomRootpage|case=uc}}</nowiki>}} = {{LSpecial|RandomRootpage|case=uc}}
* {{Code|<nowiki>{{LSpecial|RandomRootpage|case=lcfirst}}</nowiki>}} = {{LSpecial|RandomRootpage|case=lcfirst}}
* {{Code|<nowiki>{{LSpecial|RandomRootpage|case=lcfirst}}</nowiki>}} = {{LSpecial|RandomRootpage|case=lcfirst}}
Sometimes there are multiple links for a single page like [[Special:Random]] vs [[Special:RandomRootpage]], but only one of them is the proper name for the interface string so only one will properly get translated
* {{Code|<nowiki>{{LSpecial|Random}}</nowiki>}} = {{LSpecial|Random}}
* {{Code|<nowiki>{{LSpecial|RandomRootpage}}</nowiki>}} = {{LSpecial|RandomRootpage}}





Revision as of 05:23, 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:Random vs Special:RandomRootpage, but only one of them is the proper name for the interface string so only one will properly get translated


See Also