Navigation menu
Template:Round: Difference between revisions
From Metroid Wiki
mNo edit summary |
mNo edit summary |
||
Line 4: | Line 4: | ||
This template is used to automatically generate all of the border rounding code. To use it, type <nowiki>{{round|radius}}</nowiki> within a styling. The radius is the radius of the rounded border. If left blank, it will default to 15 pixels. Do not include a px after the number, and remember that the radius is in pixels. Be sure to include a semicolon after it if it is not the last item in the styling. | This template is used to automatically generate all of the border rounding code. To use it, type <nowiki>{{round|radius}}</nowiki> within a styling. The radius is the radius of the rounded border. If left blank, it will default to 15 pixels. Do not include a px after the number, and remember that the radius is in pixels. Be sure to include a semicolon after it if it is not the last item in the styling. | ||
There are alternate templates that can be used in place of this one. Each has a certain corner that it forces round. They are: | There are alternate templates that can be used in place of this one. Each has a certain corner or side that it forces round. Be sure that if one is changed, that they are all changed. They are: | ||
{| style="{{round|20px}}; border: 1px solid #{{mw color light}}; background-color: #{{mw color}}; padding: 5px" border=1 | |||
| style="{{roundtl}}; border: 4px solid #{{mw color light}}; background-color: #{{mw color}}; padding: 5px" | <nowiki>{{</nowiki>'''[[Template:Roundtl|Roundtl]]'''<nowiki>}}</nowiki> | |||
| style="{{roundt}}; border: 4px solid #{{mw color light}}; background-color: #{{mw color}}; padding: 5px" | <nowiki>{{</nowiki>'''[[Template:Roundt|Roundt]]'''<nowiki>}}</nowiki> | |||
| style="{{roundtr}}; border: 4px solid #{{mw color light}}; background-color: #{{mw color}}; padding: 5px" | <nowiki>{{</nowiki>'''[[Template:Roundtr|Roundtr]]'''<nowiki>}}</nowiki> | |||
|- | |||
| style="{{roundl}}; border: 4px solid #{{mw color light}}; background-color: #{{mw color}}; padding: 5px" | <nowiki>{{</nowiki>'''[[Template:Roundl|Roundl]]'''<nowiki>}}</nowiki> | |||
| style="{{round}}; border: 4px solid #{{mw color light}}; background-color: #{{mw color dark}}; padding: 5px" | <nowiki>{{</nowiki>'''[[Template:Round|Round]]'''<nowiki>}}</nowiki> | |||
| style="{{roundr}}; border: 4px solid #{{mw color light}}; background-color: #{{mw color}}; padding: 5px" | <nowiki>{{</nowiki>'''[[Template:Roundr|Roundr]]'''<nowiki>}}</nowiki> | |||
|- | |||
| style="{{roundbl}}; border: 4px solid #{{mw color light}}; background-color: #{{mw color}}; padding: 5px" | <nowiki>{{</nowiki>'''[[Template:Roundbr|Roundbr]]'''<nowiki>}}</nowiki> | |||
| style="{{roundb}}; border: 4px solid #{{mw color light}}; background-color: #{{mw color}}; padding: 5px" | <nowiki>{{</nowiki>'''[[Template:Roundb|Roundb]]'''<nowiki>}}</nowiki> | |||
| style="{{roundbr}}; border: 4px solid #{{mw color light}}; background-color: #{{mw color}}; padding: 5px" | <nowiki>{{</nowiki>'''[[Template:Roundbl|Roundbl]]'''<nowiki>}}</nowiki> | |||
|} | |||
[[Category:Formatting Templates|R]] | [[Category:Formatting Templates|R]] | ||
</noinclude> | </noinclude> |
Revision as of 03:57, 6 August 2010
border-radius: 15px; -moz-border-radius: 15px; -webkit-border-radius: 15px; -khtml-border-radius: 15px; -icab-border-radius: 15px; -o-border-radius: 15px;
Usage
This template is used to automatically generate all of the border rounding code. To use it, type {{round|radius}} within a styling. The radius is the radius of the rounded border. If left blank, it will default to 15 pixels. Do not include a px after the number, and remember that the radius is in pixels. Be sure to include a semicolon after it if it is not the last item in the styling.
There are alternate templates that can be used in place of this one. Each has a certain corner or side that it forces round. Be sure that if one is changed, that they are all changed. They are:
{{Round}} |