Template:Decdeg/testcases
Jump to navigation
Jump to search
| icon | This is the template test cases page for the sandbox of Template:Decdeg. 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 and parsers with these links: |
Lua
[edit source]- Normal
|deg=37|min=51|sec=|hem=N|rnd=
- decdeg: 37.85
- decdeg/sandbox: 37.85
|deg=119|min=34|sec=04|hem=W|rnd=
- decdeg: -119.5677778
- decdeg/sandbox: -119.56778
- Lowercase hemispheres
|deg=37|min=51|sec=|hem=n|rnd=
- decdeg: 37.85
- decdeg/sandbox: 37.85
|deg=119|min=34|sec=04|hem=e|rnd=
- decdeg: 119.5677778
- decdeg/sandbox: 119.56778
- Negative degrees, no hemisphere
|deg=-37|min=51|sec=|hem=|rnd=
- decdeg: -37.85
- decdeg/sandbox: -36.15
|deg=-119|min=34|sec=04|hem=|rnd=
- decdeg: -119.5677778
- decdeg/sandbox: -118.43222
- Rounding
|deg=37|min=51|sec=|hem=N|rnd=0
- decdeg: 38
- decdeg/sandbox: 38
|deg=119|min=34|sec=04|hem=W|rnd=8
- decdeg: -119.56777778
- decdeg/sandbox: -119.56778
- Negative input
|deg=37|min=-51|sec=|hem=N|rnd=
- decdeg: 37.85
- decdeg/sandbox: 36.15
|deg=119|min=-34|sec=04|hem=W|rnd=
- decdeg: -119.5677778
- decdeg/sandbox: -118.43444
Good syntax
[edit source]{{decdeg
| deg = 37
| min = 51
| sec = 00
| hem = N
| rnd =
}},
{{decdeg
| deg = 119
| min = 34
| sec = 04
| hem = W
| rnd =
}}
| Lua error: callParserFunction: function "#coordinates" was not found. | |
| 37.85, -119.5677778 | Working |
| 37.85, -119.56778 | Sandbox |
{{decdeg
| deg = 37
| min = 51
| hem = N
| rnd =
}},
{{decdeg
| deg = 119
| min = 34
| hem = W
| rnd =
}}
| Lua error: callParserFunction: function "#coordinates" was not found. | |
| 37.85, -119.5666667 | Working |
| 37.85, -119.567 | Sandbox |
{{decdeg
| deg = 37
| hem = N
}},
{{decdeg
| deg = 119
| hem = W
}}
| Lua error: callParserFunction: function "#coordinates" was not found. | |
| 37, -119 | Working |
| 37, -119 | Sandbox |
{{decdeg
| deg = 37.849923
| hem = N
}},
{{decdeg
| deg = 119.567666
| hem = W
}}
| Lua error: callParserFunction: function "#coordinates" was not found. | |
| 37.849923, -119.567666 | Working |
| 37.849923, -119.567666 | Sandbox |
{{decdeg
| deg = 37.849923
}},
{{decdeg
| deg = -119.567666
}}
| Lua error: callParserFunction: function "#coordinates" was not found. | |
| 37.849923, -119.567666 | Working |
| 37.849923, -119.567666 | Sandbox |
{{decdeg| deg = -0}},
{{decdeg| deg = -0}}
| Lua error: callParserFunction: function "#coordinates" was not found. | |
| -0, -0 | Working |
| 0, 0 | Sandbox |
{{decdeg
| deg = 0.85
| min =
| sec =
| hem =
| rnd = 5
}},
{{decdeg
| deg = -0.5677778
| min =
| sec =
| hem =
| rnd = 5
}}
| Lua error: callParserFunction: function "#coordinates" was not found. | |
| 0.85, -0.56778 | Working |
| 0.85, -0.56778 | Sandbox |