Jump to content

Template talk:Exists

Add topic
From Meta, a Wikimedia project coordination wiki
Latest comment: 17 years ago by Ororon in topic Implementation

Implementation

[edit]

Since the previous implementation no longer works, I reimplemented this relying on Template:If interwiki link and #ifexist. —The preceding unsigned comment was added by Ororon (talk) 15:59, 24 January 2007

Now {{If interwiki link}} is pasted inline and not used (thanks to User:Ilmari Karonen). --Ororon 19:40, 25 January 2007 (UTC)Reply

Examples

[edit]

Direct examples:

"{{#ifexist:qqww|1|0}}" gives "0" [1]

"{{exists|qqwx|1|0}}" gives "0" [2]

"{{exists|myriad}}" gives "1" [3]

"{{exists|Help:Table}}" gives "1" [4]

"{{exists|Help:Tabel}}" gives "0" [5]

Corresponding examples using Template:T exists 1 and Template:T exists:

1 #ifexist: 1

0 #ifexist: 0

0 #ifexist: 0

1 #ifexist: 1

1 #ifexist: 1

1 #ifexist: 1

1 #ifexist: 1

0 #ifexist: 0

0 #ifexist: 0

0 #ifexist: 0

1 #ifexist: 0

1 #ifexist: 0

0 #ifexist: 0