Template:Round corners: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
(Created page with "<includeonly>{{border-radius|1em}} {{box-shadow|0.1em|0.1em|0.5em|rgba(0,0,0,0.75)}}</includeonly><!-- --><noinclude> === Usage === This template is used to produce rounded corn...")
 
m (Protected "Template:Round corners": High-importance template: templates are crucial to the operation of this wiki, so need appropriate protection (‎[move=sysop] (indefinite)))
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{border-radius|1em}} {{box-shadow|0.1em|0.1em|0.5em|rgba(0,0,0,0.75)}}</includeonly><!--
<includeonly>{{border-radius|1em}} {{box-shadow|0.1em|0.1em|0.5em|rgba(0,0,0,0.75)}}</includeonly><!--
--><noinclude>
--><noinclude>
=== Usage ===
;Usage
This [[:Category:Templates|template]] is used to produce rounded corners for tables.  Just embed it in any <nowiki><div>, <table>: etc.</nowiki> element.


This template is used to produce rounded corners for tables. Just embed it in any <nowiki><div>, <table>: etc.</nowiki> element.
;Example
 
<pre><div style="background-color:#ffff66; {{round corners}} padding:0.5em 1em">Text text text</div></pre>
==== Example ====
 
<pre><div style="background-color: #ffff66; {{round corners}} padding: 0.5em 1em;">Text text text</div></pre>
:''which produces:''
:''which produces:''
<div style="background-color: #ffff66; {{round corners}} padding: 0.5em 1em;">Text text text</div>
<div style="background-color:#ffff66; {{round corners}} padding:0.5em 1em">Text text text</div>
</noinclude>
</noinclude>
<noinclude>
[[Category:Templates|Round corners]]</noinclude>

Latest revision as of 10:02, 18 September 2012

Usage

This template is used to produce rounded corners for tables. Just embed it in any <div>, <table>: etc. element.

Example
<div style="background-color:#ffff66; {{round corners}} padding:0.5em 1em">Text text text</div>
which produces:
Text text text