Modello:Cs
Jump to navigation
Jump to search
Descrizione[cagna]
Il template consente di costruire un attributo style associando singoli caratteri chiave in qualsiasi ordine, e senza separazioni:
- trbl indicano i lati bordati delle celle (top, right, bottom, left)
- TMB indicano il vertical-align (Top, Middle, Bottom)
- LCR indicano il text-align (Left, Center, Right)
Il codice {{Cs|}} oppure {{Cs}} non produce alcun output. Ulteriore css (in formato standard) può essere passato come secondo parametro opzionale. Per alcuni valori di riferimento si può consultare la prima colonna di ts_inglese.
Esempio[cagna]
- {{cs|trT}} -> style="border-top:1px solid black; border-right:1px solid black; vertical-align:top; "
Il codice:
{| style="border:3px solid black; border-collapse:collapse;" |{{cs|b}}|test||{{cs|rb}}|test||{{cs|b|background-color:yellow;}}|test |- |{{cs|}}| test||{{cs|r}}|test||test |- |{{cs||background-color:yellow;}}| test||{{cs|r}}|test||test |}
produce:
test | test | test |
test | test | test |
test | test | test |
The above documentation is transcluded from Modello:Cs/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |