Templat:Divbox/doc: Perbedaan antara revisi
Tampilan
Konten dihapus Konten ditambahkan
JohnThorne (bicara | kontrib) Tambahan kategori |
|||
(4 revisi perantara oleh 2 pengguna tidak ditampilkan) | |||
Baris 1: | Baris 1: | ||
Templat ini digunakan untuk membuat latar belakang teks berwarna. |
|||
This template is used to create coloured text background. |
|||
=== |
=== Penggunaan === |
||
<pre> |
|||
<nowiki>{{divbox|color of box|Headtitle|Message}}</nowiki> |
|||
{{divbox|1=style|2=title|3=content|radius=}} |
|||
</pre> |
|||
=== Parameter warna gaya (''style'') === |
|||
== Example == |
|||
;1 (Style) |
|||
<nowiki>{{divbox|purple|An example|This is only an example of how this template works.}}</nowiki> |
|||
:Opsi: |
|||
:{| |
|||
| {{divbox|amber ||amber }} |
|||
| {{divbox|black ||black }} |
|||
| {{divbox|bloodred ||bloodred }} |
|||
| {{divbox|blue ||blue }} |
|||
|- |
|||
| {{divbox|brown ||brown }} |
|||
| {{divbox|forest ||forest }} |
|||
| {{divbox|gold ||gold }} |
|||
| {{divbox|gray ||gray }} |
|||
|- |
|||
| {{divbox|green ||green }} |
|||
| {{divbox|navy ||navy }} |
|||
| {{divbox|none ||none }} |
|||
| {{divbox|orange ||orange }} |
|||
|- |
|||
| {{divbox|plain ||plain }} |
|||
| {{divbox|purple ||purple }} |
|||
| {{divbox|lilac ||lilac }} |
|||
| {{divbox|red ||red }} |
|||
|- |
|||
| {{divbox|white ||white }} |
|||
| {{divbox|yellow ||yellow }} |
|||
| {{divbox|fawn ||fawn }} |
|||
| {{divbox|tt ||tt }} |
|||
|- |
|||
| {{divbox|simar ||simar }} |
|||
| {{divbox|greenv ||greenv }} |
|||
| {{divbox|grayh ||grayh }} |
|||
| {{divbox|email ||email }} |
|||
|- |
|||
| {{divbox|double ||double }} |
|||
| {{divbox|wordperfect ||wordperfect }} |
|||
| {{divbox|ivory ||ivory }} |
|||
| {{divbox|lavender ||lavender }} |
|||
|} |
|||
== Contoh == |
|||
Writing this code will give you... |
|||
{| |
|||
{{divbox|purple|An example|This is only an example of how this template works.}} |
|||
|- |
|||
! scope="col" | Hasil |
|||
! scope="col" | Kode |
|||
|- |
|||
| gray: |
|||
{{divbox|gray|Lorem ipsum|Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}} |
|||
|<code><nowiki>{{divbox|gray|Lorem ipsum|Lorem ipsum dolor...}}</nowiki></code> |
|||
|- |
|||
The color names are case-dependent; they will not work if upper-case letters are used. |
|||
| red: |
|||
{{divbox|radius=5px|red|Lorem ipsum|Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}} |
|||
|<code><nowiki>{{divbox|radius=5px|red|Lorem ipsum|Lorem ipsum dolor...}}</nowiki></code> |
|||
|- |
|||
== Available styles == |
|||
| navy: |
|||
<div style="{{divstyleamber}}; width:5em; float:left; margin:.3em">amber</div> |
|||
{{divbox|radius=10px|navy|Lorem ipsum|Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}} |
|||
<div style="{{divstyleblack}}; width:5em; float:left; margin:.3em">black</div> |
|||
|<code><nowiki>{{divbox|radius=10px|navy|Lorem ipsum|Lorem ipsum dolor...}}</nowiki></code> |
|||
<div style="{{divstylebloodred}}; width:5em; float:left; margin:.3em">bloodred</div> |
|||
<div style="{{divstyleblue}}; width:5em; float:left; margin:.3em">blue</div> |
|||
<div style="{{divstylebrown}}; width:5em; float:left; margin:.3em">brown</div> |
|||
<div style="{{divstyleforest}}; width:5em; float:left; margin:.3em">forest</div> |
|||
<div style="{{divstylegold}}; width:5em; float:left; margin:.3em">gold</div> |
|||
<div style="{{divstylegray}}; width:5em; float:left; margin:.3em">gray</div> |
|||
<div style="{{divstylegreen}}; width:5em; float:left; margin:.3em">green</div> |
|||
<div style="{{divstylenavy}}; width:5em; float:left; margin:.3em">navy</div> |
|||
<div style="{{divstylenone}}; width:5em; float:left; margin:.3em">none</div> |
|||
<div style="{{divstyleorange}}; width:5em; float:left; margin:.3em">orange</div> |
|||
<div style="{{divstyleplain}}; width:5em; float:left; margin:.3em">plain</div> |
|||
<div style="{{divstylepurple}}; width:5em; float:left; margin:.3em">purple</div> |
|||
<div style="{{divstylered}}; width:5em; float:left; margin:.3em">red</div> |
|||
<div style="{{divstylewhite}}; width:5em; float:left; margin:.3em">white</div> |
|||
<div style="{{divstyleyellow}}; width:5em; float:left; margin:.3em">yellow</div> |
|||
<div style="{{divstylefawn}}; width:5em; float:left; margin:.3em">fawn</div> |
|||
<div style="{{divstylegreenv}}; width:4em; float:left; margin:.3em">greenv</div> |
|||
<div style="{{divstylegrayh}}; width:5em; float:left; margin:.3em">grayh</div> |
|||
<div style="{{divstylett}}; width:5em; float:left; margin:.3em">tt</div> |
|||
<div style="{{divstylewordperfect}}; width:11.7em; float:left; margin:.3em">wordperfect</div> |
|||
{{-}} |
|||
|- |
|||
== Lihat pula == |
|||
| amber: |
|||
* {{tl|divhide}} (for hiding things) |
|||
{{divbox|radius=15px|amber|Lorem ipsum|Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}} |
|||
|<code><nowiki>{{divbox|radius=15px|amber|Lorem ipsum|Lorem ipsum dolor...}}</nowiki></code> |
|||
|- |
|||
| Without a border or background: |
|||
{{divbox|none|Lorem ipsum|Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}} |
|||
|<code><nowiki>{{divbox|none|Lorem ipsum|Lorem ipsum dolor...}}</nowiki></code> |
|||
|- |
|||
{{Mbox templates see also}} |
|||
| Without title |
|||
{{divbox|navy||Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}} |
|||
|<code><nowiki>{{divbox|navy||Lorem ipsum dolor...}}</nowiki></code> |
|||
|- |
|||
| Content contains '=': |
|||
{{divbox|lavender|Lorem ipsum|3=Lorem <span style="color:#F00;">ipsum</span> dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}} |
|||
|<code><nowiki>{{divbox|lavender|Lorem ipsum|3=Lorem <span style="color:#F00;">ipsum</span> dolor...}}</nowiki></code> |
|||
|} |
|||
== Penggunaan pada templat == |
|||
Templat ini digunakan pada templat-templat berikut: |
|||
* {{tl|delete}} |
|||
* {{tl|tfd}} |
|||
* {{tl|GFDL}} |
|||
* {{tl|current}} |
|||
* {{tl|FAC}} |
|||
== Lihat pula == |
|||
* {{tl|divhide}} |
|||
[[Kategori:Dokumentasi templat]] |
[[Kategori:Dokumentasi templat]] |
||
<includeonly> |
<includeonly> |
||
<!-- [[Category:Wikipedia formatting templates|Divbox]] --> |
<!-- [[Category:Wikipedia formatting templates|Divbox]] --> |
||
[[ar:قالب:صندوق]] |
|||
[[simple:Template:Box]] |
|||
</includeonly> |
</includeonly> |
Revisi terkini sejak 18 Februari 2021 01.23
Templat ini digunakan untuk membuat latar belakang teks berwarna.
Penggunaan
[sunting sumber]{{divbox|1=style|2=title|3=content|radius=}}
Parameter warna gaya (style)
[sunting sumber]- 1 (Style)
- Opsi:
Contoh
[sunting sumber]Hasil | Kode |
---|---|
gray: | {{divbox|gray|Lorem ipsum|Lorem ipsum dolor...}}
|
red: | {{divbox|radius=5px|red|Lorem ipsum|Lorem ipsum dolor...}}
|
navy: | {{divbox|radius=10px|navy|Lorem ipsum|Lorem ipsum dolor...}}
|
amber: | {{divbox|radius=15px|amber|Lorem ipsum|Lorem ipsum dolor...}}
|
Without a border or background: | {{divbox|none|Lorem ipsum|Lorem ipsum dolor...}}
|
Without title | {{divbox|navy||Lorem ipsum dolor...}}
|
Content contains '=': | {{divbox|lavender|Lorem ipsum|3=Lorem <span style="color:#F00;">ipsum</span> dolor...}}
|
Penggunaan pada templat
[sunting sumber]Templat ini digunakan pada templat-templat berikut:
Lihat pula
[sunting sumber]- {{divhide}}