Template:Round: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
(Created page with " -moz-border-radius:{{#ifeq:{{{1|}}}|{{void}}|15|{{{1|}}}}}px;border-radius:{{#ifeq:{{{1|}}}|{{void}}|15|{{{1|}}}}}px; -webkit-border-radius:{{#ifeq:{{{1|}}}|{{void}}|15|{{{1|}...")
 
m (Text replacement - "]] </noinclude>" to "]]</noinclude>")
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#if:{{{full|}}}
|-moz-border-radius: {{{1|15}}}px; -webkit-border-radius: {{{1|15}}}px; khtml-border-radius: {{{1|15}}}px; -icab-border-radius: {{{1|15}}}px; border-radius: {{{1|15}}}px;
|-moz-border-radius: {{{1|15}}}px 0; -webkit-border-radius: {{{1|15}}}px 0; khtml-border-radius: {{{1|15}}}px 0; -icab-border-radius: {{{1|15}}}px 0; border-radius: {{{1|15}}}px 0;}}<noinclude>


==Info==
This template generates border rounding code. Use it in the "style" property of an element.


-moz-border-radius:{{#ifeq:{{{1|}}}|{{void}}|15|{{{1|}}}}}px;border-radius:{{#ifeq:{{{1|}}}|{{void}}|15|{{{1|}}}}}px; -webkit-border-radius:{{#ifeq:{{{1|}}}|{{void}}|15|{{{1|}}}}}px;khtml-border-radius:{{#ifeq:{{{1|}}}|{{void}}|15|{{{1|}}}}}px; -icab-border-radius:{{#ifeq:{{{1|}}}|{{void}}|15|{{{1|}}}}}px;<noinclude>
==Parameters==
{| class = "wikitable"
! Parameter || Mandatory || Default || Purpose || Detailed description
|-
! 1
| No || 15 || Radius || Radius of the rounded border. Do not include the "px" after the number.
|-
! full
| No || || All corners || If this has a value, like "y", all corners are curved. Otherwise, only the top-left and bottom-right are.
|}


==Usage==
==Skeleton==
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.
<pre>
[[Category:Formatting Templates|{{PAGENAME}}]]
{{round | <radius> | full = <y>}}
</pre>
 
[[Category:Templates]]</noinclude>

Latest revision as of 02:02, August 30, 2019

-moz-border-radius: 15px 0; -webkit-border-radius: 15px 0; khtml-border-radius: 15px 0; -icab-border-radius: 15px 0; border-radius: 15px 0;

Info

This template generates border rounding code. Use it in the "style" property of an element.

Parameters

Parameter Mandatory Default Purpose Detailed description
1 No 15 Radius Radius of the rounded border. Do not include the "px" after the number.
full No All corners If this has a value, like "y", all corners are curved. Otherwise, only the top-left and bottom-right are.

Skeleton

{{round | <radius> | full = <y>}}