"साँचा:Location map-line": अवतरणों में अंतर

मुक्त ज्ञानकोश विकिपीडिया से
No edit summary
trying to fix
पंक्ति 1: पंक्ति 1:
<includeonly>{{#if:{{{lat|}}}{{{lon|}}}||'''<big><span class="error">WARNING You are using the {{tl|location map-line}} template without proper parameters. If the text {{tl|location map-line}} appears in the wiki markup, this is not the proper use of the location map-line template. Replace {{tl|location map-line}} with {{tlp|location map-line|2=lat=[latitude]}} or {{tlp|location map-line|2=lon=[longitude]}}.</span></big>'''[[Category:articles using the location map-line template incorrectly]]<div style="display: none">}}<!--
<includeonly>{{#if:{{{lat|}}}{{{lon|}}}||'''<big><span class="error">WARNING You are using the {{tl|location map-line}} template without proper parameters. If the text {{tl|location map-line}} appears in the wiki markup, this is not the proper use of the location map-line template. Replace {{tl|location map-line}} with {{tlp|location map-line|2=lat=[latitude]}} or {{tlp|location map-line|2=lon=[longitude]}}.</span></big>'''[[Category:articles using the location map-line template incorrectly]]<div style="display: none">}}<!--
-->{{#ifexpr:{{#expr:abs({{{lon|0}}})}}>180 or {{#expr:abs({{{lat|0}}})}}>90|'''<span class="error">Error: Out of range.</span>'''|{{Location map+|Earth|relief=1|width={{{width|300}}}|float=right|alt=Line across the Earth|caption={{{caption|{{#if:{{{lon|}}}|{{#ifeq:{{{lon|0}}}|0|प्रधान मध्याह्न|{{#expr:abs({{{lon}}})}}{{#switch:{{#expr:abs({{{lon}}})}}|1|21|31|41|51|61|71|81|91|101|121|131|141|151|161|171=°|2|22|32|42|52|62|72|82|92|102|122|132|142|152|162|172=°|3|23|33|43|53|63|73|83|93|103|123|133|143|153|163|173=°|#default=°}} रेखांश {{#ifexpr:{{{lon}}}<180|{{#ifexpr:{{{lon}}}>0|पूर्व|पश्चिम}}|}}
-->{{#ifexpr:{{#expr:abs({{{lon|0}}})}}>180 or {{#expr:abs({{{lat|0}}})}}>90|'''<span class="error">Error: Out of range.</span>'''|{{Location map+|Earth|relief=1|width={{{width|300}}}|float=right|alt=Line across the Earth|caption={{{caption|{{#if:{{{lon|}}}|{{#ifeq:{{{lon|0}}}|0|प्रधान मध्याह्न|{{#expr:abs({{{lon}}})}}{{#switch:{{#expr:abs({{{lon}}})}}|1|21|31|41|51|61|71|81|91|101|121|131|141|151|161|171=st|2|22|32|42|52|62|72|82|92|102|122|132|142|152|162|172=nd|3|23|33|43|53|63|73|83|93|103|123|133|143|153|163|173=rd|#default=th}} रेखांश {{#ifexpr:{{{lon}}}<180|{{#ifexpr:{{{lon}}}>0|पूर्व|पश्चिम}}|}}
}}|{{#ifeq:{{{lat|0}}}|0|भूमध्य रेखा|{{#expr:abs({{{lat}}})}}{{#switch:{{#expr:abs({{{lat}}})}}|1|21|31|41|51|61|71|81=°|2|22|32|42|52|62|72|82=°|3|23|33|43|53|63|73|83=°|#default=°}} अक्षांश {{#ifexpr:{{{lat}}}>0|उत्तर|दक्षिण}}}}}}}}}|places={{Location map-line/draw line|Earth|lat={{{lat|}}}|lon={{{lon|}}}|background=#FFFFFF|label={{#expr:abs({{{lat|{{{lon|0}}}}}})}}°|position={{#if:{{{lon|}}}|{{#ifexpr:({{{lon|0}}})>0|center-left|center-right}}|{{#ifexpr:({{{lat|0}}})>0|bottom-center|top-center}}}}}}}}}}</includeonly><noinclude>
}}|{{#ifeq:{{{lat|0}}}|0|भूमध्य रेखा|{{#expr:abs({{{lat}}})}}{{#switch:{{#expr:abs({{{lat}}})}}|1|21|31|41|51|61|71|81=st|2|22|32|42|52|62|72|82=nd|3|23|33|43|53|63|73|83=rd|#default=th}} अक्षांश {{#ifexpr:{{{lat}}}>0|उत्तर|दक्षिण}}}}}}}}}|places={{Location map-line/draw line|Earth|lat={{{lat|}}}|lon={{{lon|}}}|background=#FFFFFF|label={{#expr:abs({{{lat|{{{lon|0}}}}}})}}°|position={{#if:{{{lon|}}}|{{#ifexpr:({{{lon|0}}})>0|center-left|center-right}}|{{#ifexpr:({{{lat|0}}})>0|bottom-center|top-center}}}}}}}}}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

10:28, 9 अप्रैल 2020 का अवतरण

परिचय का प्रतीक साँचा परिचय[देखें] [संपादन] [इतिहास] [पर्ज .]

Usage

code result
{{Location map-line|lon=-50}}
Line across the Earth
50°
50th रेखांश पश्चिम
{{Location map-line|lon=130}}
Line across the Earth
130°
130th रेखांश पूर्व
{{Location map-line|lat=-30}}
Line across the Earth
30°
30th अक्षांश दक्षिण
{{Location map-line|lat=60}}
Line across the Earth
60°
60th अक्षांश उत्तर

See also