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