ಟೆಂಪ್ಲೇಟು:Translation table
ಗೋಚರ
| {{{1}}} | {{{2}}} |
Creates a side-by-side translation of a non-English work into English.
Usage
[ಸಂಪಾದಿಸಿ]There are two ways to use this template:
1. Named parameters and headers
{{translation table
|original-head =
|original-text =
|translation-head =
|translation-text =
}}
2. Unnamed parameters
{{translation table|first text|second text}}
Examples
[ಸಂಪಾದಿಸಿ]{{translation table
|original-head = Original Middle English
|original-text = foope
|translation-head = Modern English
|translation-text = foop
}}
| Original Middle English | Modern English |
|---|---|
| foope | foop |
{{translation table
|text1
|text2
}}
| text1 | text2 |
CSS
[ಸಂಪಾದಿಸಿ]You can target the output of this template with the CSS:
.wst-translation-table(search for .wst-translation-table in CSS pages).wst-translation-table td(search for .wst-translation-table td in CSS pages) for the text cells.wst-translation-table th(search for .wst-translation-table th in CSS pages) for the header cells
For example, you might do something like:
.wst-translation-table {
width: 100%;
}
.wst-translation-table td {
width: 50%;
}