Difference between revisions of "Template:CSSV2"
Jump to navigation
Jump to search
Jianmingyong (talk | contribs) m |
Jianmingyong (talk | contribs) m |
||
| (One intermediate revision by the same user not shown) | |||
| Line 4: | Line 4: | ||
It does not support @media selector or complex selector that doesn’t fit in style parameters. | It does not support @media selector or complex selector that doesn’t fit in style parameters. | ||
Anyway, with this template, we can now standardize | Anyway, with this template, we can now standardize the css which is easier to manage especially if there are so many templates and many inline css all over the place. | ||
How this works is that you define a class name with the corresponding css code without braces. | How this works is that you define a class name with the corresponding css code without braces. | ||
In your template, use {{CSSV2|<Your class name>|<Params...>}} and it will expand the css for you. | In your template, use {{CSSV2|<Your class name>|<Params...>}} and it will expand the css for you. | ||
DO NOT USE <div class=“”> as this is not an actual stylesheet. In fact I can’t include stylesheet so you have to use an ugly workaround. | |||
--> | --> | ||
</noinclude><includeonly>{{#switch: {{{1|}}} | </noinclude><includeonly>{{#switch: {{{1|}}} | ||
| | | | ||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 19:31, 4 September 2019
|