Forum:Template Coding Help: If A exists, go A. Otherwise B.

Hello. I'm currently helping a wiki site at http://evchk.wikia.com/ (a Chinese wiki).

I have only shallow knowledge about wiki template coding. I have a question regarding a template Zhwiki.

This is what I want to achieve:
 * If our wiki (that is http://evchk.wikia.com/ ) has an article on this item, link to it: |}}
 * Otherwise, link to the famous Chinese Wikipedia's if it has an article on it:
 * Otherwise, just create a non-existing link of the item pointing to our wiki: |}}

You can also specify the name of the intra-link:
 * Put and you get IP address.
 * Put and you get IP (linking to IP address).

By the way, are there any tools/ways available to preview the effect of the template first before putting in real use? I'm usually afraid I made a mistake in template coding and mess this template up. Also is there any dummy guide available to learn wiki template coding? --Comeon 12:07, 11 February 2009 (UTC)


 * Not possible that I know of, unfortunately. The 2nd step is the deal breaker, since we have no way to know what is or is not on Wikipedia. --Sky (talk) 14:36, 11 February 2009 (UTC)