Last modified: 2011-04-14 15:11:05 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T18715, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16715 - All parser functions and magic words should allow # preceding
All parser functions and magic words should allow # preceding
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Low enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.mediawiki.org/wiki/Help:Ma...
:
: 22439 22530 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-19 22:27 UTC by MZMcBride
Modified: 2011-04-14 15:11 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description MZMcBride 2008-12-19 22:27:14 UTC
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.
Comment 1 Conrad Irwin 2010-02-11 23:32:26 UTC
*** Bug 22439 has been marked as a duplicate of this bug. ***
Comment 2 Conrad Irwin 2010-02-15 17:22:34 UTC
*** Bug 22530 has been marked as a duplicate of this bug. ***
Comment 3 DaSch 2010-02-15 19:34:09 UTC
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
Comment 4 DaSch 2010-02-18 15:11:13 UTC
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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links