Module:Table style/data
Appearance
This is the definition for all the style short codes supported by {{table style}}. The format of an entry is…
['ar'] = {
style = 'text-align:right;',
aliases = {'right', 'align right', 'right align'}
},
…where ar
is the short code to be used in the template ({{ts|ar}}); right
, align right
, and right align
are aliases for this code (use sparingly!); and text-align:right;
is the CSS rules to be applied.
The configuration is formatted as Lua code, so the syntax is important: make sure to preserve all quote marks, equals signs, commas, square brackets, and so forth. If you're not used to programming languages you'll probably want to ask for help.
local data = {
['ar'] = {
style = 'text-align:right;',
aliases = {'right', 'align right', 'right align'}
},
['ac'] = {
style = 'text-align:center;',
aliases = {'center', 'centre', 'align center', 'center align', 'align centre', 'centre align'}
},
['al'] = {
style = 'text-align:left;',
aliases = {'left', 'align left', 'left align'}
},
['aj'] = {
style = 'text-align:justify;',
aliases = {'justify', 'align justify', 'justify align'}
},
['all'] = {
style = 'text-align-last:left;',
aliases = {}
},
['alc'] = {
style = 'text-align-last:center;',
aliases = {}
},
['alr'] = {
style = 'text-align-last:right;',
aliases = {}
},
['auxtoc'] = {
style = 'background:#E6F2E6;color: #202122',
aliases = {}
},
['bgt'] = {
style = 'background-color:transparent;color:inherit',
aliases = {'transparent', 'transparency'}
},
['bc'] = {
style = 'border-collapse:collapse;',
aliases = {'border collapse', 'collapse'}
},
['bl'] = {
style = 'border-left:1px solid black;',
aliases = {'border left', 'left border'}
},
['br'] = {
style = 'border-right:1px solid black;',
aliases = {'border right', 'right border'}
},
['bt'] = {
style = 'border-top:1px solid black;',
aliases = {'border top', 'top border'}
},
['bb'] = {
style = 'border-bottom:1px solid black;',
aliases = {'border bottom', 'bottom border'}
},
['ba'] = {
style = 'border:1px solid black;',
aliases = {'border all', 'border'}
},
['bn'] = {
style = 'border:none;',
aliases = {'border none', 'no border'}
},
['btt'] = {
style = 'border-top:0px solid transparent;',
aliases = {}
},
['bbt'] = {
style = 'border-bottom:0px solid transparent;',
aliases = {}
},
['blt'] = {
style = 'border-left:0px solid transparent;',
aliases = {}
},
['brt'] = {
style = 'border-right:0px solid transparent;',
aliases = {}
},
['btt1'] = {
style = 'border-top:1px solid transparent;',
aliases = {}
},
['bbt1'] = {
style = 'border-bottom:1px solid transparent;',
aliases = {}
},
['blt1'] = {
style = 'border-left:1px solid transparent;',
aliases = {}
},
['brt1'] = {
style = 'border-right:1px solid transparent;',
aliases = {}
},
['ba2'] = {
style = 'border:2px solid black;',
aliases = {}
},
['bl2'] = {
style = 'border-left:2px solid black;',
aliases = {}
},
['br2'] = {
style = 'border-right:2px solid black;',
aliases = {}
},
['bt2'] = {
style = 'border-top:2px solid black;',
aliases = {}
},
['bb2'] = {
style = 'border-bottom:2px solid black;',
aliases = {}
},
['ba3'] = {
style = 'border:3px solid black;',
aliases = {}
},
['bl3'] = {
style = 'border-left:3px solid black;',
aliases = {}
},
['br3'] = {
style = 'border-right:3px solid black;',
aliases = {}
},
['bt3'] = {
style = 'border-top:3px solid black;',
aliases = {}
},
['bb3'] = {
style = 'border-bottom:3px solid black;',
aliases = {}
},
['bad'] = {
style = 'border:4px double black;',
aliases = {}
},
['bld'] = {
style = 'border-left:4px double black;',
aliases = {}
},
['brd'] = {
style = 'border-right:4px double black;',
aliases = {}
},
['btd'] = {
style = 'border-top:4px double black;',
aliases = {}
},
['bb4xd'] = {
style = 'border-bottom:4px double black;',
aliases = {'bbd'}
},
['ba.'] = {
style = 'border:1px dotted black;',
aliases = {}
},
['bl.'] = {
style = 'border-left:1px dotted black;',
aliases = {}
},
['br.'] = {
style = 'border-right:1px dotted black;',
aliases = {}
},
['br2.'] = {
style = 'border-right:2px dotted black;',
aliases = {}
},
['bt.'] = {
style = 'border-top:1px dotted black;',
aliases = {}
},
['bb.'] = {
style = 'border-bottom:1px dotted black;',
aliases = {}
},
['bb2.'] = {
style = 'border-bottom:2px dotted black;',
aliases = {}
},
['db'] = {
style = 'display:block;',
aliases = {}
},
['dc'] = {
style = 'display:contents;',
aliases = {}
},
['df'] = {
style = 'display:flex;',
aliases = {}
},
['di'] = {
style = 'display:inline;',
aliases = {}
},
['dib'] = {
style = 'display:inline-block;',
aliases = {}
},
['dn'] = {
style = 'display:none;',
aliases = {}
},
['dt'] = {
style = 'display:table;',
aliases = {}
},
['h0'] = {
style = 'height:0;',
aliases = {'height narrow'}
},
['h5'] = {
style = 'height:5%;',
aliases = {'h1/20'}
},
['h10'] = {
style = 'height:10%;',
aliases = {'h1/10'}
},
['h15'] = {
style = 'height:15%;',
aliases = {'h3/20'}
},
['h17'] = {
style = 'height:calc(100% / 6);',
aliases = {'h1/6'}
},
['h20'] = {
style = 'height:20%;',
aliases = {'h1/5'}
},
['h25'] = {
style = 'height:25%;',
aliases = {'h1/4', 'quarter height'}
},
['h30'] = {
style = 'height:30%;',
aliases = {'h3/10'}
},
['h33'] = {
style = 'height:calc(100% / 3);',
aliases = {'h1/3', 'third height'}
},
['h40'] = {
style = 'height:40%;',
aliases = {'h2/5'}
},
['h50'] = {
style = 'height:50%;',
aliases = {'h1/2', 'half height'}
},
['h60'] = {
style = 'height:60%;',
aliases = {'h3/5'}
},
['h67'] = {
style = 'height:calc(100% / 1.5);',
aliases = {'h2/3', 'two thirds height'}
},
['h70'] = {
style = 'height:70%;',
aliases = {'h7/10'}
},
['h75'] = {
style = 'height:75%;',
aliases = {'h3/4', 'three quarter height'}
},
['h80'] = {
style = 'height:80%;',
aliases = {'h4/5'}
},
['h83'] = {
style = 'height:calc(100% / 1.2);',
aliases = {'h5/6'}
},
['h90'] = {
style = 'height:90%;',
aliases = {'h9/10'}
},
['h100'] = {
style = 'height:100%;',
aliases = {'h1', 'ha', 'height all', 'full height', 'brace'}
},
['hmax'] = {
style= 'height:max-content;',
aliases= {'hf', 'height max', 'bracetable', 'brace table'}
},
['hmin'] = {
style= 'height:min-content;',
aliases = {'height min'}
},
['mc'] = {
style = 'margin:0 auto 0 auto;',
aliases = {'float', 'float center', 'float centre'}
},
['ma'] = {
style = 'margin-right:auto; margin-left:auto;',
aliases = {}
},
['ma5'] = {
style = 'margin:5px;',
aliases = {}
},
['mt5'] = {
style = 'margin-top:5px;',
aliases = {}
},
['mr5'] = {
style = 'margin-right:5px;',
aliases = {}
},
['mb5'] = {
style = 'margin-bottom:5px;',
aliases = {}
},
['ml5'] = {
style = 'margin-left:5px;',
aliases = {}
},
['ma10'] = {
style = 'margin:10px;',
aliases = {}
},
['mt10'] = {
style = 'margin-top:10px;',
aliases = {}
},
['mr10'] = {
style = 'margin-right:10px;',
aliases = {}
},
['mb10'] = {
style = 'margin-bottom:10px;',
aliases = {}
},
['ml10'] = {
style = 'margin-left:10px;',
aliases = {}
},
['lh90'] = {
style = 'line-height:90%;',
aliases = {'lh9'}
},
['lh95'] = {
style = 'line-height:95%;',
aliases = {}
},
['lh100'] = {
style = 'line-height:100%;',
aliases = {'lh1', 'lh10'}
},
['lh110'] = {
style = 'line-height:110%;',
aliases = {'lh11'}
},
['lh120'] = {
style = 'line-height:120%;',
aliases = {'lh12'}
},
['lh130'] = {
style = 'line-height:130%;',
aliases = {'lh13'}
},
['lh150'] = {
style = 'line-height:150%;',
aliases = {'lh15'}
},
['lh200'] = {
style = 'line-height:200%;',
aliases = {'lh2', 'lh20'}
},
['lh250'] = {
style = 'line-height:250%;',
aliases = {'lh25'}
},
['lh300'] = {
style = 'line-height:300%;',
aliases = {'lh3'}
},
['ffs'] = {
style = 'font-family:serif;',
aliases = {}
},
['ffn'] = {
style = 'font-family:sans-serif;',
aliases = {}
},
['asc'] = {
style = 'font-variant:all-small-caps;',
aliases = {'all small caps', 'all small capitals'}
},
['sc'] = {
style = 'font-variant:small-caps;',
aliases = {'small caps', 'small capitals'}
},
['fvn'] = {
style = 'font-variant:normal;',
aliases = {}
},
['fs058'] = {
style = 'font-size:58%;',
aliases = {'xx-smaller', 'xxs'}
},
['fs069'] = {
style = 'font-size:69%;',
aliases = {'x-smaller', 'xs'}
},
['fs083'] = {
style = 'font-size:83%;',
aliases = {'smaller', 'sm'}
},
['fs080'] = {
style = 'font-size:80%;',
aliases = {'sm80'}
},
['fs085'] = {
style = 'font-size:85%;',
aliases = {'sm85'}
},
['fs090'] = {
style = 'font-size:90%;',
aliases = {'sm90'}
},
['fs092'] = {
style = 'font-size:92%;',
aliases = {'sm92', 'fine'}
},
['fs095'] = {
style = 'font-size:95%;',
aliases = {'sm95'}
},
['fs105'] = {
style = 'font-size:105%;',
aliases = {}
},
['fs110'] = {
style = 'font-size:110%;',
aliases = {'sm110'}
},
['fs120'] = {
style = 'font-size:120%;',
aliases = {'larger', 'lg'}
},
['fs130'] = {
style = 'font-size:130%;',
aliases = {'llg'}
},
['fs144'] = {
style = 'font-size:144%;',
aliases = {'x-larger', 'xl'}
},
['fs182'] = {
style = 'font-size:182%;',
aliases = {'xx-larger', '2xl', 'xxl'}
},
['fs207'] = {
style = 'font-size:207%;',
aliases = {'xxx-larger', '3xl', 'xxxl'}
},
['fs249'] = {
style = 'font-size:249%;',
aliases = {'xxxx-larger', '4xl', 'xxxxl'}
},
['fs260'] = {
style = 'font-size:260%;',
aliases = {}
},
['fs280'] = {
style = 'font-size:280%;',
aliases = {}
},
['fs300'] = {
style = 'font-size:300%;',
aliases = {}
},
['uc'] = {
style = 'text-transform:uppercase;',
aliases = {'upper case', 'upper-case', 'uppercase'}
},
['lc'] = {
style = 'text-transform:lowercase;',
aliases = {'lower case', 'lower-case', 'lowercase'}
},
['cap'] = {
style = 'text-transform:capitalize;',
aliases = {'capitalise', 'capitalize'}
},
['fll'] = {
style = 'float:left;',
aliases = {'float left'}
},
['flr'] = {
style = 'float:right;',
aliases = {'float right'}
},
['fsn'] = {
style = 'font-style:normal;',
aliases = {'roman'}
},
['fsi'] = {
style = 'font-style:italic;',
aliases = {'italic', 'i'}
},
['fwn'] = {
style = 'font-weight:normal;',
aliases = {'normal'}
},
['fwb'] = {
style = 'font-weight:bold;',
aliases = {'bold', 'b'}
},
['fwbfsi'] = {
style = 'font-weight:bold;font-style:italic;',
aliases = {'fwbsi', 'bold italic', 'bi'}
},
['ofh'] = {
style = 'overflow:hidden;',
aliases = {}
},
['itp'] = {
style = 'padding-left:2em; text-indent:-1em;',
aliases = {}
},
['itp.5'] = {
style = 'padding-left:2.5em; text-indent:-2em;',
aliases = {'itp0.5', 'itp05'}
},
['it1p.5'] = {
style = 'padding-left:1.5em; text-indent:-1em;',
aliases = {'it1p0.5', 'it1p05'}
},
['it1p2'] = {
style = 'padding-left:3em; text-indent:-1em;',
aliases = {}
},
['it'] = {
style = 'padding-left:2em; text-indent:-2em;',
aliases = {'hi'}
},
['it1'] = {
style = 'padding-left:1em; text-indent:-1em;',
aliases = {}
},
['it32'] = {
style = 'padding-left:3em; text-indent:-2em;',
aliases = {}
},
['it42'] = {
style = 'padding-left:4em; text-indent:-2em;',
aliases = {}
},
['it52'] = {
style = 'padding-left:5em; text-indent:-2em;',
aliases = {}
},
['p0'] = {
style = 'padding:0;',
aliases = {}
},
['p.5'] = {
style = 'padding:0.5em;',
aliases = {'p0.5', 'p05'}
},
['p1'] = {
style = 'padding:1em;',
aliases = {}
},
['p1.5'] = {
style = 'padding:1.5em;',
aliases = {'p15'}
},
['p2'] = {
style = 'padding:2em;',
aliases = {}
},
['p2.5'] = {
style = 'padding:2.5em;',
aliases = {'p25'}
},
['p3'] = {
style = 'padding:3em;',
aliases = {}
},
['p3.5'] = {
style = 'padding:3.5em;',
aliases = {'p35'}
},
['p4'] = {
style = 'padding:4em;',
aliases = {}
},
['p5'] = {
style = 'padding:5em;',
aliases = {}
},
['p6'] = {
style = 'padding:6em;',
aliases = {}
},
['p7'] = {
style = 'padding:7em;',
aliases = {}
},
['plr0'] = {
style = 'padding-left:0em; padding-right:0em;',
aliases = {}
},
['plr.5'] = {
style = 'padding-left:0.5em; padding-right:0.5em;',
aliases = {'plr0.5', 'plr05'}
},
['plr1'] = {
style = 'padding-left:1em; padding-right:1em;',
aliases = {}
},
['plr1.5'] = {
style = 'padding-left:1.5em; padding-right:1.5em;',
aliases = {'plr15'}
},
['plr2'] = {
style = 'padding-left:2em; padding-right:2em;',
aliases = {}
},
['plr2.5'] = {
style = 'padding-left:2.5em; padding-right:2.5em;',
aliases = {'plr25'}
},
['plr3'] = {
style = 'padding-left:3em; padding-right:3em;',
aliases = {}
},
['plr3.5'] = {
style = 'padding-left:3.5em; padding-right:3.5em;',
aliases = {'plr35'}
},
['plr4'] = {
style = 'padding-left:4em; padding-right:4em;',
aliases = {}
},
['plr5'] = {
style = 'padding-left:5em; padding-right:5em;',
aliases = {}
},
['plr6'] = {
style = 'padding-left:6em; padding-right:6em;',
aliases = {}
},
['plr7'] = {
style = 'padding-left:7em; padding-right:7em;',
aliases = {}
},
['pl0'] = {
style = 'padding-left:0;',
aliases = {}
},
['pl.5'] = {
style = 'padding-left:0.5em;',
aliases = {'pl0.5', 'pl05'}
},
['pl1'] = {
style = 'padding-left:1em;',
aliases = {}
},
['pl1.5'] = {
style = 'padding-left:1.5em;',
aliases = {'pl15'}
},
['pl2'] = {
style = 'padding-left:2em;',
aliases = {}
},
['pl2.5'] = {
style = 'padding-left:2.5em;',
aliases = {'pl25'}
},
['pl3'] = {
style = 'padding-left:3em;',
aliases = {}
},
['pl3.5'] = {
style = 'padding-left:3.5em;',
aliases = {'pl35'}
},
['pl4'] = {
style = 'padding-left:4em;',
aliases = {}
},
['pl5'] = {
style = 'padding-left:5em;',
aliases = {}
},
['pl6'] = {
style = 'padding-left:6em;',
aliases = {}
},
['pl7'] = {
style = 'padding-left:7em;',
aliases = {}
},
['pr0'] = {
style = 'padding-right:0;',
aliases = {}
},
['pr.5'] = {
style = 'padding-right:0.5em;',
aliases = {'pr0.5', 'pr05'}
},
['pr1'] = {
style = 'padding-right:1em;',
aliases = {}
},
['pr1.5'] = {
style = 'padding-right:1.5em;',
aliases = {'pr15'}
},
['pr2'] = {
style = 'padding-right:2em;',
aliases = {}
},
['pr2.5'] = {
style = 'padding-right:2.5em;',
aliases = {'pr25'}
},
['pr3'] = {
style = 'padding-right:3em;',
aliases = {}
},
['pr3.5'] = {
style = 'padding-right:3.5em;',
aliases = {'pr35'}
},
['pr4'] = {
style = 'padding-right:4em;',
aliases = {}
},
['pr5'] = {
style = 'padding-right:5em;',
aliases = {}
},
['pr6'] = {
style = 'padding-right:6em;',
aliases = {}
},
['pr7'] = {
style = 'padding-right:7em;',
aliases = {}
},
['ptb0'] = {
style = 'padding-top:0em; padding-bottom:0em;',
aliases = {}
},
['ptb.5'] = {
style = 'padding-top:0.5em; padding-bottom:0.5em;',
aliases = {'ptb0.5', 'ptb05'}
},
['ptb1'] = {
style = 'padding-top:1em; padding-bottom:1em;',
aliases = {}
},
['ptb1.5'] = {
style = 'padding-top:1.5em; padding-bottom:1.5em;',
aliases = {'ptb15'}
},
['ptb2'] = {
style = 'padding-top:2em; padding-bottom:2em;',
aliases = {}
},
['ptb2.5'] = {
style = 'padding-top:2.5em; padding-bottom:2.5em;',
aliases = {'ptb25'}
},
['ptb3'] = {
style = 'padding-top:3em; padding-bottom:3em;',
aliases = {}
},
['ptb3.5'] = {
style = 'padding-top:3.5em; padding-bottom:3.5em;',
aliases = {'ptb35'}
},
['ptb4'] = {
style = 'padding-top:4em; padding-bottom:4em;',
aliases = {}
},
['ptb5'] = {
style = 'padding-top:5em; padding-bottom:5em;',
aliases = {}
},
['ptb6'] = {
style = 'padding-top:6em; padding-bottom:6em;',
aliases = {}
},
['ptb7'] = {
style = 'padding-top:7em; padding-bottom:7em;',
aliases = {}
},
['pt0'] = {
style = 'padding-top:0;',
aliases = {}
},
['pt.5'] = {
style = 'padding-top:0.5em;',
aliases = {'pt0.5', 'pt05'}
},
['pt1'] = {
style = 'padding-top:1em;',
aliases = {}
},
['pt1.5'] = {
style = 'padding-top:1.5em;',
aliases = {'pt15'}
},
['pt2'] = {
style = 'padding-top:2em;',
aliases = {}
},
['pt2.5'] = {
style = 'padding-top:2.5em;',
aliases = {'pt25'}
},
['pt3'] = {
style = 'padding-top:3em;',
aliases = {}
},
['pt3.5'] = {
style = 'padding-top:3.5em;',
aliases = {'pt35'}
},
['pt4'] = {
style = 'padding-top:4em;',
aliases = {}
},
['pt5'] = {
style = 'padding-top:5em;',
aliases = {}
},
['pt6'] = {
style = 'padding-top:6em;',
aliases = {}
},
['pt7'] = {
style = 'padding-top:7em;',
aliases = {}
},
['pb0'] = {
style = 'padding-bottom:0;',
aliases = {}
},
['pb.5'] = {
style = 'padding-bottom:0.5em;',
aliases = {'pb0.5', 'pb05'}
},
['pb1'] = {
style = 'padding-bottom:1em;',
aliases = {}
},
['pb1.5'] = {
style = 'padding-bottom:1.5em;',
aliases = {'pb15'}
},
['pb2'] = {
style = 'padding-bottom:2em;',
aliases = {}
},
['pb2.5'] = {
style = 'padding-bottom:2.5em;',
aliases = {'pb25'}
},
['pb3'] = {
style = 'padding-bottom:3em;',
aliases = {}
},
['pb3.5'] = {
style = 'padding-bottom:3.5em;',
aliases = {'pb35'}
},
['pb4'] = {
style = 'padding-bottom:4em;',
aliases = {}
},
['pb5'] = {
style = 'padding-bottom:5em;',
aliases = {}
},
['pb6'] = {
style = 'padding-bottom:6em;',
aliases = {}
},
['pb7'] = {
style = 'padding-bottom:7em;',
aliases = {}
},
['abs'] = {
style = 'position:absolute;',
aliases = {'absolute'}
},
['rel'] = {
style = 'position:relative;',
aliases = {'relative'}
},
['ltr'] = {
style = 'direction:ltr;',
aliases = {}
},
['rtl'] = {
style = 'direction:rtl;',
aliases = {}
},
['tds'] = {
style = 'text-decoration:line-through;',
aliases = {'strike'}
},
['tdu'] = {
style = 'text-decoration:underline;',
aliases = {'underline'}
},
['vtt'] = {
style = 'vertical-align:text-top;',
aliases = {'vertical align text top', 'text top'}
},
['vtb'] = {
style = 'vertical-align:text-bottom;',
aliases = {'vertical align text bottom', 'text bottom'}
},
['vtp'] = {
style = 'vertical-align:top;',
aliases = {'vertical align top', 'top'}
},
['vbs'] = {
style = 'vertical-align:baseline;',
aliases = {'vertical align baseline', 'baseline'}
},
['vbm'] = {
style = 'vertical-align:bottom;',
aliases = {'vertical align bottom', 'bottom'}
},
['vmi'] = {
style = 'vertical-align:middle;',
aliases = {'vertical align middle', 'middle'}
},
['w0'] = {
style = 'width:0;',
aliases = {'width narrow', 'narrow'}
},
['w5'] = {
style = 'width:5%;',
aliases = {'w1/20'}
},
['w10'] = {
style = 'width:10%;',
aliases = {'w1/10'}
},
['w15'] = {
style = 'width:15%;',
aliases = {'w3/20'}
},
['w17'] = {
style = 'width:calc(100% / 6);',
aliases = {'w1/6'}
},
['w20'] = {
style = 'width:20%;',
aliases = {'w1/5'}
},
['w25'] = {
style = 'width:25%;',
aliases = {'w1/4', 'quarter width', 'quarter'}
},
['w30'] = {
style = 'width:30%;',
aliases = {'w3/10'}
},
['w33'] = {
style = 'width:calc(100% / 3);',
aliases = {'w1/3', 'third width', 'third'}
},
['w40'] = {
style = 'width:40%;',
aliases = {'w2/5'}
},
['w50'] = {
style = 'width:50%;',
aliases = {'w1/2', 'half width', 'half'}
},
['w60'] = {
style = 'width:60%;',
aliases = {'w3/5'}
},
['w67'] = {
style = 'width:calc(100% / 1.5);',
aliases = {'w2/3', 'two thirds width', 'two thirds', 'two-thirds', 'two third', 'two-third'}
},
['w70'] = {
style = 'width:70%;',
aliases = {'w7/10'}
},
['w75'] = {
style = 'width:75%;',
aliases = {'w3/4', 'three quarter width', 'three quarter', 'three-quarter', 'three quarters', 'three-quarters'}
},
['w80'] = {
style = 'width:80%;',
aliases = {'w4/5'}
},
['w83'] = {
style = 'width:calc(100% / 1.2);',
aliases = {'w5/6'}
},
['w90'] = {
style = 'width:90%;',
aliases = {'w9/10'}
},
['w100'] = {
style = 'width:100%;',
aliases = {'w1', 'wa', 'width all', 'full width', 'full'}
},
['wmax'] = {
style= 'width:max-content;',
aliases = {'wf', 'width max'}
},
['wmin'] = {
style= 'width:min-content;',
aliases = {'width min'}
},
['wnw'] = {
style = 'white-space:nowrap;',
aliases = {'nowrap'}
},
}
return data