Difference between revisions of "Template:Cell Formatting"

From dataZoa Wiki
Jump to: navigation, search
Line 4: Line 4:
 
<tr><td></td><td>Min Decimals</td><td>Minimum number of decimals to show</td><td>2 for U.S. Currency</td></tr>
 
<tr><td></td><td>Min Decimals</td><td>Minimum number of decimals to show</td><td>2 for U.S. Currency</td></tr>
 
<tr><td></td><td>Max Decimals</td><td>Maximum number of decimals to show</td><td>2 for U.S. Currency</td></tr>
 
<tr><td></td><td>Max Decimals</td><td>Maximum number of decimals to show</td><td>2 for U.S. Currency</td></tr>
 +
<tr><td></td><td>Percentage Decimals</td><td>Exact number of decimals to show in fields that are calculated as percentages by the display itself.</td><td>2 for 1.23%</td></tr>
 
<tr><td></td><td>Prefix</td><td>Text to use before the number</td><td>$<br>Yen: </td></tr>
 
<tr><td></td><td>Prefix</td><td>Text to use before the number</td><td>$<br>Yen: </td></tr>
 
<tr><td></td><td>Suffix</td><td>Text to use after the number</td><td>(USD)<br>(thous.)<br>%</td></tr>
 
<tr><td></td><td>Suffix</td><td>Text to use after the number</td><td>(USD)<br>(thous.)<br>%</td></tr>

Revision as of 12:23, 16 January 2018

FieldsDescriptionExamples
Styling
Min DecimalsMinimum number of decimals to show2 for U.S. Currency
Max DecimalsMaximum number of decimals to show2 for U.S. Currency
Percentage DecimalsExact number of decimals to show in fields that are calculated as percentages by the display itself.2 for 1.23%
PrefixText to use before the number$
Yen:
SuffixText to use after the number(USD)
(thous.)
%
Scale
Multiply byNumber100, to express a percentage
Divide byNumber1000 for currency in thousands
AddNumber1.7, to add an integration constant
SubtractNumber1, to zero-base an index
+ / -
Parens when < 0CheckboxFinancial negative
Color when < 0HTML color nameRed
Color when > 0NumberBlue
Other
NDText to use when No DataNo data exists
N/AText to use when Not AvailableNo data available
NDDText to use when Not DisclosedUndisclosed
CommasCheckbox, use comma separatorFinancial information
Swap comma/periodCheckbox, European-style separatorsEuropean financial information