אונטערשייד צווישן ווערסיעס פון "מוסטער:Color box/דאק"

פון המכלול
קפיצה לניווט קפיצה לחיפוש
(געשאַפן בלאַט מיט '{{Documentation subpage}} {{tsh|Colorbox|Colourbox|Colour box|Color square|Legend3}} {{For2|the templates that display text in a colored box|{{tl|Divbox}} or Template:Mbox templates see also}} {{Uses TemplateStyles|Template:Legend/styles.css|noprotcat=yes}} {{High-use}} <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> ==Usage== {{Format TemplateData|JSON= { "params": { "1": { "label": "Color", "description": "Background color of the...')
 
אין תקציר עריכה
שורה 1: שורה 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{tsh|Colorbox|Colourbox|Colour box|Color square|Legend3}}
{{For2|the templates that display text in a colored box|{{tl|Divbox}} or [[Template:Mbox templates see also]]}}
{{Uses TemplateStyles|Template:Legend/styles.css|noprotcat=yes}}
{{Uses TemplateStyles|Template:Legend/styles.css|noprotcat=yes}}
{{High-use}}
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->


==Usage==
==Usage==
{{Format TemplateData|JSON=
<templatedata>
{
{
"params": {
"params": {
שורה 43: שורה 40:
"description": "<noexport><code>&#123;&#123;color box&#124;''color''&#124;''text''&#124;''text color''&#125;&#125;</code><br></noexport>Adds a rectangular color box. <ul><li>Colors are most commonly specified as either a color keyword or as the [[Web colors#Hex triplet|hexadecimal triplet]] representing an RGB combination.  See the article [[web colors]] for details.</li><li>If specified, the text is centered within the box.</li></ul>",
"description": "<noexport><code>&#123;&#123;color box&#124;''color''&#124;''text''&#124;''text color''&#125;&#125;</code><br></noexport>Adds a rectangular color box. <ul><li>Colors are most commonly specified as either a color keyword or as the [[Web colors#Hex triplet|hexadecimal triplet]] representing an RGB combination.  See the article [[web colors]] for details.</li><li>If specified, the text is centered within the box.</li></ul>",
"format": "inline"
"format": "inline"
} }}
}  
</templatedata>


{| class="wikitable"
{| class="wikitable"
שורה 65: שורה 63:
|}
|}


== Variants ==
<!-- == Variants ==
{{Color box templates}}
{{Color box templates}} -->


== Supporting template ==
== Supporting template ==
* {{tl|Greater color contrast ratio}}
* {{tl|Greater color contrast ratio}}


== See also ==
* {{tl|Infobox color}}, an infobox for the detailed description of a color.
* {{tl|Legend}}


<includeonly>{{Sandbox other|
<includeonly>{{Sandbox other|

רעוויזיע פון 23:23, 20 מערץ 2023

מוסטער:Uses TemplateStyles

Usage

<noexport><code>&#123;&#123;color box&#124;''color''&#124;''text''&#124;''text color''&#125;&#125;</code><br></noexport>Adds a rectangular color box. <ul><li>Colors are most commonly specified as either a color keyword or as the [[Web colors#Hex triplet|hexadecimal triplet]] representing an RGB combination. See the article [[web colors]] for details.</li><li>If specified, the text is centered within the box.</li></ul>

מוסטער פּאַראַמעטער

דער מוסטער בעפארצוגט די פּאַראַמעטערס זאלן זיין פארמאטירט אין דער שורה.

פאראמעטערבאַשרייבונגטיפסטאַטוס
Color1

Background color of the box.

ביישפיל
Green
שנירלגעפאדערט
Text2

Adds text inside the box; box is otherwise an empty square.

ביישפיל
Hello, world!
שנירלפארגעשלאגן
Text color3

Sets the color of the text inside the box.

גרונטלעך
Either black or white; whichever has greater contrast.
ביישפיל
Yellow
שנירלפארגעשלאגן
Border colorborder

Sets the color of the border around the box.

גרונטלעך
black
ביישפיל
#FF0
שנירלאפציאנאל
Examples
Visual effect Markup
  {{color box|Green}}
 Default color for this text  {{color box|Yellow|Default color for this text}}
 Default color for this text  {{color box|Blue|Default color for this text}}
 Using X11 color names  {{color box|SteelBlue|'''Using X11 color names'''|Gold}}
 Using RGB hex triplets  {{color box|#012345|''Using RGB hex triplet''|#FEDCBA}}
 Red  {{color box|Yellow|Red|#f00|border=#f00}}
 bordercolor like wikitable  {{color box|white|bordercolor like wikitable|border=#A2A9B1}}


Supporting template