No edit summary |
(→Lua support: new section) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
Thanks! | Thanks! | ||
--[[User:Oh0kaYthen86|Oh0kaYthen86]] ([[User talk:Oh0kaYthen86|talk]]) 13:09, 12 April 2023 (EDT) | --[[User:Oh0kaYthen86|Oh0kaYthen86]] ([[User talk:Oh0kaYthen86|talk]]) 13:09, 12 April 2023 (EDT) | ||
<br><br> | |||
Adjusted the CSS to work with the background color, so we're good. | |||
--[[User:YouArentDistorted|YouArentDistorted]] ([[User talk:YouArentDistorted|talk]]) 22:00, 12 April 2023 (EDT) | |||
<br><br> | |||
I appreciate the attempt for a fix greatly, but now the color of the span text with the "stub" ID is universally #ffffff across all wikis. Maybe it's because its color is only defined once within the entire [[MediaWiki:Cosmos.css|Cosmos.css]] stylesheet as that hex value, so it reads that as the default? | |||
--[[User:Oh0kaYthen86|Oh0kaYthen86]] ([[User talk:Oh0kaYthen86|talk]]) 23:29, 12 April 2023 (EDT) | |||
<br><br> | |||
Right; forgot to constrain it according to the namespace. Should be working properly now. | |||
--[[User:YouArentDistorted|YouArentDistorted]] ([[User talk:YouArentDistorted|talk]]) 06:00, 13 April 2023 (EDT) | |||
<br><br> | |||
Looks like it's fixed now, thank you very much! ^^ | |||
--[[User:Oh0kaYthen86|Oh0kaYthen86]] ([[User talk:Oh0kaYthen86|talk]]) 10:57, 13 April 2023 (EDT) | |||
== Lua support == | |||
--[[User: | Hey! I noticed that [[Template:MessageBox]] requires Lua integration to operate properly. It's the base template for templates such as [[Template:Delete]]. Currently, the template is broken and [https://yume.wiki/Special:WhatLinksHere?target=Template%3AMessageBox displaying an error message on all the pages that use it]. Are there any plans to integrate [[mw:Extension:Scribunto]] (the extension responsible)? --[[User:Liquid Doubloon|Liquid Doubloon]] ([[User talk:Liquid Doubloon|talk]]) 00:47, 24 April 2023 (EDT) |
Latest revision as of 04:47, 24 April 2023
Help request with editing Template:Stub
When this template is displayed on a wiki with a darker theme, the text will appear invisible (or almost impossible to read) because it is dark text on a dark background by default. See the Features section of the Blood n' Blood page on the Muma Rope Wiki as an example of this happening.
This is just a minor quirk I realize, but I was wondering if there was a good way to go about having it adapt to the theme of the wiki it's being displayed on, or at least include a parameter within the template itself that lets you toggle the text color accordingly so this doesn't happen with possible future wikis. If this isn't significant enough to warrant a template change, don't worry about it! I'm just not sure how to work with template code myself, so your guidance is greatly appreciated if you feel it's needed.
Thanks!
--Oh0kaYthen86 (talk) 13:09, 12 April 2023 (EDT)
Adjusted the CSS to work with the background color, so we're good.
--YouArentDistorted (talk) 22:00, 12 April 2023 (EDT)
I appreciate the attempt for a fix greatly, but now the color of the span text with the "stub" ID is universally #ffffff across all wikis. Maybe it's because its color is only defined once within the entire Cosmos.css stylesheet as that hex value, so it reads that as the default?
--Oh0kaYthen86 (talk) 23:29, 12 April 2023 (EDT)
Right; forgot to constrain it according to the namespace. Should be working properly now.
--YouArentDistorted (talk) 06:00, 13 April 2023 (EDT)
Looks like it's fixed now, thank you very much! ^^
--Oh0kaYthen86 (talk) 10:57, 13 April 2023 (EDT)
Lua support
Hey! I noticed that Template:MessageBox requires Lua integration to operate properly. It's the base template for templates such as Template:Delete. Currently, the template is broken and displaying an error message on all the pages that use it. Are there any plans to integrate mw:Extension:Scribunto (the extension responsible)? --Liquid Doubloon (talk) 00:47, 24 April 2023 (EDT)