A template's magic redirect

Redirects to an arbitrary URL with tokens based on user and wiki filled in. This is primarily intended for Wikimedia templates such as {{sr-request}} (see example).





available tokens:
  • wiki:
    • {wiki.name}: The simplified database name, like 'enwiki'.
    • {wiki.dbName}: The database name, like 'enwiki'.
    • {wiki.lang}: The ISO 639 language associated with the wiki. (A few wikis have invalid codes like 'zh-classical' or 'noboard-chapters'.)
    • {wiki.family}: The project name, like 'wikibooks'.
    • {wiki.domain}: The domain portion of the URL, like 'fr.wikisource.org'.
    • {wiki.size}: The number of articles on the wiki.
    • {wiki.isClosed}: Whether the wiki is locked and no longer publicly editable.
    • {wiki.serverNumber}: The number of the server on which the wiki's replicated database is located.
    • {wiki.host}: The host name of the server on which the wiki's replicated database is located.
  • user:
    • {user.id}: The user's global identifier number.
    • {user.name}: The unique name of the user.
    • {user.registration}: The date on which the global account was registered.
    • {user.locked}: Whether the global account has been locked.