Template:BASEPAGENAME/doc

    From BelieveTheSign
    < Template:BASEPAGENAME
    Revision as of 20:06, 27 December 2021 by Admin (talk | contribs) (Created page with "{{Documentation subpage}} === Usage === The builtin template <code><nowiki>{{BASEPAGENAME}}</nowiki></code> does not work on this wiki for all namespaces (and notably not in t...")
    (diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

    Script error: No such module "Message box".

    Usage

    The builtin template {{BASEPAGENAME}} does not work on this wiki for all namespaces (and notably not in the "Template:" namespace, where it is needed to manage "/doc" and "/sandbox" subpages).

    This is a workaround that you can call using {{Template:BASEPAGENAME}} instead.

    Also, unlike the builtin template, it will de-HTML-ize its return value (e.g. apostrophes and a few other ASCII punctuations accepted in page titles)

    In the main Template:BASEPAGENAME page and in its documentation subpage Template:BASEPAGENAME/doc, it should return the same value without any namespace prefix. On this page it currently returns "BASEPAGENAME".

    It works using MediaWiki Extension:StringFunctions which is enabled on this wiki.

    See also