మూస:Table style/parse
Usage
మార్చు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 {{table style/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 (;).
Parameters (update this list if you add any)
మార్చుShorthand | Natural language |
Code inserted | Table | Row | Cell | Notes |
---|---|---|---|---|---|---|
ar |
right | text-align:right; | y | y | y | |
ac |
center | text-align:center; | y | y | y | |
al |
left | text-align:left; | y | y | y | |
aj |
justify | text-align:justify; | y | y | y | |
bgt |
transparent | background-color:transparent; | y | ? | y | |
bc |
border collapse | border-collapse:collapse; | y | n | n | |
bl |
border left | border-left:1px solid black; | y | n | y | |
br |
border right | border-right:1px solid black; | y | n | y | |
bt |
border top | border-top:1px solid black; | y | n | y | |
bb |
border bottom | border-bottom:1px solid black; | y | n | y | |
ba |
border all | border:1px solid black; | y | n | y | |
btt1 |
border-top:1px solid transparent; | y | ? | y | ’border:none’ doesn't work on many browsers, use transparent instead | |
bbt1 |
border-bottom:1px solid transparent; | y | ? | y | ||
blt1 |
border-left:1px solid transparent; | y | ? | y | ||
brt1 |
border-right:1px solid transparent; | y | ? | y | ||
ba2 |
border:2px solid black; | y | n | y | ||
bl2 |
border-left:2px solid black; | y | n | y | ||
br2 |
border-right:2px solid black; | y | n | y | ||
bt2 |
border-top:2px solid black; | y | n | y | ||
bb2 |
border-bottom:2px solid black; | y | n | y | ||
ba3 |
border:3px solid black; | y | n | y | ||
bl3 |
border-left:3px solid black; | y | n | y | ||
br3 |
border-right:3px solid black; | y | n | y | ||
bt3 |
border-top:3px solid black; | y | n | y | ||
bb3 |
border-bottom:3px solid black; | y | n | y | ||
bad |
border:4px double black; | y | n | y | ||
bld |
border-left:4px double black; | y | n | y | ||
brd |
border-right:4px double black; | y | n | y | ||
btd |
border-top:4px double black; | y | n | y | ||
bbd |
border-bottom:4px double black; | y | n | y | ||
bl. |
border-left:1px dotted black; | y | n | y | ||
br. |
border-right:1px dotted black; | y | n | y | ||
bt. |
border-top:1px dotted black; | y | n | y | ||
bb. |
border-bottom:1px dotted black; | y | n | y | ||
ba. |
border:1px dotted black; | y | n | y | ||
lh95 |
line-height:95%; | y | y | y | ||
lh1 |
line-height:100%; | y | y | y | ||
lh11 |
line-height:110%; | y | y | y | ||
lh12 |
line-height:120%; | y | y | y | ||
lh13 |
line-height:130%; | y | y | y | ||
lh15 |
line-height:150%; | y | y | y | ||
lh2 |
line-height:200%; | y | y | y | ||
mc |
float | margin:0 auto 0 auto; | y | ? | y | |
ma |
margin-right:auto; margin-left:auto; | y | ? | ? | ||
ma5 |
margin:5px; | y | ? | y | ||
mt5 |
margin-top:5px; | y | ? | y | ||
mr5 |
margin-right:5px; | y | ? | y | ||
mb5 |
margin-bottom:5px; | y | ? | y | ||
ml5 |
margin-left:5px; | y | ? | y | ||
ma10 |
margin:10px; | y | ? | y | ||
mt10 |
margin-top:10px; | y | ? | y | ||
mr10 |
margin-right:10px; | y | ? | y | ||
mb10 |
margin-bottom:10px; | y | ? | y | ||
ml10 |
margin-left:10px; | y | ? | y | ||
rtl |
direction:rtl; | ? | ? | y | ||
sc |
small caps | font-variant:small-caps; | y | y | y | |
uc |
upper case | text-transform:uppercase; | y | y | y | |
lc |
lower case | text-transform:lowercase; | y | y | y | |
cap |
capitalize | text-transform:capitalize; | y | y | y | |
sm |
smaller | font-size:smaller; | y | y | y | |
sm80 |
font-size:80%; | y | y | y | ||
sm85 |
font-size:85%; | y | y | y | ||
sm90 |
font-size:90%; | y | y | y | ||
sm95 |
font-size:95%; | y | y | y | ||
xs |
x-smaller | font-size:69%; | y | y | y | |
xxs |
xx-smaller | font-size:58%; | y | y | y | |
fs105 |
font-size:105%; | y | y | y | Used for PSM sub titles | |
lg |
larger | font-size:120%; | y | y | y | |
xl |
x-larger | font-size:144%; | y | y | y | |
xxl |
xx-larger | font-size:182%; | y | y | y | |
3xl |
xxx-larger | font-size:207%; | y | y | y | |
4xl |
xxxx-larger | font-size:249%; | y | y | y | |
fll |
float left | float:left; | y | n | n | |
flr |
float right | float:right; | y | n | n | |
fsn |
roman | font-style:normal; | y | y | y | |
fsi |
italic | font-style:italic; | y | y | y | |
fwn |
normal | font-weight:normal; | y | y | y | |
fwb |
bold | font-weight:bold; | y | y | y | |
it |
padding-left:2.0em;text-indent:-2.0em; | y | n | y | ||
it1 |
padding-left:1.0em;text-indent:-1.0em; | y | n | y | ||
itp |
padding-left:2.0em; text-indent:-1.0em; | y | n | y | ||
itp.5 |
padding-left:2.5em; text-indent:-2.0em; | y | n | y | ||
it1p.5 |
padding-left:1.5em; text-indent:-1.0em; | y | n | y | ||
it1p2 |
padding-left:3.0em; text-indent:-1.0em; | y | n | y | ||
it42 |
padding-left:4.0em;text-indent:-2.0em; | y | ? | y | PSM indent for literature section entries in the volume index. | |
pl0 |
padding-left:0; | y | n | y | ||
pl.5 |
padding-left:0.5em; | y | n | y | ||
pl1 |
padding-left:1.0em; | y | n | y | ||
pl15 |
padding-left:1.5em; | y | n | y | ||
pl2 |
padding-left:2.0em; | y | n | y | ||
pl3 |
padding-left:3.0em; | y | n | y | ||
pl4 |
padding-left:4.0em; | y | n | y | ||
pl5 |
padding-left:5.0em; | y | n | y | ||
pl6 |
padding-left:6.0em; | y | n | y | ||
pr0 |
padding-right:0; | y | n | y | ||
pr.5 |
padding-right:0.5em; | y | n | y | ||
pr1 |
padding-right:1.0em; | y | n | y | ||
pr15 |
padding-right:1.5em; | y | n | y | ||
pr2 |
padding-right:2.0em; | y | n | y | ||
pr3 |
padding-right:3.0em; | y | n | y | ||
pr4 |
padding-right:4.0em; | y | n | y | ||
pr5 |
padding-right:5.0em; | y | n | y | ||
pt0 |
padding-top:0; | y | n | y | ||
ptb.5 |
padding-top:0.5em; padding-bottom:0.5em; | y | n | y | For table title row with visible borders. | |
pt.5 |
padding-top:0.5em; | y | n | y | ||
pt1 |
padding-top:1.0em; | y | n | y | ||
pt15 |
padding-top:1.5em; | y | n | y | ||
pt2 |
padding-top:2.0em; | y | n | y | ||
pt3 |
padding-top:3.0em; | y | n | y | ||
pt4 |
padding-top:4.0em; | y | n | y | ||
pt5 |
padding-top:5.0em; | y | n | y | ||
pb0 |
padding-bottom:0; | y | n | y | ||
pb.5 |
padding-bottom:0.5em; | y | n | y | ||
pb1 |
padding-bottom:1.0em; | y | n | y | ||
pb15 |
padding-bottom:1.5em; | y | n | y | ||
pb2 |
padding-bottom:2.0em; | y | n | y | ||
pb3 |
padding-bottom:3.0em; | y | n | y | ||
pb4 |
padding-bottom:4.0em; | y | n | y | ||
pb5 |
padding-bottom:5.0em; | y | n | y | ||
vbm |
bottom | vertical-align:bottom; | y | y | y | |
vbs |
baseline | vertical-align:baseline; | y | y | y | |
vmi |
middle | vertical-align:middle; | y | y | y | |
vtb |
text bottom | vertical-align:text-bottom; | y | y | n | Does not apply to table-cells[1] |
vtp |
top | vertical-align:top; | y | y | y | |
vtt |
text top | vertical-align:text-top; | y | y | n | Does not apply to table-cells[2] |
wa |
full width | width:100%; | y | n | y | |
w75 |
three quarters | width:75%; | y | n | y | |
w67 |
two thirds | width:67%; | y | n | y | |
w50 |
half | width:50%; | y | n | y | |
w33 |
third | width:33%; | y | n | y | |
w25 |
quarter | width:25%; | y | n | y | |
wnw |
nowrap | white-space:nowrap; | ? | ? | y |
Example
మార్చు{{ts|ar|ba|sc}} produces style="text-align:right; border:1px solid black; font-variant:small-caps;"
{{table style|ar|vtb|pr2}} produces style="text-align:right; vertical-align:top; padding-right:2.0em;"
Natural language code combined with shorthand code:
{{ts|text-align:right;|pr2}} produces style="text-align:right; padding-right:2.0em;"