Template:Infobox mapframe/testcases
This is the template test cases page for the sandbox of Template:Infobox mapframe. 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: |
Shape feature[edit]
{{Infobox mapframe| |id=Q100}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
{{Infobox mapframe| |frame-lat=42.319 |frame-long=-71.002 |id=Q100}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
{{Infobox mapframe| |id=Q100 |shape=inverse}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
{{Infobox mapframe| |id=Q100 |shape=none}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Line feature[edit]
With OSM relation id on Wikidata[edit]
- Marker not specified
{{Infobox mapframe| |id=Q4681790}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
- Marker is specified
{{Infobox mapframe| |id=Q4681790 |marker=triangle |marker-color=008800}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
- Explicit
|marker=none
{{Infobox mapframe| |id=Q4681790 |marker=none}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Without OSM relation id on Wikidata[edit]
{{Infobox mapframe| |id=Q1939502}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Coordinates set to 'no value' on Wikidata[edit]
{{Infobox mapframe| |id=Q2327957}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Locally specified coords instead of Wikidata[edit]
No Wikidata item[edit]
{{Infobox mapframe|coord={{Coord|-31.876|115.897}}}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
wikidata=yes with no Wikidata item[edit]
{{Infobox mapframe|coord={{Coord|-31.876|115.897}}|wikidata=yes}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
testing "wikidata=no"[edit]
{{Infobox mapframe|coord={{Coord|-31.876|115.897}}|id=Q1939502|wikidata=no}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Overriding Wikidata item[edit]
{{Infobox mapframe|coord={{Coord|-31.876|115.897}}|id=Q1939502|marker=triangle}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Show OSM relations but use locally specified coords[edit]
{{Infobox mapframe|wikidata=yes|id=Q1939502|coord={{Coord|-31.876|115.897}}|marker=triangle}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
point=none (should show line/shape features)[edit]
{{Infobox mapframe|id=Q1939502|coord={{Coord|-31.876|115.897}}|point=none}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
coord parameter present but empty[edit]
{{Infobox mapframe |coord= |id=Q1939502 |marker=triangle |wikidata=yes}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
No coords locally and none on Wikidata[edit]
{{Infobox mapframe |id=Q1}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Geomask[edit]
Find mask by relation[edit]
{{Infobox mapframe |geomask=P17 |id=Q1297}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
{{Infobox mapframe|id=Q1297|geomask=P17|frame-coord={{Coord|39.8|N|98.3|W}}|zoom=2}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Mask Item specified[edit]
{{Infobox mapframe |geomask=Q1204 |id=Q1297}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Custom zoom and frame-coord with a mask[edit]
{{Infobox mapframe|id=Q1297|geomask=Q1204|zoom=6|frame-coord={{Coord|42|-88}}}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Edersee Dam[edit]
{{Infobox mapframe |geomask=P17 |id=Q3239281}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Q1950380, P131[edit]
{{Infobox mapframe |geomask=P131 |id=Q1950380}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Q1950380, P17[edit]
{{Infobox mapframe |geomask=P17 |id=Q1950380}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
More tests[edit]
Basic usage[edit]
Point feature (Wikidata coordinates):
{{Infobox mapframe |id=Q7270550}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Line feature:
{{Infobox mapframe |id=Q1318331}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Shape feature:
{{Infobox mapframe |id=Q61}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Using specified coordinates instead of Wikidata[edit]
Point feature (with coordinates specified, no shape/line feature from Wikidata item):
{{infobox mapframe |id=Q45935 |coord={{coord|31|56|S|115|58|E}} }}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Point feature (with coordinates specified, along with shape/line feature from Wikidata item):
{{infobox mapframe |id=Q45935 |wikidata=yes |coord={{coord|31|56|S|115|58|E}} }}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Inverse shape[edit]
{{Infobox mapframe |id=Q61 |shape=inverse}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Shape off[edit]
{{infobox mapframe |id=Q45935 |wikidata=yes |shape=none |coord={{coord|31|56|S|115|58|E}} }}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Point off[edit]
{{Infobox mapframe |id=Q7270550 |point=none}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Point on[edit]
{{Infobox mapframe |id=Q61 |point=on}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Line off[edit]
{{Infobox mapframe |id=Q1939502 |line=none |point=on}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Opacity[edit]
{{Infobox mapframe |id=Q61 |shape-fill-opacity=0.2}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
{{Infobox mapframe |id=Q61 |shape=inverse |shape-fill-opacity=0.2}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
{{Infobox mapframe|geomask=P17|id=Q3239281 |geomask-fill-opacity=0.8}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Switcher tests[edit]
Zooms[edit]
{{Infobox mapframe |id=Q4948020 |switcher=zooms}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Auto[edit]
{{Infobox mapframe |id=Q2224 |switcher=auto}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|
Geomasks[edit]
{{Infobox mapframe |id=Q4948020 |switcher=geomasks|geomask=Q30,Q100}}
{{Infobox mapframe}} | {{Infobox mapframe/sandbox}} |
---|---|