Template:Definition table: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 150: | Line 150: | ||
{{!}} style="vertical-align:top;" {{!}} {{{100}}} |
{{!}} style="vertical-align:top;" {{!}} {{{100}}} |
||
{{!}}-}} |
{{!}}-}} |
||
|}{{#if:{{{101|}}}|''Definition tables only support 50 rows; additional definitions have been omitted''}}</includeonly> |
|}{{#if:{{{101|}}}|''Definition tables only support 50 rows; additional definitions have been omitted''}}</includeonly><noinclude> |
||
==Usage== |
|||
<pre> |
|||
{{Definition_table |
|||
|Word_1 | Definition one |
|||
|Word_2 | Definition two |
|||
... |
|||
|Word_n | Definition n |
|||
}} |
|||
</pre> |
|||
==Sample== |
|||
{{Definition_table |
|||
|Definition list | A [[Help:Editing#Sections.2C_paragraphs.2C_lists_and_lines| definition list]] is used for creating lists of definitions. The term is rendered in bold, left-aligned, on its own line, and the definition appears, indented, on the following line(s). Definitions in definition lists are limited to single line formatting, though newlines can be inserted with <nowiki><br></nowiki> tags. |
|||
|Definition table | A definition table is used anywhere one wishes to organize blocks of content according to specific key terms, without creating separate section headers for each. The term is rendered in bold, right-aligned, in the first column of the table, and the second column contains the definition or other content. The content may contain any wiki formatting desired, excluding tables, and may contain multi-line formatting such as lists. |
|||
}} |
|||
==Limitations== |
|||
* Since definition tables use wiki table formatting, it is not possible to embed tables within the content area. |
|||
* Definition tables support a maximum of 50 rows. If more rows are supplied, a warning will appear on the page, indicating that additional rows have been omitted. |
|||
* When using a list (beginning with * or #) on the first line of a content block, one must insert a newline between the pipe (|) following the term and the list character, or the first list item won't be properly formatted. |
|||
* Content blocks within a definition table cannot be individually edited (though this is by design). |
|||
</noinclude> |
Revision as of 16:56, 24 October 2008
Usage
{{Definition_table |Word_1 | Definition one |Word_2 | Definition two ... |Word_n | Definition n }}
Sample
Definition list | A definition list is used for creating lists of definitions. The term is rendered in bold, left-aligned, on its own line, and the definition appears, indented, on the following line(s). Definitions in definition lists are limited to single line formatting, though newlines can be inserted with <br> tags. | |
Definition table | A definition table is used anywhere one wishes to organize blocks of content according to specific key terms, without creating separate section headers for each. The term is rendered in bold, right-aligned, in the first column of the table, and the second column contains the definition or other content. The content may contain any wiki formatting desired, excluding tables, and may contain multi-line formatting such as lists. |
Limitations
- Since definition tables use wiki table formatting, it is not possible to embed tables within the content area.
- Definition tables support a maximum of 50 rows. If more rows are supplied, a warning will appear on the page, indicating that additional rows have been omitted.
- When using a list (beginning with * or #) on the first line of a content block, one must insert a newline between the pipe (|) following the term and the list character, or the first list item won't be properly formatted.
- Content blocks within a definition table cannot be individually edited (though this is by design).