Template:Lx: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Reverted edits by PabloS (talk) to last revision by Nescius)
Tag: Rollback
 
Line 5: Line 5:


<onlyinclude>{{#if:{{langprefix}}
<onlyinclude>{{#if:{{langprefix}}
     |{{#if:{{NAMESPACE:{{{1}}}}}|[[:{{NAMESPACE:{{{1}}}}}:{{langprefix}}{{PAGENAME:{{{1}}}}}|{{{2|{{{1|}}}}}}]]|[[{{langprefix}}{{ucfirst:{{{1}}}}}|{{{2|{{{1|}}}}}}]]}} <span class="plainlinks hideifnotnew">([{{fullurl:{{{1}}}}} en])</span>
     |{{#if:{{NAMESPACE:{{{1}}}}}|[[:{{NAMESPACE:{{{1}}}}}:{{langprefix}}{{PAGENAME:{{{1}}}}}|{{{2|{{{1|}}}}}}]]|[[{{langprefix}}{{ucfirst:{{{1}}}}}|{{{2|{{{1|}}}}}}]]}}<span class="plainlinks hideifnotnew">([{{fullurl:{{{1}}}}} en])</span>
     |{{#if:{{NAMESPACE:{{{1}}}}}|[[:{{{1}}}|{{{2|{{{1}}}}}}]]|[[{{{1}}}|{{{2|{{{1}}}}}}]]}}
     |{{#if:{{NAMESPACE:{{{1}}}}}|[[:{{{1}}}|{{{2|{{{1}}}}}}]]|[[{{{1}}}|{{{2|{{{1}}}}}}]]}}
}}</onlyinclude>
}}</onlyinclude>

Latest revision as of 19:49, 4 November 2024

Warning icon.png
This template is used on many pages and changes may be widely noticed.
Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage.
Consider discussing changes on the talk page before implementing them.
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

More expensive version of Template:L that supports other namespaces than main and works properly on English pages too so can be safely used in templates that would transclude this on any page.

{{Lx|Category:Level Design}} while on pages starting with Zh/ prefix
becomes:
[[:Category:Zh/Level Design|Category:Level Design]]
{{Lx|Targetname|Name}} while on pages starting with Zh/ prefix
becomes:
[[Zh/Targetname|Name]]
{{Lx|info_target}} while on pages starting with Sk/ prefix
becomes:
[[Sk/Info_target|info_target]]
{{Lx|Category:level Design#subsection|altlink}} while on pages starting with Sk/ prefix
becomes:
[[:Category:Sk/Level Design#subsection|altlink]]

See Also