Template:Deg2DMS/testcases
| 42px | This is the template test cases page for the sandbox of Template:Deg2DMS. 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: |
{{Deg2DMS|30.2000}}
{{Deg2DMS}}
30° 12′ 0″
{{Deg2DMS/sandbox}}
30° 12′ 0″
{{Deg2DMS|30.2000|p=0}}
{{Deg2DMS}}
30° 12′ 0″
{{Deg2DMS/sandbox}}
30° 12′ 0″
{{Deg2DMS|30.2000|p=1}}
{{Deg2DMS}}
30° 12′ 0″
{{Deg2DMS/sandbox}}
30° 12′ 0″
{{Deg2DMS|30.2|p=5}}
{{Deg2DMS}}
30° 12′ 0″
{{Deg2DMS/sandbox}}
30° 12′ 0″
{{Deg2DMS|30.21}}
{{Deg2DMS}}
30° 12′ 36″
{{Deg2DMS/sandbox}}
30° 12′ 36″
{{Deg2DMS|30.3}}
{{Deg2DMS}}
30° 18′ 0″
{{Deg2DMS/sandbox}}
30° 18′ 0″
{{Deg2DMS|30.4}}
{{Deg2DMS}}
30° 24′ 0″
{{Deg2DMS/sandbox}}
30° 24′ 0″
{{Deg2DMS|30.5}}
{{Deg2DMS}}
30° 30′ 0″
{{Deg2DMS/sandbox}}
30° 30′ 0″
{{Deg2DMS|105.38}}
{{Deg2DMS}}
105° 22′ 48″
{{Deg2DMS/sandbox}}
105° 22′ 48″
| Test1 |
|---|
{{Deg2DMS|param1|param2|...|name3=value3}}
{{Deg2DMS}} Expression error: Unrecognized word "param".° Expression error: Unrecognized word "param".′ Expression error: Unrecognized word "param".″ {{Deg2DMS/sandbox}} Expression error: Unrecognized word "param".° Expression error: Unrecognized word "param".′ Expression error: Unrecognized word "param".″ |
| Test2 |
|---|
{{Deg2DMS|param1|param2|...|name3=value3}}
{{Deg2DMS}} Expression error: Unrecognized word "param".° Expression error: Unrecognized word "param".′ Expression error: Unrecognized word "param".″ {{Deg2DMS/sandbox}} Expression error: Unrecognized word "param".° Expression error: Unrecognized word "param".′ Expression error: Unrecognized word "param".″ |
Rounding examples
11 12 12 12 12 12 12 11 11, (desired minutes=12; round=14 wins)
60, -0, -0, -0, -0, -0, -0, -0, 60, 60, 60, 60, (desired seconds=0; round=14 wins)
22 24 22 22 22 22 22 22 22 22, (desired minutes=22; round>1 wins)
59 60 59 59 59 59 59 59 59 59 59 59, (desired minutes=59; round>1 wins)