Template:Template sharing demo

On a non-central Wikia we get the following if this template on the central Wikia is called:


 * gives - the URL of the central Wikia, except when substituting the shared template, in which case it is the URL of the local Wikia.
 * an internal link a shows up in the style of an internal link, but links to the central Wikia, except when substituting the shared template, in which case the link is an internal link to a local page.
 * the link A shows up in the style of an internal link, but links to a page in the wikia namespace of the central Wikia, except when substituting the shared template, in which case it is an interwiki link to a page in the main namespace of the central Wikia.
 * the link peize:a shows up in the style of an interwiki link to the peize Wikia, except when substituting the shared template, in which case it is an internal link, on the peize Wikia to a page in the peize namespace, and on other Wikias to a page in the main namespace.

See also peize:Peize:Template sharing demo.