Template:LanguageBar: Difference between revisions
Jump to navigation
Jump to search

Consider discussing changes on the talk page before implementing them.
(moving to /call so BASENAME doesn't have to be calculated again.) |
(No default title in category namespace) |
||
Line 3: | Line 3: | ||
<includeonly> | <includeonly> | ||
<onlyinclude>{{#if:{{{title|}}}|{{DISPLAYTITLE:{{{title}}}|noerror}}|{{DISPLAYTITLE:{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{SUBPAGENAME}}|noreplace}}}}{{LanguageBar/call | <onlyinclude><!-- | ||
-->{{#if:{{{title|}}} | |||
| {{DISPLAYTITLE:{{{title}}}|noerror}} | |||
| {{#ifeq:{{NAMESPACE}}|Category||{{DISPLAYTITLE:{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{SUBPAGENAME}}|noreplace}}}} | |||
}}<!-- | |||
-->{{LanguageBar/call | |||
| BASENAME = {{{base|{{#ifeq: {{pagelang}} | en | {{PAGENAME}} | {{#titleparts: {{PAGENAME}} | 25 | 2 }} }}}}} | | BASENAME = {{{base|{{#ifeq: {{pagelang}} | en | {{PAGENAME}} | {{#titleparts: {{PAGENAME}} | 25 | 2 }} }}}}} | ||
| USEDLANG = {{pagelang}} | | USEDLANG = {{pagelang}} | ||
}}</onlyinclude> | }}<!-- | ||
--></onlyinclude> | |||
</includeonly> | </includeonly> |
Revision as of 17:33, 7 August 2024

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.
The above documentation is transcluded from Template:LanguageBar/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.