Difference between revisions of "Template:Format price/testcases"
Jump to navigation
Jump to search
test>Edgepedia (→Testing main template: wrong template) |
test>Jonesey95 |
||
| Line 11: | Line 11: | ||
*{{tlx|Format price/sandbox|456.789|0}} = {{Format price/sandbox|456.789|0}} | *{{tlx|Format price/sandbox|456.789|0}} = {{Format price/sandbox|456.789|0}} | ||
*{{tlx|Format price/sandbox|456.789|-2}} = {{Format price/sandbox|456.789|-2}} | *{{tlx|Format price/sandbox|456.789|-2}} = {{Format price/sandbox|456.789|-2}} | ||
| − | *< | + | *<code>'''$'''{{tlx|Format price/sandbox|1234}}</code> = ${{Format price/sandbox|1234}} |
| − | *< | + | *<code>'''$'''{{tlx|Format price/sandbox|12345}}</code> = ${{Format price/sandbox|12345}} |
| − | *< | + | *<code>'''$'''{{tlx|Format price/sandbox|123456}}</code> = ${{Format price/sandbox|123456}} |
| − | *< | + | *<code>'''$'''{{tlx|Format price/sandbox|1000000}}</code> = ${{Format price/sandbox|1000000}} |
| − | *< | + | *<code>'''¥'''{{tlx|Format price/sandbox|98765432109876}}</code> = ¥{{Format price/sandbox|98765432109876}} |
| − | *< | + | *<code>{{tlx|Format price/sandbox|7.86178E+25}} atoms</code> = {{Format price/sandbox|7.86E+25}} atoms |
*{{tlx|Format price/sandbox}} = {{Format price/sandbox}} | *{{tlx|Format price/sandbox}} = {{Format price/sandbox}} | ||
*{{tlx|Format price/sandbox|{{!}}0}} = {{Format price/sandbox||0}} | *{{tlx|Format price/sandbox|{{!}}0}} = {{Format price/sandbox||0}} | ||
| Line 34: | Line 34: | ||
*{{tlx|Format price|456.789|0}} = {{Format price|456.789|0}} | *{{tlx|Format price|456.789|0}} = {{Format price|456.789|0}} | ||
*{{tlx|Format price|456.789|-2}} = {{Format price|456.789|-2}} | *{{tlx|Format price|456.789|-2}} = {{Format price|456.789|-2}} | ||
| − | *< | + | *<code>'''$'''{{tlx|Format price|1234}}</code> = ${{Format price|1234}} |
| − | *< | + | *<code>'''$'''{{tlx|Format price|12345}}</code> = ${{Format price|12345}} |
| − | *< | + | *<code>'''$'''{{tlx|Format price|123456}}</code> = ${{Format price|123456}} |
| − | *< | + | *<code>'''$'''{{tlx|Format price|1000000}}</code> = ${{Format price|1000000}} |
| − | *< | + | *<code>'''¥'''{{tlx|Format price|98765432109876}}</code> = ¥{{Format price|98765432109876}} |
| − | *< | + | *<code>{{tlx|Format price|7.86178E+25}} atoms</code> = {{Format price|7.86E+25}} atoms |
*{{tlx|Format price}} = {{Format price}} | *{{tlx|Format price}} = {{Format price}} | ||
*{{tlx|Format price|{{!}}0}} = {{Format price||0}} | *{{tlx|Format price|{{!}}0}} = {{Format price||0}} | ||
*{{tlx|Format price|-100}} = {{Format price|-100}} | *{{tlx|Format price|-100}} = {{Format price|-100}} | ||
*{{tlx|Format price|xyz|A}} = {{Format price|xyz|A}} | *{{tlx|Format price|xyz|A}} = {{Format price|xyz|A}} | ||
Revision as of 02:53, 8 June 2020
| This is the template test cases page for the sandbox of Template:Format price. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Testing sandbox version
{{Format price/sandbox|7.2}}-> 7.20{{Format price/sandbox|8.1}}-> 8.10{{Format price/sandbox|8.2}}-> 8.20{{Format price/sandbox|9.2}}-> 9.20{{Format price/sandbox|456.789}}= 456.79{{Format price/sandbox|456.789|1}}= 456.80{{Format price/sandbox|456.789|0}}= 457{{Format price/sandbox|456.789|-2}}= 500$= $1.23 thousand{{Format price/sandbox|1234}}$= $12.3 thousand{{Format price/sandbox|12345}}$= $123 thousand{{Format price/sandbox|123456}}$= $1 million{{Format price/sandbox|1000000}}¥= ¥98.8 trillion{{Format price/sandbox|98765432109876}}= 78.6 septillion atoms{{Format price/sandbox|7.86178E+25}}atoms{{Format price/sandbox}}= Format price error: cannot parse value ""{{Format price/sandbox||0}}= Format price error: cannot parse value ""{{Format price/sandbox|-100}}= Format price error: cannot parse value "-100"{{Format price/sandbox|xyz|A}}= Format price error: cannot parse value "xyz"
Testing main template
{{Format price|7.2}}-> 7.20{{Format price|8.1}}-> 8.10{{Format price|8.2}}-> 8.20
{{Format price|9.2}}-> 9.20
{{Format price|1.2}}= 1.20{{Format price|456.789}}= 456.79{{Format price|456.789|1}}= 456.80{{Format price|456.789|0}}= 457{{Format price|456.789|-2}}= 500$= $1.23 thousand{{Format price|1234}}$= $12.3 thousand{{Format price|12345}}$= $123 thousand{{Format price|123456}}$= $1 million{{Format price|1000000}}¥= ¥98.8 trillion{{Format price|98765432109876}}= 78.6 septillion atoms{{Format price|7.86178E+25}}atoms{{Format price}}= Format price error: cannot parse value ""{{Format price||0}}= Format price error: cannot parse value ""{{Format price|-100}}= Format price error: cannot parse value "-100"{{Format price|xyz|A}}= Format price error: cannot parse value "xyz"