Module talk:Tag/testcases
Jump to navigation
Jump to search
All tests passed.
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:Tag|key|landuse}} | landuse | landuse | |
{{#invoke:Tag|key|landuse|kl=FR}} | landuse | landuse | |
{{#invoke:Tag|key|landuse|kl=fr}} | landuse | landuse | |
{{#invoke:Tag|key|electrified|subkey=before 1927}} | electrified:before 1927 | electrified:before 1927 | |
{{#invoke:Tag|key|cycleway|:=right|::=smoothness|kl=de|kl:=de|kl::=de}} | cycleway:right:smoothness | cycleway:right:smoothness | |
{{#invoke:Tag|key|cycleway|:=right|::=smoothness|lang=de}} | cycleway:right:smoothness | cycleway:right:smoothness |
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:Tag|tag|highway}} | highway=* | highway=* | |
{{#invoke:Tag|tag|highway|residential}} | highway=residential | highway=residential | |
{{#invoke:Tag|tag| highway | residential }} | highway=residential | highway=residential | |
{{#invoke:Tag|tag|bridge||yes}} | bridge=yes | bridge=yes | |
{{#invoke:Tag|tag|ref||''ref number''}} | ref=ref number | ref=ref number | |
{{#invoke:Tag|tag|electrified|subkey=before 1927}} | electrified:before 1927=* | electrified:before 1927=* | |
{{#invoke:Tag|tag|network|NL:binnenstedelijke_ring}} | network=NL:binnenstedelijke_ring | network=NL:binnenstedelijke_ring | |
{{#invoke:Tag|tag|network|US:NY:Saint Lawrence}} | network=US:NY:Saint Lawrence | network=US:NY:Saint Lawrence | |
{{#invoke:Tag|tag|name:Zsye|'''🇺🇸'''}} | name:Zsye=🇺🇸 | name:Zsye=🇺🇸 | |
{{#invoke:Tag|tag|height|>20}} | height=>20 | height=>20 |
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:Tag|tag|wikipedia||fr:Paris}} | wikipedia=fr:Paris | wikipedia=fr:Paris | |
{{#invoke:Tag|tag|wikipedia|subkey=fr||Paris}} | wikipedia:fr=Paris | wikipedia:fr=Paris | |
{{#invoke:Tag|tag|wikipedia|subkey=en||Paris}} | wikipedia:en=Paris | wikipedia:en=Paris | |
{{#invoke:Tag|tag|wikidata||Q90}} | wikidata=Q90 | wikidata=Q90 | |
{{#invoke:Tag|tag|operator:wikidata||Q90}} | operator:wikidata=Q90 | operator:wikidata=Q90 | |
{{#invoke:Tag|tag|wikimedia_commons||[[c:File:Example.svg|File:Example.svg]]}} | wikimedia_commons=File:Example.svg | wikimedia_commons=File:Example.svg | |
{{#invoke:Tag|tag|website||http://www.paris.fr/}} | website=http://www.paris.fr/ | website=http://www.paris.fr/ | |
{{#invoke:Tag|tag|website||[https://www.example.com/ https://www.example.com/]}} | website=https://www.example.com/ | website=https://www.example.com/ |
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:Tag|tag|kl=de|highway|motorway}} | highway=motorway | highway=motorway | |
{{#invoke:Tag|tag|highway|vl=de|motorway}} | highway=motorway | highway=motorway | |
{{#invoke:Tag|tag|highway|motorway|kl=de|vl=de}} | highway=motorway | highway=motorway | |
{{#invoke:Tag|tag|cycleway|:=right|::=smoothness|excellent|kl=de|kl:=de|kl::=de}} | cycleway:right:smoothness=excellent | cycleway:right:smoothness=excellent |
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:Tag|tag|building:fireproof}} | building:fireproof=* | building:fireproof=* | |
{{#invoke:Tag|tag|addr|subkey=housenumber}} | addr:housenumber=* | addr:housenumber=* | |
{{#invoke:Tag|tag|oneway|:=bicycle}} | oneway:bicycle=* | oneway:bicycle=* | |
{{#invoke:Tag|tag|cycleway|:=right|::=smoothness}} | cycleway:right:smoothness=* | cycleway:right:smoothness=* | |
{{#invoke:Tag|tag|parking|:=right|::=restriction|:::=conditional||charging_only @ (07:00-22:00)}} | parking:right:restriction:conditional=charging_only @ (07:00-22:00) | parking:right:restriction:conditional=charging_only @ (07:00-22:00) |
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:Tag|tag|motor_vehicle|agricultural|;=forestry}} | motor_vehicle=agricultural;forestry | motor_vehicle=agricultural;forestry | |
{{#invoke:Tag|tag|access|agricultural|;=forestry|;;=destination}} | access=agricultural;forestry;destination | access=agricultural;forestry;destination | |
{{#invoke:Tag|tag|wheelchair||({{TagValue|wheelchair|yes}}/{{TagValue|wheelchair|no}})}} | wheelchair=(yes/no) | wheelchair=(yes/no) | |
{{#invoke:Tag|tag|motor_vehicle||({{TagValue|motor_vehicle|agricultural}}/{{TagValue|motor_vehicle|forestry}})}} | motor_vehicle=(agricultural/forestry) | motor_vehicle=(agricultural/forestry) | |
{{#invoke:Tag|tag|access||({{TagValue|access|agricultural}}/{{TagValue|access|forestry}}/{{TagValue|access|destination}})}} | access=(agricultural/forestry/destination) | access=(agricultural/forestry/destination) |
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:Tag|value|highway}} | * | * | |
{{#invoke:Tag|value|highway|motorway}} | motorway | motorway | |
{{#invoke:Tag|value|highway|motorway|''type of the way''}} | type of the way | type of the way | |
{{#invoke:Tag|value|amenity||shelter}} | shelter | shelter | |
{{#invoke:Tag|value|bridge|||yes}} | yes | yes | |
{{#invoke:Tag|value|ref|||''ref number''}} | ref number | ref number | |
{{#invoke:Tag|value|type|boundary}} | boundary | boundary |
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:Tag|value|link=tag|key=highway|value=motorway}} | motorway | motorway | |
{{#invoke:Tag|value|link=value|key=highway|value=motorway}} | motorway | motorway | |
{{#invoke:Tag|value|link=key|key=highway|value=motorway}} | motorway | motorway | |
{{#invoke:Tag|value|link=key#|key=amenity|value=embassy}} | embassy | embassy | |
{{#invoke:Tag|value|link=none|key=generator:source|value=biomass}} | biomass | biomass | |
{{#invoke:Tag|value|link=none|value=biomass}} | biomass | biomass | |
{{#invoke:Tag|value|lang=ja|link=tag|key=highway|value=motorway}} | motorway | motorway | |
{{#invoke:Tag|value|lang=ja|highway|motorway}} | motorway | motorway | |
{{#invoke:Tag|value|lang=ldn|highway|motorway}} | motorway | motorway |