See T27973: Give a login link to Anoneditwarning and Anonprevieweditwarning where Roan first proposes this idea.
Description
Details
- Reference
- bz27264
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
New magicword: {{LOGINLINK}} | mediawiki/core | master | +23 -0 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Jdforrester-WMF | T27973 Give a login link to Anoneditwarning and Anonprevieweditwarning | |||
Declined | None | T29264 Create a {{LOGINLINK}} magic word |
Event Timeline
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}}