თარგი:Colorbox: განსხვავება გადახედვებს შორის
[შეუმოწმებელი ვერსია] | [შეუმოწმებელი ვერსია] |
შიგთავსი ამოიშალა შიგთავსი დაემატა
ახალი გვერდი: <span style="background-color:{{{1|white}}}; border:1px solid darkgray;"> {{#if:{{{2|}}}|{{#if:{{{3|}}}|[[{{{3}}}|{{{2}}}]]|{{{2}}}}}| }} </s... |
მ r2.7.3) (ბოტის დამატება: ar, arz, az, bat-smg, be, bg, bjn, bn, bs, ca, cy, da, el, en, eo, es, fa, fi, fr, gv, hi, hr, hu, id, ilo, is, it, ja, kk, ko, lb, lmo, lv, mk, ml, mn, mr, ms, my, ne, pam, pl, ps, pt, ro, ru, sah, sh... |
||
ხაზი 1: | ხაზი 1: | ||
<span style="background-color:{{{1|white}}}; border:1px solid darkgray;"> {{#if:{{{2|}}}|{{#if:{{{3|}}}|[[{{{3}}}|{{{2}}}]]|{{{2}}}}}| }} </span><noinclude>{{documentation}} |
<span style="background-color:{{{1|white}}}; border:1px solid darkgray;"> {{#if:{{{2|}}}|{{#if:{{{3|}}}|[[{{{3}}}|{{{2}}}]]|{{{2}}}}}| }} </span><noinclude>{{documentation}} |
||
[[ar:قالب:صندوق ملون]] |
|||
[[arz:قالب:Colorbox]] |
|||
[[az:Şablon:Colorbox]] |
|||
[[bat-smg:Šabluons:Colorbox]] |
|||
[[be:Шаблон:Colorbox]] |
|||
[[bg:Шаблон:Colorbox]] |
|||
[[bjn:Citakan:Color box]] |
|||
[[bn:টেমপ্লেট:Colorbox]] |
|||
[[bs:Šablon:Colorbox]] |
|||
[[ca:Plantilla:Colorbox]] |
|||
[[cy:Nodyn:Colorbox]] |
|||
[[da:Skabelon:Farveboks]] |
|||
[[el:Πρότυπο:Colorbox]] |
|||
[[en:Template:Colorbox]] |
|||
[[eo:Ŝablono:Kolorita kesto]] |
|||
[[es:Plantilla:Cuadro color]] |
|||
[[fa:الگو:جعبهرنگ]] |
|||
[[fi:Malline:Colorbox]] |
|||
[[fr:Modèle:Colorbox]] |
|||
[[gv:Clowan:Colorbox]] |
|||
[[hi:साँचा:Colorbox]] |
|||
[[hr:Predložak:Colorbox]] |
|||
[[hu:Sablon:Színdoboz]] |
|||
[[id:Templat:Color box]] |
|||
[[ilo:Plantilia:Colorbox]] |
|||
[[is:Snið:Colorbox]] |
|||
[[it:Template:Box colorato]] |
|||
[[ja:Template:Colorbox]] |
|||
[[kk:Үлгі:Colorbox]] |
|||
[[ko:틀:색 상자]] |
|||
[[lb:Schabloun:Colorbox]] |
|||
[[lmo:Mudel:Colorbox]] |
|||
[[lv:Veidne:Colorbox]] |
|||
[[mk:Шаблон:Colorbox]] |
|||
[[ml:ഫലകം:Colorbox]] |
|||
[[mn:Загвар:Colorbox]] |
|||
[[mr:साचा:Colorbox]] |
|||
[[ms:Templat:Colorbox]] |
|||
[[my:Template:Colorbox]] |
|||
[[ne:ढाँचा:Colorbox]] |
|||
[[pam:Template:Colorbox]] |
|||
[[pl:Szablon:Colorbox]] |
|||
[[ps:کينډۍ:Colorbox]] |
|||
[[pt:Predefinição:Colorbox]] |
|||
[[ro:Format:Colorbox]] |
|||
[[ru:Шаблон:Colorbox]] |
|||
[[sah:Халыып:Colorbox]] |
|||
[[sh:Šablon:Colorbox]] |
|||
[[si:සැකිල්ල:Colorbox]] |
|||
[[simple:Template:Colorbox]] |
|||
[[sk:Šablóna:Colorbox]] |
|||
[[sl:Predloga:Color box]] |
|||
[[sr:Шаблон:Colorbox]] |
|||
[[su:Citakan:Colorbox]] |
|||
[[sv:Mall:Färglåda]] |
|||
[[ta:வார்ப்புரு:Colorbox]] |
|||
[[th:แม่แบบ:Colorbox]] |
|||
[[tr:Şablon:Colorbox]] |
|||
[[tw:Template:Colorbox]] |
|||
[[uk:Шаблон:Colorbox]] |
|||
[[vi:Bản mẫu:Colorbox]] |
|||
[[war:Batakan:Colorbox]] |
|||
[[zh:Template:Colorbox]] |
|||
[[zh-yue:Template:Colorbox]] |
|||
</noinclude> |
</noinclude> |
13:50, 1 მარტი 2013-ის ვერსია
[ხილვა] [რედაქტირება] [ისტორია] [განახლება]
დოკუმენტაცია
This template supersedes {{legend3}}.
Usage
{{colorbox|color|text|Wikilink}}
color is passed to the css background-color property. HTML color names (eg "#FF0000") or the color name (eg "red") can be used.
text is any text to be rendered inside the colorbox.
Wikilink is the Wikilink for the Wikipedia page the text should point to.
Examples
- Empty colorbox
For a colorbox with no text, use
{{colorbox|color}}
renders:
- Legends and keys
For a legend or key using color and a text-based marker such as aCaret (^), dagger/obelisk (†), double dagger/diesis (‡), or asterisk (*), use
{{colorbox|color|^}} {{colorbox|color|†}} {{colorbox|color|‡}} {{colorbox|color|&#42;}}
which renders:
^ † ‡ *
Notes:
- Whenever possible, always use a text marker to improve accessibility in articles. See Wikipedia:Colours for more information.
- Do not use a black shaded colorbox with text markers as the text will not be visible.
- The HTML coding
&#42;
must be used to create the asterisk as Wikipedia will treat the a typed asterisk as an indented bullet point
- like this.
- Linkable text
To create linkable text inside the colorbox, use
{{colorbox|color|text|Wikilink}}
which renders:
Note:
- Do not use a blue or red shaded colorbox with wikilinks as the text will not be visible.
See also
{{Color box}} — Alternative, black bordered version.