MediaWiki talk:Sitenotice

Add topic
From Miraheze Meta, Miraheze's central coordination wiki
Latest comment: 11 months ago by Agent Isai in topic View the survey button

button class[edit source]

@Agent Isai The HTML for the "View the survey" portion of the button is incorrect. The HTML below is correct.

<span style="float: right; color: white;">[[Community Wishlist Survey|<span class="mw-ui-button mw-ui-progressive">View the survey</span>]]</span>
Funa-enpitutalk/Posting Record) 07:21, 14 December 2022 (UTC)Reply[reply]
Thank you so much for this! I have edited this now. Agent Isai Talk to me! 23:55, 15 December 2022 (UTC)Reply[reply]

View the survey button[edit source]

The color for the text inside the button is currently blue, the default color for links. In order to change it to white, replace the wikilink with an <a> link and set color: white; as an inline style. OrangeStar (talk) 17:58, 14 December 2022 (UTC)Reply[reply]

Alternatively, if <a> elements are undesirable, you can wrap the link inside a <span>, assign it an id like viewthesurvey-wrapper, and use some l33t tr1ckz in MediaWiki:Common.css, like this:
#viewthesurvey-wrapper > a { color: white; }. OrangeStar (talk) 18:04, 14 December 2022 (UTC)Reply[reply]
The <a> tag will not work with MediaWiki, and editing Common.css is unnecessary for a simple color change. Another user has posted an alternative solution in the thread above. Tali64³ (talk) 18:06, 14 December 2022 (UTC)Reply[reply]
But using hacks is so much more fun that the correct solution :( OrangeStar (talk) 18:12, 14 December 2022 (UTC)Reply[reply]
I actually had not thought about the fact that the reason it was blue was because it was inheriting the link color, good catch and I will keep that in mind for the future. Agent Isai Talk to me! 23:56, 15 December 2022 (UTC)Reply[reply]