Template talk:Exists

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search

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 • contribs) 15:59, 24 January 2007 (UTC)

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

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