Difference between revisions of "Template:Lw"

(try)
m (Wikify)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{#ifeq:{{{2|+}}}|{{{2|-}}}
 
{{#ifeq:{{{2|+}}}|{{{2|-}}}
−
|{{#ifexist:{{{1}}}|[[{{{1}}}]]|[[https://en.wikipedia.org/wiki/{{{1}}}|{{{1}}}]]}}
+
|{{#ifexist:{{{1}}}|[[{{{1}}}]]|[https://en.wikipedia.org/wiki/{{{1}}} {{{1}}}]}}
−
|{{#ifexist:{{{1}}}|[[{{{1}}}]]|[[https://en.wikipedia.org/wiki/{{{1}}}]]}}
+
|{{#ifexist:{{{1}}}|[[{{{1}}}]]|[https://en.wikipedia.org/wiki/{{{1}}}]}}
 
}}<noinclude>
 
}}<noinclude>
−
;This template tests for a local link and, if it does not exist, then it falls back to the English Wikipedia link.
+
;This template tests for a local page and, if it does not exist, then it falls back to the English [[Wikipedia®]] URL. The first parameter should be written with underscores rather than spaces. Still searching for a technical solution to this cosmetic problem.
 
</noinclude>
 
</noinclude>

Latest revision as of 01:32, January 10, 2021

[1]

This template tests for a local page and, if it does not exist, then it falls back to the English Wikipedia® URL. The first parameter should be written with underscores rather than spaces. Still searching for a technical solution to this cosmetic problem.