Template:Translation table/doc
Appearance
This is a documentation subpage for Template:Translation table. It contains usage information, categories and other content that is not part of the original template page. |
Creates a side-by-side translation of a non-English work into English.
Usage
[edit]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
[edit]{{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
[edit]You can target the output of this template with the CSS:
.wst-translation-table
(search for .wst-translation-table in CSS files).wst-translation-table td
(search for .wst-translation-table td in CSS files) for the text cells.wst-translation-table th
(search for .wst-translation-table th in CSS files) for the header cells
For example, you might do something like:
.wst-translation-table {
width: 100%;
}
.wst-translation-table td {
width: 50%;
}