Last modified: 2014-08-30 17:42:46 UTC
{{{banner}}} is not changed to the actual banner name and the CSS is broken because, in CSS { should not be used for id names. See [1]. This does not happen on betalabs [2]. Both these banners use the same code [3] [4]. I had to use a different name for id instead of #{{{banner}}} to make the CSS work. [5] [6] 1. https://meta.wikimedia.org/w/index.php?title=Special:Random&banner=10Anniversary_Uiquipedia&uselang=en&force=1 2. https://meta.wikimedia.beta.wmflabs.org/w/index.php?title=Special:Random&banner=Uiquipedia&uselang=en&force=1 3. http://meta.wikimedia.beta.wmflabs.org/wiki/Special:CentralNoticeBanners/edit/Uiquipedia 4. https://meta.wikimedia.org/wiki/Special:CentralNoticeBanners/edit/10Anniversary_Uiquipedia 5. https://meta.wikimedia.org/wiki/Special:CentralNoticeBanners/edit/10thAnniversary_Uiquipedia 6. https://meta.wikimedia.org/w/index.php?title=Special:Random&banner=10thAnniversary_Uiquipedia&uselang=en&force=1
Viewing the HTML source, the {{{banner}}} variable is actually being substituted correctly. The problem is because the banner name started with a digit. Contrast: https://meta.wikimedia.org/?banner=10Anniversary_Uiquipedia&force=1 (edit: https://meta.wikimedia.org/wiki/Special:CentralNoticeBanners/edit/10Anniversary_Uiquipedia) with this cloned renamed version: https://meta.wikimedia.org/?banner=Uiquipedia_10Anniversary&force=1 (edit: https://meta.wikimedia.org/wiki/Special:CentralNoticeBanners/edit/Uiquipedia_10Anniversary) The name is used in a CSS selector, and these cannot start with a digit (http://www.w3.org/TR/CSS21/syndata.html#characters) so that's why the banner is not styled correctly. I'll add a note to the documentation to avoid starting banner names with a digit.