SO I run and mod a Deltarune AU wiki (Monster Academy) and have no idea how to add a staff page to showcase our team so far (for reasons). Could somebody please help me?
Uhhh random image:
SO I run and mod a Deltarune AU wiki (Monster Academy) and have no idea how to add a staff page to showcase our team so far (for reasons). Could somebody please help me?
Uhhh random image:
You can copy-paste the code from there (and credit where you got the code from).
Additional templates you would have to copy are Template:User Avi and its script User Avatar Finder.
Thanks!!
Btw, know how to add color to names on wiki's? (sorry if im asking things too much lol)
You can paste this in your MediaWiki:Common.css to get username colors:
a[href$=":UsernameGoesHere"], a[href$="/UsernameGoesHere"], a[href$="/(User ID)"]{
color:#{ColorOfYourChoice) !important;
font-weight: bold !important;
text-shadow:#FFAC59 0px 0px 5px, #FFAC59 0px 0px 5px !important;
}
Replace UsernameGoesHere with your (or someone else's) username, and (ColorOfYourChoice) with the hex code of the color of your (or their) choice. Also, replace (User ID) with the ID of the user.
However, if the username has spaces in it, use this code:
a[href$=":Username_Here"], a[href$="/Username_Here"],
a[href$=":Username%20Here"], a[href$="/Username%20Here"],
a[href$=":Username Here"], a[href$="/Username Here"], a[href$="/(User ID)"]{
color:#(ColorOfYourChoice) !important;
font-weight: bold !important;
text-shadow:#000000 0px 0px 10px, #FA8C8C 0px 0px 5px !important;
}
In the first line, you put an underscore as a replacement for the spaces. In the second line, you put %20 as the replacement for the spaces. In the third line, you can put the username as it is. Also, of course, replace (User ID) with the ID of the user and (ColorOfYourChoice) with the hex code of their desired color.
^Thank you so much!!
@/Evoflam What does user ID color? It doesn't work for discussions (where it would be used) because css and js don't work there.
^^ No problem :)
^ The User ID isn't mandatory for coloring but it helps to consistently style all links to a specific user (basically covering all possible link formats). Without including the user ID, it's possible that you may miss some of the link formats.
It doesn't work for discussions because the discussions come under Fandom's Unified Community Platform (UCP) and it's JavaScript-based and dynamically loaded, unlike the regular pages which use HTML and CSS. So therefore whatever you put in the MediaWiki:Common.css doesn't "reach" the discussions. Also, discussions use Shadow DOM or dynamic rendering, so CSS doesn't apply there.
I believe you would need some JS injection via the MediaWiki:Common.js to work around this, but unfortunately even that has limited effect on discussions. Some communities even request features from Fandom staff. Otherwise, I'm pretty sure custom username colors are limited to wiki content rather than discussions and/or forums.
If you use "(User ID)" you could end up highlighting a random user's username.
For a simpler code, use:
a[href$=":Username"],
a[href$="/Username"] {
color: COLORNAME !important;
}
To correct the second code Evoflam shared, you would use:
a[href$=":Example_Person"],
a[href$="/Example_Person"],
a[href$=":Example%20Person"],
a[href$="/Example%20Person"] {
color: COLORNAME !important;
}
I apologise for the necropost but @/No0n4m3S:: there's a specific user id assigned to each user upon the creation of their account. So it can't be random.
Oh ok.
What do you think?