Template:TChartlet
From CruisersWiki
(Difference between revisions)
Line 1: | Line 1: | ||
- | <includeonly>{{if | + | <includeonly><!-- |
+ | --><div class="chartlet-container style={{if | ||
| test= {{{standalone|}}} | | test= {{{standalone|}}} | ||
- | | then | + | | then= "height: 100%; width: 100%; background-color: rgb(243, 215, 193);" |
- | | else | + | | else= "width:{{?|test={{{width|}}}|{{{width}}}|350px}}; height:{{?|test={{{height|}}}|{{{height}}}|350px}}; border-style:solid; border-width:1px; border-color:lightgrey; {{if |
|test= {{IsEq|{{{align|right}}}|center}} | |test= {{IsEq|{{{align|right}}}|center}} | ||
|then= clear:both; margin-left: auto; margin-right: auto | |then= clear:both; margin-left: auto; margin-right: auto | ||
|else= clear:{{{align|right}}}; float: {{{align|right}}}; | |else= clear:{{{align|right}}}; float: {{{align|right}}}; | ||
- | }}"> | + | }}" |
- | }} | + | }}><!-- |
- | <div style="display:none"> | + | --><div class="chartlet chartlet-test {{?|test={{{standalone|}}}|chartlet-standalone}"><!-- |
- | lat{{=}}{{?|test={{{lat|}}}|{{anchorencode:{{{lat|}}}}}|41.2462244}} {{!}} lon{{=}}{{?|test={{{lon|}}}|{{anchorencode:{{{lon|}}}}}|9.1974878}} {{!}} zoom{{=}}{{?|test={{{zoom|}}}|{{{zoom|}}}|16}} {{!}} {{{params|}}} | + | --><div style="display:none"><!-- |
- | </div><!-- | + | -->lat{{=}}{{?|test={{{lat|}}}|{{anchorencode:{{{lat|}}}}}|41.2462244}} {{!}} lon{{=}}{{?|test={{{lon|}}}|{{anchorencode:{{{lon|}}}}}|9.1974878}} {{!}} zoom{{=}}{{?|test={{{zoom|}}}|{{{zoom|}}}|16}} {{!}} {{{params|}}}<!-- |
+ | --></div><!-- | ||
+ | --></div><!-- | ||
+ | <div class="chartlet-static" style="background-image:{{#widget:Chartlet static URL|width={{?|test={{{width|}}}|{{{width}}}|350px}}|height={{?|test={{{height|}}}|{{{height}}}|350px}}|zoom={{?|test={{{zoom|}}}|{{{zoom|}}}|16}}|lat={{?|test={{{lat|}}}|{{anchorencode:{{{lat|}}}}}|41.2462244}}|lon={{?|test={{{lon|}}}|{{anchorencode:{{{lon|}}}}}|9.1974878}}}}"><!-- | ||
--></div><!-- | --></div><!-- | ||
--></includeonly><noinclude> | --></includeonly><noinclude> |
Revision as of 15:32, 11 November 2018
{{Chartlet|lat=41.235983333333 |lon= 9.1945166666667 | zoom=14}}
{{Chartlet|lat=41 14.805 N|lon=9 14.273 E| width=400px| height=300px}}