Difference between revisions of "Template:CSSV2"
Jump to navigation
Jump to search
Jianmingyong (talk | contribs) m |
Jianmingyong (talk | contribs) m |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude>{{WarningV2}}</noinclude><includeonly>{{#switch: {{{1|}}} | <noinclude>{{WarningV2}} | ||
<!-- | |||
This is a special template that simulate css class selector. | |||
It does not support @media selector or complex selector that doesn’t fit in style parameters. | |||
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. | |||
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|}}} | |||
| | | | ||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 19:31, 4 September 2019
|