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.

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

Table rows counter
Probably not compatible with nested tables.