Navigation menu

Template:Round: Difference between revisions

From Metroid Wiki
mNo edit summary
mNo edit summary
Line 2: Line 2:


==Usage==
==Usage==
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 10 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:
*<nowiki>{{</nowiki>'''[[Template:Roundtl|Roundtl]]'''<nowiki>}}</nowiki>
*<nowiki>{{</nowiki>'''[[Template:Roundtr|Roundtr]]'''<nowiki>}}</nowiki>
*<nowiki>{{</nowiki>'''[[Template:Roundbr|Roundbr]]'''<nowiki>}}</nowiki>
*<nowiki>{{</nowiki>'''[[Template:Roundbl|Roundbl]]'''<nowiki>}}</nowiki>


[[Category:Formatting Templates|R]]
[[Category:Formatting Templates|R]]
</noinclude>
</noinclude>

Revision as of 23:30, 21 July 2010

border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; -khtml-border-radius: 10px; -icab-border-radius: 10px; -o-border-radius: 10px;

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 10 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: