Template:columns: Difference between revisions

From Laenkea
Jump to navigation Jump to search
No edit summary
(Replaced content with "<includeonly>{{#invoke:columns|show}}</includeonly><noinclude>{{documentation}}</noinclude>")
Tag: Replaced
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{width|}}} | <div style="column-width: {{{width}}}; -webkit-column-width: {{{width}}}; -moz-column-width: {{{width}}};"> |
<includeonly>{{#invoke:columns|show}}</includeonly><noinclude>{{documentation}}</noinclude>
{{#if: {{{number|}}} | <div style="column-count: {{{number}}}; -webkit-column-count: {{{number}}}; -moz-column-count: {{{number}}};"> |
<div style="column-width:  20em; -webkit-column-width: 20em; -moz-column-width:  20em;">
}}
}}
{{{1}}}
</div></includeonly><noinclude>
== Usage ==
'''Default setting:'''
<pre>{{columns|
* abc0123
* def456
* ghi78
* jkl9
* mn
* opq
* rst
* uvw
* xyz
}}</pre>
'''Yields:'''
{{columns|
* abc0123
* def456
* ghi78
* jkl9
* mn
* opq
* rst
* uvw
* xyz}}
 
'''Specified number of columns: '''
<pre>{{columns|number=3|
* abc0123
* def456
* ghi78
* jkl9
* mn
* opq
* rst
* uvw
* xyz
}}</pre>
'''Yields:'''
{{columns|number=3|
* abc0123
* def456
* ghi78
* jkl9
* mn
* opq
* rst
* uvw
* xyz
}}
 
'''Specified width:'''
<pre>{{columns|width=16em|
* abc0123
* def456
* ghi78
* jkl9
* mn
* opq
* rst
* uvw
* xyz
}}</pre>
'''Yields:'''
{{columns|width=16em|
* abc0123
* def456
* ghi78
* jkl9
* mn
* opq
* rst
* uvw
* xyz
}}
 
</noinclude>

Latest revision as of 16:44, 11 August 2023

TemplateDocumentation.svg Template documentation [view] [edit] [purge]

Usage

{{columns|ryn|fomíd|limaŗ|binúð|vepuíh|nai|aşúr}}

Automatically sorts the list alphabetically and produces:

Parameters

|1=
Language code
|2=, |3=, etc.
Terms in the language
|columns=
The number of columns (2 by default)
|tN=
Sets the gloss for a specific term in the list
|altN=
Sets the alternative link display text for a specific term in the list
|posN=
Sets the part of speech for a specific term in the list