Template call as headerLabelPage
Closed, ResolvedPublic


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}}


{{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.

Version: master
Severity: minor

bzimport added a project: UploadWizard.Via ConduitNov 22 2014, 12:57 AM
bzimport set Reference to bz39910.
Platonides created this task.Via LegacySep 2 2012, 3:00 PM
yuvipanda added a comment.Via ConduitJul 9 2013, 7:08 PM

Any reason we can't just get rid of the entire 'page name' business and just have wikitext everywhere?

Platonides added a comment.Via ConduitJul 9 2013, 10:42 PM

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.

yuvipanda added a comment.Via ConduitJul 9 2013, 10:54 PM

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 :)

gerritbot added a comment.Via ConduitJul 10 2013, 12:57 AM

Change 72869 had a related patch set uploaded by Yuvipanda:
Enable use of wikitext in field labels


yuvipanda added a comment.Via ConduitJul 22 2013, 10:40 PM

Deployed on Commons today \o/

Gilles added a project: Multimedia.Via WebDec 4 2014, 10:53 AM
Gilles moved this task to Done on the Multimedia workboard.

Add Comment