模板:Deg2HMS
外觀
0:0:0
參數及使用方法
[編輯]{{Deg2HMS|decimaldegrees|p=precision|sup=superscripts}}
Parameter p is optional and defaults to 3.
Parameter sup is optional and defaults to not-used, <blank>, or <null>. It is activated by "yes", or any text.
範例
[編輯]{{Deg2HMS|266.416837|p=4}}
returns 17:45:40.0409.
{{Deg2HMS|266.416837|p=4|sup= }}
returns 17:45:40.0409.
{{Deg2HMS|266.416837|p=4|sup=yes}}
returns 17h 45m 40.0409s.
{{Deg2HMS|266.416837|p=4|sup=y}}
returns 17h 45m 40.0409s.
{{Deg2HMS|266.416837|p=4|sup=no}}
returns 17h 45m 40.0409s.
上述文件嵌入自Template:Deg2HMS/doc。 (編輯 | 歷史) 編者可以在本模板的沙盒 (建立 | 鏡像)和測試樣例 (建立)頁面進行實驗。 請在/doc子頁面中添加分類。本模板的子頁面。 |