Last modified: 2013-07-22 22:40:14 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 T41910, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39910 - Template call as headerLabelPage
Template call as headerLabelPage
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
UploadWizard (Other open bugs)
master
All All
: Low minor (vote)
: ---
Assigned To: Yuvi Panda
:
Depends on:
Blocks: 37144 42164
  Show dependency treegraph
 
Reported: 2012-09-02 15:00 UTC by Platonides
Modified: 2013-07-22 22:40 UTC (History)
3 users (show)

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


Attachments

Description Platonides 2012-09-02 15:00:35 UTC
It should be possible to do a template call in the headerLabelPage instead of having a page per campaign per language.

So it should be possible to do:
{{Wiki Loves Monuments header|lang=$1|campaign=$2}}

or

{{WLM-is-running|$2| {{Upload_campaign_header_$2 }} |before={{Upload_campaign_header_Wiki_Loves_Monuments_2012_August/$1}}|after={{Upload_campaign_header_Wiki_Loves_Monuments_2012_finished/$1}} }}

(which would have been very useful for the contest start)

The same field can double for both purposes, it's as simple as checking if it begins and ends with {{ }}, which are illegal for a page name.

The templates should of course work as any normal template, respect <noinclude>, allow autotranslation, etc.

Note that variable $2 for the campaign name would be a new one
(we would really need {{#sub: $2 | 4}}, but that can be workarounded with an ugly switch).


Same support would be interesting for other fields like idFieldLabelPage and thanksLabelPage, too.
Comment 1 Yuvi Panda 2013-07-09 19:08:07 UTC
Any reason we can't just get rid of the entire 'page name' business and just have wikitext everywhere?
Comment 2 Platonides 2013-07-09 22:42:46 UTC
We had talked about this on irc. That's also fine for me. You want some backwards compatibility, but that's outside WLM needs.
I would bump the major version of the extension on the change.

Feel free to duplicate this to a “use wikitext everywhere” bug.
Comment 3 Yuvi Panda 2013-07-09 22:54:34 UTC
A *huge* patch got merged into UW earlier today, which was an almost-full-rewrite of the campaigns code. So a major revision bump is coming anyway :)
Comment 4 Yuvi Panda 2013-07-10 00:53:37 UTC
Should also be fixed by https://gerrit.wikimedia.org/r/#/c/72869/
Comment 5 Gerrit Notification Bot 2013-07-10 00:57:38 UTC
Change 72869 had a related patch set uploaded by Yuvipanda:
Enable use of wikitext in field labels

https://gerrit.wikimedia.org/r/72869
Comment 6 Yuvi Panda 2013-07-22 22:40:14 UTC
Deployed on Commons today \o/

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


Navigation
Links