Template:Interlanguage link info/sandbox: Difference between revisions

Content deleted Content added
Redo, to simplify the code by factoring out the if-lang to only one test. Added 'like this[xx]' as a sample text, when the lang code is present.
Restore inadvertently dropped 'red' style. Factor out the 'like this' clause into common ending clause, and supply 'xx' as dummy code for the example if arg not supplied.
Line 4:
| small = {{#if:{{{sect|{{{section|{{{1|}}}}}}}}}|{{#if:{{{small|{{{left|}}}}}}|left}} }}
| sect = {{#ifeq:{{yesno|def=|1={{{sect|{{{section}}}}}} }}|yes|section|{{{sect|{{{section|{{{1|}}}}}}}}} }}
| text = contains numerous links to articles that do not exist yet, but which have counterparts in {{#if: {{ISO 639 name |fn=iso_639_code_exists | {{{lang|{{{2|}}}}}}}} | {{ucfirst: {{#language:{{{lang|{{{2|}}}}}}|en}}}} or [[List of Wikipedias#Detailed list|other language Wikipedias]]. These article links may be shown in red, with language codes (like {{red|this}}<sup>&#91;{{blue|{{{lang|{{{2|}}}}}}}}&#93;</sup>) | one or more [[List of Wikipedias#Detailed list|foreign language Wikipedias]]. These article links may be shown in red, with language codes
}} These {{red|article links}} may be shown in {{red|red}}, with language codes in [{{color|blue|<small>small blue letters</small>}}] enclosed in brackets., {{red|like this}}.<sup>&#91;{{blue|{{{lang|{{{2|xx}}}}}}}}&#93;</sup> Click on the language code to see the page in that language.
}}<noinclude>
{{Documentation}}