Template:Wikipedia: Difference between revisions

Jump to navigation Jump to search
Improved language support by autodetection from the page title if the 'lang' parameter is not supplied. The logic is copied and modified from {{LangSwitch}}.
m (Remove commented out sentence)
(Improved language support by autodetection from the page title if the 'lang' parameter is not supplied. The logic is copied and modified from {{LangSwitch}}.)
Line 1: Line 1:
<span class="plainlinks">[https://{{{lang|en}}}.wikipedia.org/<!--
<span class="plainlinks">[https://{{{lang|{{#if: {{{ {{lc: {{#titleparts: {{PAGENAME}} | 1}} }}| }}}  <!-- Does the page have a language prefix/language code? -->
                                            | {{{ {{lc: {{#titleparts: {{PAGENAME}} | 1}} }} }}} <!-- If the page does have a language prefix, use the the contents of the parameter with that language code. -->
                                            | en <!-- If lang is empty or undefined and there is no language prefix, use the English content. -->
}}}}}.wikipedia.org/<!--
-->{{#if: {{{diff|}}}  <!-- Is there a diff parameter and a permalink should be used? -->
-->{{#if: {{{diff|}}}  <!-- Is there a diff parameter and a permalink should be used? -->
  |  <!-- Yes there is a diff parameter, use permalink -->
  |  <!-- Yes there is a diff parameter, use permalink -->

Navigation menu