موضيل:Bordure

من ويكيپيديا


Utilisation
Crée une bordure autour d'un élément donné.
Syntaxe
{{Bordure|élément|couleur|valign=baseline}}
  • 1 : un élément quelconque (obligatoire)
  • 2 : une couleur en hexadécimal précédée du signe # ou nommée (black, white, red, etc.). Par défaut, la couleur #A9A9A9.
  • valign : alignement vertical (top, middle, baseline ou bottom) du milieu de l'image par rapport au texte environnant. Par défaut, baseline.
Exemples
« {{Bordure|le texte|red}} » donne « le texte »
« {{Bordure|[[ملف:Flag of Israel.svg|20px]]|valign=middle}} » donne «  »
Note
Pour obtenir une bordure simple (grise, fine) autour d'une image, par exemple un drapeau, il est préférable d'utiliser la syntaxe [[ملف:Nom de l'image.svg|border|20px]]
شرح د لقالب[شوف] [عدل] [تاريخ] [تحديت]
موضيل ؤلا شرح د لموضيل مامطرجمش. عافاك عاون ف طّرجامة ديالو.


This template is used to place a border around text. Note, to add a border to an image use the |border parameter in [[File:...]] (see Wikipedia:Picture tutorial).


سانطاكس[بدل لكود]

Basic[بدل لكود]

تخدام بسيط is {{border|element}}, where element is the image, text, etc around which the border is to appear. The border will be a solid light grey color (#ddd) and 1px (1 pixel) wide (default settings; see below).

{{border|Abc}}Abc

All options show:

{{border |element |display=display |width=width |style=style |style2=2nd style |color=color |lh=line height}}
{{border |Abc|width=2px|style=dotted |color=red}}Abc

پاراميطرات[بدل لكود]

element
(required) The element (image, text, etc) around which the border is to appear.
display The element's display method
inline-block (default if the parameter is not used), block, inline, table, flex, etc.
width
The width (thickness) of the border (default is 1px).
style The border's style
solid (default if the parameter is not used), dotted, dashed, double, groove, ridge, inset or outset.
style2
Additional CSS properties can be used in this template.
color
The border's color (default #ddd, otherwise recommend a named color).
Inline of element[بدل لكود]
noinline
Set |noinline=<anytext> to replace the default inline-block display style.
Some text Abc
Inline reading Abc

شوف تا[بدل لكود]