Page MenuHomePhabricator

Create a {{LOGINLINK}} magic word
Closed, DeclinedPublic

Description

Details

Reference
bz27264

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 11:20 PM
bzimport set Reference to bz27264.
bzimport added a subscriber: Unknown Object (MLST).

Pasted here for convenience:

"The proper link [to the login page] can't be generated with wikitext alone (the &returnto parameter can be, but &returntoquery can't), so I guess we should introduce a {{LOGINLINK}} magic word or something."

For what is worth I have missed this as well. If this is not too complex, and if we agree it is still a good idea, perhaps we could offer the task as EASY?

(In reply to Quim Gil from comment #1)

Pasted here for convenience:

"The proper link [to the login page] can't be generated with wikitext alone
(the &returnto parameter can be, but &returntoquery can't), so I guess we
should introduce a {{LOGINLINK}} magic word or something."

For what is worth I have missed this as well. If this is not too complex,
and if we agree it is still a good idea, perhaps we could offer the task as
EASY?

That would pollute parser cache. Unless you plan to use this only from i18n messages, it won't work.

(In reply to Bawolff (Brian Wolff) from comment #2)

(In reply to Quim Gil from comment #1)

Pasted here for convenience:

"The proper link [to the login page] can't be generated with wikitext alone
(the &returnto parameter can be, but &returntoquery can't), so I guess we
should introduce a {{LOGINLINK}} magic word or something."

For what is worth I have missed this as well. If this is not too complex,
and if we agree it is still a good idea, perhaps we could offer the task as
EASY?

That would pollute parser cache. Unless you plan to use this only from i18n
messages, it won't work.

Which I suppose there is precedent with things like {{GENDER:..}} working differently in messages then in page text. (In this case it could have the returntoquery in messages, and just the returnto= in page text), although that feels kind of icky.

Change 552624 had a related patch set uploaded (by Ammarpad; owner: Ammarpad):
[mediawiki/core@master] New magicword: {{LOGINLINK}}

https://gerrit.wikimedia.org/r/552624

Change 552624 abandoned by Ammarpad:
New magicword: {{LOGINLINK}}

https://gerrit.wikimedia.org/r/552624