parser: add speculative page IDs to use with {{PAGEID}}
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 27 Jun 2019 04:30:35 +0000 (21:30 -0700)
committerTim Starling <tstarling@wikimedia.org>
Fri, 26 Jul 2019 06:41:00 +0000 (16:41 +1000)
commit5099ee9f7273ea156eea8afa033548b800828639
tree3779a28e93bd9de980a2fb85547aba92e01453af
parent5919c427f422b921b8aa2dfc5f3c725dfbba7d9a
parser: add speculative page IDs to use with {{PAGEID}}

This works similarly to speculative rev IDs with {{REVISIONID}}.
Re-parses can be avoided if the page ID is correctly guessed.

Also make the {{PAGEID:X}} parser function set vary-page-id.

Bug: T226785
Change-Id: I0b19be45e6ddd6cde330bfcd09d243e4e5beda01
RELEASE-NOTES-1.34
includes/Revision/RenderedRevision.php
includes/Revision/RevisionRenderer.php
includes/Storage/PageEditStash.php
includes/content/WikitextContent.php
includes/parser/CoreParserFunctions.php
includes/parser/Parser.php
includes/parser/ParserOptions.php
includes/parser/ParserOutput.php