User:HumansCanWinElves/Snippets

__NEWSECTIONLINK__ Snippets are For FandomDesktop unless specified otherwise

Admin username customization
The words in all-caps are to be replaced with the actual username, color, etc.
 * For the color you can use basic names like blue or any HTML/CSS color.
 * For a font you can use common ("Web Safe") fonts that will be visible to most users, or import a font from Google Fonts.
 * For usernames with a space on them, replace the space with an underscore _ . Other special characters such as  &  or  '  will require special encoding.

Full background on FandomDesktop, using the image that was uploaded on Oasis

 * Fits for a wide centered image. Splitted image would need a different code. Tiled or non-fixed image would need little alteration.
 * The second part is needed to remove the header gradient, which doesn't go up well with the full background image.
 * It's not clear if it is possible to upload another image under the same name once Oasis is removed, since the file has no extension. If not, it's possible to upload to another name (such as Wiki-background.png) and changing the code accordingly.

Center-aligned tab labels, on tabbers or portable infoboxes
Note: All the tabs snippets below apply to both tabbers, infobox tabs and infobox image tabs. To affect only one of those, replace  with either   or.

(If you are going to put infoboxes inside tabbers or vice-versa, special adjustments may be required)

Option 1
Centered when there are few labels. Scrolling horizontally when there are many labels (Credit: .krowl25)

Option 2
Spreading evenly when there are few labels. Scrolling horizontally when there are many labels.

Option 3
Centered when there are few labels. Centered and breaks into multiple lines when there are many labels. Don't use this method without the wrapping, as this will end up with unreachable labels when there are many (see this discussion). Though even with the wrapping, an issue may arise in case of a very long single label.

Multiline tab labels
As option 3 above, but can be used without the centering part.

Option 1
(Cooperating with the flexbox) or

Option 2
(Throwing the flexbox away) or