Page MenuHomePhabricator

All parser functions and magic words should allow # preceding
Closed, DuplicatePublic

Description

For consistency's sake, all magic words and parser functions should be able to be preceded by a #. While we obviously can't go back in time and add consistency, add aliases seems perfectly acceptable.

Examples include {{PAGENAME}} --> {{#PAGENAME}}, {{lc:Foo}} --> {{#lc:Foo}}, etc.


Version: unspecified
Severity: enhancement
URL: http://www.mediawiki.org/wiki/Help:Magic_words

Details

Reference
bz16715

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:25 PM
bzimport set Reference to bz16715.
bzimport added a subscriber: Unknown Object (MLST).

conrad.irwin wrote:

*** Bug 22439 has been marked as a duplicate of this bug. ***

conrad.irwin wrote:

*** Bug 22530 has been marked as a duplicate of this bug. ***

dasch wrote:

I think Behavior switches should stay as they are. And there should be a variable for a compatibility mode so that the old can be switched off, so when a wiki does not want use the old style anymore it can be disabled

dasch wrote:

maybe there could be different parserfunctions
for example like
{{#page:name}} = {{PAGENAME}}
{{#page:name|url}} = {{PAGENAMEE}}
{{#page:namespace}} = {{NAMESPACE}}
{{#page:talk}} = {{TALKPAGENAME}}

and

{{#server:url}} = {{SERVER}}
{{#server:version}} = {{CURRENTVERSION}}

just an idea, but I think that this is a good idea to create a parserfunction for every variable and give the possibility to disable variables

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 13 2016, 10:15 AM
Restricted Application added a subscriber: Liuxinyu970226. · View Herald TranscriptApr 11 2020, 10:54 AM