Difference between revisions of "Template:Infobox mapframe/testcases"
Jump to navigation
Jump to search
imported>Evad37 (→point=none (should show line/shape features): fix pre code) |
imported>Evad37 (wikidata=yes with no Wikidata item) |
||
| Line 39: | Line 39: | ||
{{Test case table| | {{Test case table| | ||
|coord={{Coord|-31.876|115.897}} | |coord={{Coord|-31.876|115.897}} | ||
| + | }} | ||
| + | ===wikidata=yes with no Wikidata item=== | ||
| + | <pre>{{Infobox mapframe|coord={{Coord|-31.876|115.897}}|wikidata=yes}}</pre> | ||
| + | {{Test case table| | ||
| + | |coord={{Coord|-31.876|115.897}} | ||
| + | |wikidata=yes | ||
}} | }} | ||
Latest revision as of 02:48, 28 October 2020
| This is the template test cases page for the sandbox of Template:Infobox mapframe. 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: |
Contents
Shape feature
Line feature
With OSM relation id on Wikidata
- Marker not specified
- Marker is specified
- Explicit
|marker=none
Without OSM relation id on Wikidata
Coordinates set to 'no value' on Wikidata
Locally specified coords instead of Wikidata
No Wikidata item
{{Infobox mapframe|coord={{Coord|-31.876|115.897}}}}
wikidata=yes with no Wikidata item
{{Infobox mapframe|coord={{Coord|-31.876|115.897}}|wikidata=yes}}
Overriding Wikidata item
{{Infobox mapframe|coord={{Coord|-31.876|115.897}}|id=Q1939502|marker=triangle}}
Show OSM relations but use locally specified coords
{{Infobox mapframe|wikidata=yes|id=Q1939502|coord={{Coord|-31.876|115.897}}|marker=triangle}}
point=none (should show line/shape features)
{{Infobox mapframe|id=Q1939502|coord={{Coord|-31.876|115.897}}|point=none}}
coord parameter present but empty
No coords locally and none on Wikidata
Geomask
Find mask by relation
{{Infobox mapframe|id=Q1297|geomask=P17|frame-coord={{Coord|39.8|N|98.3|W}}|zoom=2}}
Mask Item specified
Custom zoom and frame-coord with a mask
{{Infobox mapframe|id=Q1297|geomask=Q1204|zoom=6|frame-coord={{Coord|42|-88}}}}
Edersee Dam
Q1950380, P131
Q1950380, P17
More tests
Basic usage
Point feature (Wikidata coordinates):
{{Infobox mapframe |id=Q7270550}}
Template:Testcase table Line feature:
{{Infobox mapframe |id=Q1318331}}
Template:Testcase table Shape feature:
{{Infobox mapframe |id=Q61}}
Using specified coordinates instead of Wikidata
Point feature (with coordinates specified, no shape/line feature from Wikidata item):
{{infobox mapframe |id=Q45935 |coord={{coord|31|56|S|115|58|E}} }}
Template:Testcase table 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}} }}
Inverse shape
{{Infobox mapframe |id=Q61 |shape=inverse}}
Shape off
{{infobox mapframe |id=Q45935 |wikidata=yes |shape=none |coord={{coord|31|56|S|115|58|E}} }}
Point off
{{Infobox mapframe |id=Q7270550 |point=none}}
Point on
{{Infobox mapframe |id=Q61 |point=on}}
Line off
{{Infobox mapframe |id=Q1939502 |line=none |point=on}}
Opacity
{{Infobox mapframe |id=Q61 |shape-fill-opacity=0.2}}
{{Infobox mapframe |id=Q61 |shape=inverse |shape-fill-opacity=0.2}}
{{Infobox mapframe|geomask=P17|id=Q3239281 |geomask-fill-opacity=0.8}}
Switcher tests
Zooms
{{Infobox mapframe |id=Q4948020 |switcher=zooms}}
Auto
{{Infobox mapframe |id=Q2224 |switcher=auto}}
Geomasks
{{Infobox mapframe |id=Q4948020 |switcher=geomasks|geomask=Q30,Q100}}