Difference between revisions of "Template:UI Object Attributes (Label)"

From HSYCO
Jump to navigation Jump to search
Line 6: Line 6:
 
|-
 
|-
 
|label
 
|label
|string
+
|<string>
 
|Label's text. Can contain HTML tags
 
|Label's text. Can contain HTML tags
 +
|-
 +
|fontfamily
 +
|<family name>
 +
|A prioritized list of font family names
 
|-
 
|-
 
|fontsize
 
|fontsize
|integer
+
|<size>
|Font size
+
|Font size in pixels (e.g. "15px")
 
|-
 
|-
 
|fontcolor
 
|fontcolor
|CSS color
+
|<CSS color>
 
|Font color
 
|Font color
 
|-
 
|-
 
|rowspan="3"|fontstyle
 
|rowspan="3"|fontstyle
 
|normal
 
|normal
|
+
|Normal font style, default
 
|-
 
|-
 
|italic
 
|italic
|
+
|Italic font style
 
|-
 
|-
 
|oblique
 
|oblique
|
+
|Oblique font style
 +
|-
 +
|rowspan="5"|fontweight
 +
|normal
 +
|Normal characters, default
 +
|-
 +
|bold
 +
|Thick characters
 +
|-
 +
|bolder
 +
|Thicker characters
 +
|-
 +
|lighter
 +
|Lighter characters
 
|-
 
|-
|fontweight
+
|100..900
|bold,bolder...
+
|Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold
|Font weight
 
 
|-
 
|-
 +
 
|textalign
 
|textalign
 
|left
 
|left

Revision as of 11:36, 12 March 2014

Label attributes

Name Value Description
label <string> Label's text. Can contain HTML tags
fontfamily <family name> A prioritized list of font family names
fontsize <size> Font size in pixels (e.g. "15px")
fontcolor <CSS color> Font color
fontstyle normal Normal font style, default
italic Italic font style
oblique Oblique font style
fontweight normal Normal characters, default
bold Thick characters
bolder Thicker characters
lighter Lighter characters
100..900 Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold
textalign left Text alignment

right center justified