Timo Tijhof
7a3a39b57b
Fix dangling comma-space-dot on Special:CiteThisPage
...
Examples of this issue in production:
* https://nl.wikipedia.org/wiki/Maan -> "Cite ethis page" ->
https://nl.wikipedia.org/w/index.php?title=Speciaal:Citeren&page=Maan&id=64037828&wpFormIdentifier=titleform
> Uitgever: Wikipedia, .
* https://es.wikipedia.org/wiki/Luna -> "Cite this page" ->
https://es.wikipedia.org/w/index.php?title=Especial:Citar&page=Luna&id=150096436&wpFormIdentifier=titleform
> Publisher: Wikipedia, .
* https://www.mediawiki.org/wiki/MediaWiki:Citethispage-content
> Publisher: MediaWiki, .
The "sitesubtitle" message has been empty by default for nearly
twenty years (since 2005, T6192) and is tolerated as such by the Skin.
The CiteThisPage extension as such should not unconditionally render
it in a way that relies on it having a non-empty value.
Credit to Nicole Sharp for raising this issue at
<https://www.mediawiki.org/wiki/MediaWiki_talk:Citethispage-content >.
I considered replacing it with {{SERVERNAME}}, but decided to instead
remove it since the domain name is already given in the permalink
on the same line.
Change-Id: If39a2b6dd4dda7309f538a40a1d567b479f99ce8
2023-03-24 19:42:57 -07:00
Kunal Mehta
096f6e91fc
Rewrite to avoid messing with global state
...
The main goal of this rewrite is to not use or mess with any global
state.
The ParserGetVariableValueTs and ParserGetVariableValueVarCache hooks
were replaced with setting the timestamp via
ParserOptions::setTimestamp(). This also means that {{#time:...}} from
ParserFunctions extension will correctly use the page's timestamp
instead of the current one.
Disabling tidy is also done using ParserOptions instead of changing
global state.
Change-Id: Ib2810aa5891c57831380a1a4718656cc09932b96
2016-09-19 16:29:14 -07:00
Siebrand Mazeland
c0082dd7a6
Update identation to use tabs
...
Change-Id: I601a67d9f551d233f34c36b8e1e3ec0fe2c1542f
2015-10-12 09:06:26 +02:00
James D. Forrester
7c705dbac3
Rename to "CiteThisPage", make Special:CiteThisPage the primary location
...
Also remove vestiges of the Cite extension from when this used to live in
the same repo.
Change-Id: I17dfad706d46afb452e8ff29140834174470b398
2014-08-30 15:29:33 -07:00