User:Jioruji Derako/roundy replacing
Alright, here's the mission, folks.
Due to our over-usage of templates on many pages, it appears we've hit the maximum number of templates possible on some pages. In an attempt to fix this, one of our more recently prominent templates, Template:Roundy, has been partly replaced by a much simpler CSS class. What does this mean?
Basically, since the primary use of the Roundy template is to transclude some CSS coding into various tables and div tags across the 'pedia, it's just as simple to just put that CSS coding into our main CSS page and assign it to classes. The classes can only do a border-radius of 10px, which is the template's default; any use of the Roundy template to give borders more or less than 10px will continue to use the template (at the very least, for the time being).
So here's the task, basically.
Find instances of Template:Roundy that are only using default settings. These templates will be found in divs and tables, like so for divs:
<div style="{{roundy}}">
</div>
and like so for tables:
{| style="{{roundy}}"
|
|}
What we need to do is remove these uses of the template, and replace them with the classes. The result of that will look like this for divs:
<div class="roundy">
</div>
and like this for tables:
{| class="roundy"
|
|}
Now, some (most) templates and divs contain other coding in the style= area, so make sure to leave this intact. Some tables and divs also have classes already; you can add multiple classes to one class= area, just seperate the classes with spaces (nothing else, like so: class="roundy noticebar").
There are instances where the rounded corners should only appear on certain corners. We have multiple Roundy templates for this, as well as some possible instances of the default Roundy template only adjusting specific corners.
There are classes to handle this as well:
- roundytl (rounded, top-left)
- roundytr (rounded, top-right)
- roundybl (rounded, bottom-left)
- roundybr (rounded, bottom-right)
- roundytop (rounded, top-left and top-right)
- roundybottom (rounded, bottom-left and bottom-right)
- roundyleft (rounded, top-left and bottom-left)
- roundyright (rounded, top-right and bottom-right)
these classes can be used in tandem with each other, although it's probably best to avoid using overlapping ones together (just to be safe).
- No categories associated with this article