Last modified: 2014-11-10 18:57:56 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 T20703, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18703 - Create non-expensive variable version of {{PAGESIZE}} for current page, and let it get the correct size of the current page when previewing and saving
Create non-expensive variable version of {{PAGESIZE}} for current page, and l...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-07 10:06 UTC by Amalthea
Modified: 2014-11-10 18:57 UTC (History)
3 users (show)

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


Attachments

Description Amalthea 2009-05-07 10:06:06 UTC
The PAGESIZE parser function should also work as a magic word with no parameters, {{PAGESIZE}}. In such a case, it should not count as an expensive parser function, and it should return the size of the page that is currently saved, not the size as it was before. The current workaround {{PAGESIZE:{{FULLPAGENAME}}}} is expensive and retrieves the old pagesize from the db, which will usually not be the intended functionality, and needs a purge to return the current size.

It would be perfect if the parser function behaved like that, too, when applied to {{FULLPAGENAME}}, for consistency at least, but I think one could live with the current behaviour there.
Comment 1 Splarka 2009-05-07 10:18:10 UTC
Updating summary a bit.

Also (per r49575 and such) please consider renaming this to {{REVISIONSIZE}} (variable) and {{REVISIONSIZE:}} (parserfunction) with {{PAGESIZE:}} (parserfunction) as a legacy alias.
Comment 2 Umherirrender 2013-09-21 12:10:49 UTC
A variable {{REVISIONSIZE}} was added with Gerrit change #82650
Comment 3 Amalthea 2014-06-16 10:19:25 UTC
Functionality is now as requested, but what Splarka wrote in comment #1 is still valid: REVISIONUSER (for example) works as both a magic word and an (expensive) parser function, but for page size you need to use REVISIONSIZE for the current page and PAGESIZE as the (expensive) parser function.
That should be straightened out at some point.

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


Navigation
Links