Export this template, then import, to install it.
Use edit summary: Copied from [[w:c:templates:Template:Wikia prefix]] to properly attribute this template's editors.
This template is probably not already on your wiki.
Template documentation
Note: the template above may sometimes be partially or fully invisible.

View or edit this documentation. (How does this work?)

Editors can experiment with this template's sandbox and test case pages.

{{Wikia prefix}} returns the interwiki prefix for the Wikia wiki the template is used on. For instance, on this Wikia wiki, the template gives templates..

This can be used in templates to automatically create static links to the current wiki; for instance, the code [[w:c:{{subst:Wikia prefix}}:Main Page]], when saved, will turn into [[w:c:templates:Main Page]], resulting in w:c:templates:Main Page.

Note that this template assumes the interwiki prefix is identical to the first part(s) of the value returned by the magic word {{SERVERNAME}}; since there doesn't seem to be a magic word which specifically returns the current wiki's interwiki prefix, it is possible that the value returned by the template is incorrect.

Community content is available under CC-BY-SA unless otherwise noted.