Template:Definition table: Difference between revisions
No edit summary |
|||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{| | <includeonly>{| style="font-size: 111%;" <!-- overide font-size: 90% set in main.css for table --> | ||
{{#if:{{{1|}}}| {{!}} style="font-weight:bold; text-align:right; vertical-align:top;" {{!}} {{{1}}} {{!}}{{!}} | {{#if:{{{1|}}}| {{!}} style="font-weight:bold; text-align:right; vertical-align:top; width:{{{width|}}}" {{!}} {{{1}}} {{!}}{{!}} | ||
{{!}} style="vertical-align:top;" {{!}} {{{2}}} | {{!}} style="vertical-align:top;" {{!}} {{{2}}} | ||
{{!}}-}} | {{!}}-}} | ||
| Line 156: | Line 156: | ||
<pre> | <pre> | ||
{{Definition_table | {{Definition_table | ||
|Word_1 | Definition one | |width=NNem|Word_1 | Definition one | ||
|Word_2 | Definition two | |Word_2 | Definition two | ||
... | ... | ||
| Line 162: | Line 162: | ||
}} | }} | ||
</pre> | </pre> | ||
The <code>width=NNem</code> is an optional, named parameter used to set the Word column width. | |||
: Examples: <code>|width=12em|</code> or <code>|width=12%|</code> | |||
This avoids the use of non-breaking spaces (&nbsp;) to keep word groups from wrapping in the first column. | |||
==Sample== | ==Sample== | ||