Difference between revisions of "Template:Constant/doc"
imported>WOSlinker m (add {{documentation subpage}}) |
imported>John of Reading m (→TemplateData: Typo fixing, replaced: by by → by) |
||
| Line 223: | Line 223: | ||
|} | |} | ||
==TemplateData== | ==TemplateData== | ||
| − | The following section has been automatically generated | + | The following section has been automatically generated by Wikipedia using [[mw:Help:TemplateData|TemplateData]]. |
<templatedata> | <templatedata> | ||
{ | { | ||
Latest revision as of 12:15, 9 March 2019
| 40px | This is a documentation subpage for Template:Constant. It contains usage information, categories and other content that is not part of the original template page. |
Description
Will display either the value of or the symbol of a maths constant chosen by the user.
Parameters
{{constant | {{{1}}} | {{{2}}} | places= | round= | link=}}
|{{{1}}}
- Required. Defines which constant to display.
- Possible Values: e; pi; tau; root2; phi; plastic; i;
|{{{2}}}
- Suggested. Defines whether to display the value of the constant or the symbol.
- Possible Values: symbol; value; Default: value
|places=
- Suggested. Defines the number of decimal places to display. Ignored if displaying symbol.
- Possible Values: Any integer from 0 to 50; Default: 8
|round=
- Choose whether or not to round when picking number of decimal places.
- Possible Values: true; yes; y; Default: false
|link=
- Choose whether or not to turn the symbol into a wiki-link that leads to the constants' respective pages. Ignored if displaying value.
- Possible Values: true; yes; y; Default: false
Examples
| Code | Output | Notes | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
i has no decimal value, so it gets displayed as √-1 | |||||||||||||||||||||
|
|
||||||||||||||||||||||
|
|
||||||||||||||||||||||
|
|
All links lead to their respective pages | |||||||||||||||||||||
|
|
|
TemplateData
The following section has been automatically generated by Wikipedia using TemplateData.
Displays either the value or the symbol for one of seven mathematical constants chosen by user.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Constant Name | 1 | Defines which constant to display.
| String | required |
| Display Type | 2 | Defines whether to display the value of the constant or the symbol.
| String | suggested |
| Places | places | Defines the number of decimal places to display. Ignored if displaying symbol.
| Number | suggested |
| Link | link | Choose whether or not to turn the symbol into a wiki-link that leads to the constants' respective pages. Ignored if displaying value.
| Boolean | optional |
| Round | round | Choose whether or not to round when displaying decimal places.
| Boolean | optional |