Editing
Template:Number table sorting/doc
(section)
Jump to navigation
Jump to search
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!
==Parameters== The template has only one required parameter: a real number. These examples use the name of the redirect, {{tl|nts}}, for brevity. ; Optional parameters * <code>prefix</code>: To display some text before the number, use {{para|prefix|''some prefix''}} *: <code><nowiki>{{nts|123456789.00123|prefix=approx.&nbsp;}}</nowiki></code> β {{nts|123456789.00123|prefix=approx. }} * <code>format</code>: For unformatted output, use {{para|format|no}} *: <code><nowiki>{{nts|123456789.00123}}</nowiki></code> β {{nts|123456789.00123}} *: <code><nowiki>{{nts|123456789.00123|format=no}}</nowiki></code> β {{nts|123456789.00123|format=no}} * <code>debug</code>: To display the sort key, use {{para|debug|yes}}. *: <code><nowiki>{{nts|123456789.00123|debug=yes}}</nowiki></code> β {{nts|123456789.00123|debug=yes}} *: <code><nowiki>{{nts|-123456789.00123|debug=yes}}</nowiki></code> β {{nts|-123456789.00123|debug=yes}} Apart from the added thousands separators the numbers are formatted as supplied (scientific notation or not, leading and trailing zeros, and a zero before the decimal point or not). This formatting does not affect the sorted order except for numbers not satisfying the limitations mentioned below. {{TemplateDataHeader}} <templatedata> { "description": "", "params": { "1": { "label": "Number", "type": "number", "required": true, "description": "Your number" }, "format": { "label": "Format output?", "type": "string", "required": false, "description": "If you do not wish the output to be formatted (i.e. separated by thousand separators), please put \"no\" in this field. (Without quotation marks.)" }, "debug": { "label": "Debug", "type": "string", "required": false, "description": "If set to \"yes\", forces output to include debug data" }, "prefix": { "label": "Prefix", "type": "string", "required": false, "description": "The prefix to be displayed before the number. E.g. \"Approx.\" or \"$\"" } } } </templatedata>
Summary:
Please note that all contributions to IDU 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
IDU Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
To edit this page, please answer the question that appears below (
more info
):
Who is the wiki admin
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information