Vés al contingut

Plantilla:Ts/parse

De la Viquipèdia, l'enciclopèdia lliure
Icona de documentació de mòdul Documentació de la plantilla [ mostra ] [ modifica el codi ] [ mostra l'historial ] [ refresca ]

This template allows shorthand table styling parameters. It supports up to 10 CSS style commands (e.g. "text-align:right;"), each bound to a shorthand code.

If you want to add a shorthand entry, add it to {{ts/parse}}.

Natural language codes that are not in the list of below, can be used in addition, or in combination with the shorthand codes.

Natural language codes need to be terminated with the semicolon (;), while shorthand codes include the semicolon (;).

Llista de paràmetres

[modifica]
When adding a new code, please insert here in alphabetic order.
natural language code shorthand natural language table row cell notes
background-color:transparent; bgt transparent ?
background-color:#ffffff; bgwbgff white achromatic colors – shorthand:
 
bgXX
 
where XX is the repeated hex pair (for R, G or B) from the RGB color code in hexadecimal form – the letters used here are lowercase
background-color:#f2f2f2; bgf2 gray 95
grey 95
background-color:#d3d3d3; bgd3 light gray
light grey
background-color:#808080; bg80 gray
grey
background-color:#000000; bg00bgbk black
background-color:#ffd700; b1 gold
background-color:#c0c0c0; b2 silver
background-color:#cc9966; b3 bronze
background-color:#9acdff; b4 pale blue
background-color:#ffd700; font-weight:bold; b1b gold background, bold font
background-color:#c0c0c0; font-weight:bold; b2b silver background, bold font
background-color:#cc9966; font-weight:bold; b3b bronze background, bold font
background-color:#9acdff; font-weight:bold; b4b pale blue background, bold font
border:1px dotted black; ba.
border:1px solid black; ba border all
border:2px solid black; ba2
border:3px solid black; ba3
border:4px double black; bad
border:none; bn
border-bottom:0px solid transparent; bbt use border-bottom:1px solid transparent;
border-bottom:1px dotted black; bb.
border-bottom:2px dotted black; bb2.
border-bottom:1px solid black; bb border bottom
border-bottom:1px solid transparent; bbt1
border-bottom:2px solid black; bb2
border-bottom:3px solid black; bb3
border-bottom:4px double black; bbd
border-collapse:collapse; bc border collapse No
border-left:0px solid transparent; blt
border-left:1px dotted black; bl.
border-left:1px solid black; bl border left
border-left:1px solid transparent; blt1
border-left:2px solid black; bl2
border-left:3px solid black; bl3
border-left:4px double black; bld
border-right:0px solid transparent; brt
border-right:1px dotted black; br.
border-right:2px dotted black; br2.
border-right:1px solid black; br border right
border-right:1px solid transparent; brt1
border-right:2px solid black; br2
border-right:3px solid black; br3
border-right:4px double black; brd
border-top:0px solid transparent; btt
border-top:1px dotted black; bt.
border-top:1px solid black; bt border top
border-top:1px solid transparent; btt1 'border:none' doesn't work on many browsers, use transparent instead
border-top:2px solid black; bt2
border-top:3px solid black; bt3
border-top:4px double black; btd
direction:rtl; rtl right to left
float:left; fll float left No No Breaks text flow.
float:right; flr float right No No Breaks text flow.
font-size:58%; xxs xx-smaller
font-size:69%; xs x-smaller
font-size:80%; sm80
font-size:83%; sm smaller
font-size:85%; sm85
font-size:90%; sm90
font-size:92%; sm92
font-size:95%; sm95
font-size:100%; sm100
font-size:105%; sm105
font-size:107%; sm107
font-size:110%; sm110
font-size:120%; lg larger
font-size:144%; xl x-larger
font-size:182%; xxl xx-larger
font-size:207%; 3xl xxx-larger
font-size:249%; 4xl xxxx-larger
 
font-style:italic; fsi italic
font-style:normal; fsn roman
 
font-variant:normal; fvn roman
font-variant:small-caps; sc small caps
 
font-weight:bold; fwb bold
font-weight:normal; fwn normal
 
line-height:95%; lh95
line-height:100%; lh1lh10
line-height:110%; lh11
line-height:120%; lh12
line-height:130%; lh13
line-height:150%; lh15
line-height:200%; lh2lh20
line-height:250%; lh25
 
margin:0 auto 0 auto; mc float ?
margin:10px; ma10 ?
margin:5px; ma5 ?
margin-bottom:10px; mb10 ?
margin-bottom:5px; mb5 ?
margin-left:10px; ml10 ?
margin-left:5px; ml5 ?
margin-right:10px; mr10 ?
margin-right:5px; mr5 ?
margin-right:auto; margin-left:auto; ma ? ?
margin-top:10px; mt10 ?
margin-top:5px; mt5 ?
padding:0; pa0 no padding No padding all sides
padding:1px; pa1 No
padding:2px; pa2 No
padding:3px; pa3 No
padding:4px; pa4 No
padding-bottom:0.5em; pb.5 No
padding-bottom:0; pb0 No
padding-bottom:1.0em; pb1 No
padding-bottom:1.5em; pb15 No
padding-bottom:2.0em; pb2 No
padding-bottom:3.0em; pb3 No
padding-bottom:4.0em; pb4 No
padding-bottom:5.0em; pb5 No
padding-left:1.0em;text-indent:-1.0em; it1 No
padding-left:1.5em; text-indent:-1.0em; it1p.5 No
padding-left:2.0em; text-indent:-1.0em; itp No
padding-left:2.0em;text-indent:-2.0em; it No
padding-left:2.5em; text-indent:-2.0em; itp.5 No
padding-left:3.0em; text-indent:-1.0em; it1p2 No
padding-left:4.0em;text-indent:-2.0em; it42 No
padding-left:0.5em; pl.5 No
padding-left:0; pl0 No
padding-left:1.0em; pl1 No
padding-left:1.5em; pl15 No
padding-left:2.0em; pl2 No
padding-left:3.0em; pl3 No
padding-left:3.5em; pl3.5 No
padding-left:4.0em; pl4 No
padding-left:5.0em; pl5 No
padding-left:6.0em; pl6 No
padding-left:7.0em; pl7 No
padding-right:0.5em; pr.5 No
padding-right:0; pr0 No
padding-right:1.0em; pr1 No
padding-right:1.5em; pr15 No
padding-right:2.0em; pr2 No
padding-right:3.0em; pr3 No
padding-right:3.5em; pr3.5 No
padding-right:4.0em; pr4 No
padding-right:5.0em; pr5 No
padding-right:6.0em; pr6 No
padding-right:7.0em; pr7 No
padding-top:0.5em; padding-bottom:0.5em; ptb.5 No Padding title rows
padding-top:1em; padding-bottom:1em; ptb1 No
padding-top:0.5em; pt.5 No
padding-top:0; pt0 No
padding-top:1.0em; pt1 No
padding-top:1.5em; pt15 No
padding-top:2.0em; pt2 No
padding-top:3.0em; pt3 No
padding-top:4.0em; pt4 No
padding-top:5.0em; pt5 No
text-align:center; ac center
text-align:justify; aj justify
text-align:left; al left
text-align:right; ar right
text-transform:capitalize; cap capitalize
text-transform:lowercase; lc lower case
text-transform:uppercase; uc upper case
vertical-align:baseline; vbs baseline
vertical-align:bottom; vbm bottom
vertical-align:middle; vmi middle
vertical-align:text-bottom; vtb text bottom No Does not apply to table-cells[1]
vertical-align:text-top; vtt text top No Does not apply to table-cells[2]
vertical-align:top; vtp top No
 
white-space:nowrap; wnw nowrap ? ?
 
width:0%; w0 narrow No
width:15%; w15 No
width:20%; w20 fifth No
width:25%; w25 quarter No
width:33%; w33 third No
width:40%; w40 two fifths No
width:50%; w50 half No
width:60%; w60 three fifths No
width:67%; w67 two thirds No
width:75%; w75 three quarters No
width:80%; w80 four fifths No
width:100%; w100 wa No
width:0.5em; w0.5 No width in em: shorthand using decimal point
width:1.0em; w1.0 No
width:1.5em; w1.5 No
width:2.0em; w2.0 No
width:2.5em; w2.5 No
width:3.0em; w3.0 No
width:3.5em; w3.5 No
width:4.0em; w4.0 No
width:4.5em; w4.5 No
width:5.0em; w5.0 No
width:5.5em; w5.5 No
width:6.0em; w6.0 No
width:6.5em; w6.5 No
width:7.0em; w7.0 No
width:7.5em; w7.5 No
width:8.0em; w8.0 No
width:8.5em; w8.5 No
width:9.0em; w9.0 No
width:9.5em; w9.5 No
width:10.0em; w10.0 No
width:11.0em; w11.0 No
width:12.0em; w12.0 No
width:13.0em; w13.0 No
width:14.0em; w14.0 No
width:15.0em; w15.0 No
width:16.0em; w16.0 No
width:17.0em; w17.0 No
width:18.0em; w18.0 No
width:19.0em; w19.0 No
width:20.0em; w20.0 No


Exemple

[modifica]
{{{títolShorthand codes only}}}
Codi Mostra
{{ts|ar|ba|sc}}
style="text-align:right; border:1px solid black; font-variant:small-caps;"
{{ts|ar|vtb|pr2}}
style="text-align:right; vertical-align:top; padding-right:2.0em;"
{{{títolNatural language code combined with shorthand code}}}
Codi Mostra
{{ts|text-align:right;|pr2}}
style="text-align:right; padding-right:2.0em;"