Template:If interwiki/doc

Test if parameter 1 passed is an interwiki linkname
 * Purpose

This may be used to
 * Uses
 * restrict links to only interwiki links
 * restrict links to only local links
 * format interwiki and local links differently

linkname
 * Syntax
 * Parameter 1 &mdash; (MANDATORY) – linkname to test if this is an interwiki link
 * Parameter 2 &mdash; (OPTIONAL) – If true, enter a statement to output (default: "1" )
 * Parameter 3 &mdash; (OPTIONAL) – If false, enter a statement to output (default: "0" )

This does not test if the page the link links to exists or not
 * Notes


 * Examples

Main Page &rarr;

Template:If interwiki link &rarr;

xakljdfasjflads:akjfdljasdflasjf &rarr;

w:c:dev:Main Page &rarr;

fr:xakljdfasjflads:akjfdljasdflasjf &rarr;

wikt:en:File:Main Page &rarr;

w:Main Page &rarr;


 * See also
 * ifurl