Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Search
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Template:Convert/doc
(section)
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Sorting=== Use {{para|sortable|on}} to include a ''hidden numerical sortkey'' in the output, suitable for use in a [[Help:Sorting|table with sortable columns]]. Technically, this places a hidden string before the actual displayed values: :<code><nowiki>{{convert|10|m|ft|sortable=on}}</nowiki></code> {{nowrap|1=β <code><span data-sort-value="7001100000000000000β "></span>10 metres (33 ft)</code>}} :showing: {{convert|10|m|ft|sortable=on}}. Use both {{para|disp|table}} and {{para|sortable|on}} together to produce table columns (pipe symbols) for each value in sortable columns: :{| class="wikitable sortable" ! ! m ! m ! ft |- | A | {{val|15.75|u=m}} | {{convert|15+3/4|m|ft|disp=table|sortable=on}} |- | B | {{val|15.5|u=m}} | {{convert|15.5|m|ft|disp=table|sortable=on}} |- | C | {{val|16|u=m}} | {{convert|16.0|m|ft|disp=table|sortable=on}} |- | D | {{val|16|u=m}} | {{convert|16|m|ft|disp=table|sortable=on}} |} The generated sortkey is calculated in a consistent way based on both the value and its unit as passed to the convert template. In most cases convert uses the passed value converted to SI base units. It is therefore not necessarily the displayed value or other alternate units and is calculated regardless of output format options. Using different units or different order of units in individual rows should therefore not lead to incorrect sorting, although variations in rounding can give surprising results, since an unrounded number is used for the sortkey.
Summary:
Please note that all contributions to Bourbon Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Bourbon Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Toggle limited content width