Template:Wikia prefix/doc

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

This can be used in templates to automatically create static links to the current wiki; for instance, the code, when saved, will turn into  , 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 ; 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.