https://bugzilla.wikimedia.org/show_bug.cgi?id=39910
Web browser: ---
Bug #: 39910
Summary: Template call as headerLabelPage
Product: MediaWiki extensions
Version: master
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: UploadWizard
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
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.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l