Template:RoB style

From Ring of Brodgar
Revision as of 06:32, 3 January 2021 by MvGulik (talk | contribs) (Drop border line on "shareddata" (some fix is needed to not make it show/cross the infobox area - float related issue probably).)
Jump to navigation Jump to search
Template documentation (for the template shown above, sometimes hidden or invisible)
Description
This is a global color-style support template.
...


Syntax
Basic use: {{RoB style|color-style-name}}
Used where a css style="..." command can be used.


Extended use: :{{RoB style|color-style-name|additional css}}
Important: As CSS don't supports multiple style-commands per element (it ignores all but the last one).
As such the additional css part needs to be used to add additional styling to an element.


Dependency
Uses and relies on the RoB color template for the actual used (background)colors.


Sample text-output
{{RoB style|infoboxheader}} => style="background-color:#3366CC; color:white; font-size:1.2em; padding:1em; "
{{RoB style|infoboxheader|border:2px;}} => style="background-color:#3366CC; color:white; font-size:1.2em; padding:1em; border:2px;"


Available color-style-names

infoboxheader: infoboxheader

infoboxsection: infoboxsection
infoboxfoother: infoboxfoother
shareddata: shareddata

Visit Template:RoB style/doc to edit this text! (How does this work?)