Jump to content

User:Xioma sg/Sandbox: Difference between revisions

From OpenGeofiction
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:User:xioma_sg/Sandbox}}
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 9: Line 10:
|}
|}
=== Route styles ===
=== Route styles ===
{| class="wikitable" style="text-align: center;"
{|
|-
|-
| <span style="padding: 1px 1px 0.3em 1px; color: #000000; background-color: #ffffff; border: 1px solid black; font-weight: normal; font-family: Arial, sans-serif; border-radius:0 0 1em 1em;">1</span> || <span style="padding: 1px 1px 0.3em 1px; color: #000000; background-color: #ffffff; border: 1px solid black; font-weight: normal; font-family: Arial, sans-serif; border-radius:0 0 1em 1em;">12</span> || <span style="padding: 1px 1px 0.3em 1px; color: #000000; background-color: #ffffff; border: 1px solid black; font-weight: normal; font-family: Arial, sans-serif; border-radius:0 0 1em 1em;">123</span>
| historic || <span style="padding: 1px 1px 0.3em 1px; color: #000000; background-color: #ffffff; border: 1px solid black; border-radius:0 0 1em 1em;">9</span> || <span style="padding: 1px 1px 0.3em 1px; color: #000000; background-color: #ffffff; border: 1px solid black; border-radius:0 0 1em 1em;">99</span> || <span style="padding: 1px 1px 0.3em 1px; color: #000000; background-color: #ffffff; border: 1px solid black; border-radius:0 0 1em 1em;">999</span>
|-
|-
| <span style="padding: 1px 4px 0.4em 4px; color: #ffffff; background-color: #006E39; border:none; font-weight: normal; font-family: Arial, sans-serif; border-radius:0 0 1em 1em;">9</span> || <span style="padding: 1px 3px 0.4em 3px; color: #ffffff; background-color: #006E39; border:none; font-weight: normal; font-family: Arial, sans-serif; border-radius:0 0 1em 1em;">99</span> || <span style="padding: 1px 3px 0.4em 3px; color: #ffffff; background-color: #006E39; border:none; font-weight: normal; font-family: Arial, sans-serif; border-radius:0 0 1em 1em;">999</span>
| motorway || <span style="padding: 1px 4px 0.4em 4px; color: #ffffff; background-color: #006E39; border-radius:0 0 1em 1em;">9</span> || <span style="padding: 1px 3px 0.4em 3px; color: #ffffff; background-color: #006E39; border-radius:0 0 1em 1em;">99</span> || <span style="padding: 1px 3px 0.4em 3px; color: #ffffff; background-color: #006E39; border-radius:0 0 1em 1em;">999</span>
|-
|-
| <span style="padding: 1px 4px 0.4em 4px; color: #ffffff; background-color: #003983; border:none; font-weight: normal; font-family: Arial, sans-serif; border-radius:0 0 1em 1em;">9</span> || <span style="padding: 1px 3px 0.4em 3px; color: #ffffff; background-color: #003983; border:none; font-weight: normal; font-family: Arial, sans-serif; border-radius:0 0 1em 1em;">99</span> || <span style="padding: 1px 3px 0.4em 3px; color: #ffffff; background-color: #003983; border:none; font-weight: normal; font-family: Arial, sans-serif; border-radius:0 0 1em 1em;">999</span>
| national || <span style="padding: 1px 4px 0.4em 4px; color: #ffffff; background-color: #003983; border-radius:0 0 1em 1em;">9</span> || <span style="padding: 1px 3px 0.4em 3px; color: #ffffff; background-color: #003983; border-radius:0 0 1em 1em;">99</span> || <span style="padding: 1px 3px 0.4em 3px; color: #ffffff; background-color: #003983; border-radius:0 0 1em 1em;">999</span>
|-
|-
| <span style="padding: 1px 4px 0.4em 4px; color: #ffffff; background-color: #DD030C; border:none; font-weight: normal; font-family: Arial, sans-serif; border-radius:0 0 1em 1em;">9</span> || <span style="padding: 1px 3px 0.4em 3px; color: #ffffff; background-color: #DD030C; border:none; font-weight: normal; font-family: Arial, sans-serif; border-radius:0 0 1em 1em;">99</span> || <span style="padding: 1px 3px 0.4em 3px; color: #ffffff; background-color: #DD030C; border:none; font-weight: normal; font-family: Arial, sans-serif; border-radius:0 0 1em 1em;">999</span>
| regional || <span style="padding: 1px 4px 0.4em 4px; color: #ffffff; background-color: #DD030C; border-radius:0 0 1em 1em;">9</span> || <span style="padding: 1px 3px 0.4em 3px; color: #ffffff; background-color: #DD030C; border-radius:0 0 1em 1em;">99</span> || <span style="padding: 1px 3px 0.4em 3px; color: #ffffff; background-color: #DD030C; border-radius:0 0 1em 1em;">999</span>
|-
|-
| <span style="padding:1px 0.5em; color:#ffffff; background-color:#006E39; border:none; font-weight:bold; font-family:Arial, sans-serif; -webkit-border-radius:0.2em; -moz-border-radius:0.2em; border-radius:0.2em;">A-9</span> || <span style="padding:1px 0.5em; color:#ffffff; background-color:#006E39; border:none; font-weight:bold; font-family:Arial, sans-serif; -webkit-border-radius:0.2em; -moz-border-radius:0.2em; border-radius:0.2em;">A-99</span> || <span style="padding:1px 0.5em; color:#ffffff; background-color:#006E39; border:none; font-weight:bold; font-family:Arial, sans-serif; -webkit-border-radius:0.2em; -moz-border-radius:0.2em; border-radius:0.2em;">A-999</span>
| all numbers are unique
|-
|-
| <span style="padding:1px 0.5em; color:#ffffff; background-color:#003983; border:none; font-weight:bold; font-family:Arial, sans-serif; -webkit-border-radius:0.2em; -moz-border-radius:0.2em; border-radius:0.2em;">N-9</span> || <span style="padding:1px 0.5em; color:#ffffff; background-color:#003983; border:none; font-weight:bold; font-family:Arial, sans-serif; -webkit-border-radius:0.2em; -moz-border-radius:0.2em; border-radius:0.2em;">N-99</span> || <span style="padding:1px 0.5em; color:#ffffff; background-color:#003983; border:none; font-weight:bold; font-family:Arial, sans-serif; -webkit-border-radius:0.2em; -moz-border-radius:0.2em; border-radius:0.2em;">N-999</span>
|}
=== Line styles ===
==== Long distance and regional ====
<nowiki><span style="padding:0.25em 0.5em; color:TEXTCOLOUR; background-color:BACKGROUNDCOLOUR; font-weight:bold; border-radius:0.8em;"><small>''CATEGORY ''</small>NUMBER</span></nowiki>
{|
|-
|-
| <span style="padding:1px 0.5em; color:#ffffff; background-color:#DD030C; border:none; font-weight:bold; font-family:Arial, sans-serif; -webkit-border-radius:0.2em; -moz-border-radius:0.2em; border-radius:0.2em;">X-9</span> || <span style="padding:1px 0.5em; color:#ffffff; background-color:#DD030C; border:none; font-weight:bold; font-family:Arial, sans-serif; -webkit-border-radius:0.2em; -moz-border-radius:0.2em; border-radius:0.2em;">X-99</span> || <span style="padding:1px 0.5em; color:#ffffff; background-color:#DD030C; border:none; font-weight:bold; font-family:Arial, sans-serif; -webkit-border-radius:0.2em; -moz-border-radius:0.2em; border-radius:0.2em;">X-999</span>
| <span style="padding:0.25em 0.5em; color:white; background-color:#800000; font-weight:bold; border-radius:0.8em;"><small>''IN ''</small>1</span> || <span style="padding:0.25em 0.5em; color:white; background-color:#AA4400; font-weight:bold; border-radius:0.8em;"><small>''IC ''</small>17</span> || <span style="padding:0.25em 0.5em; color:black; background-color:#00CCFF; font-weight:bold; border-radius:0.8em;"><small>''IR ''</small>27</span> || <span style="padding:0.25em 0.5em; color:white; background-color:#D35F5F; font-weight:bold; border-radius:0.8em;"><small>''R ''</small>53</span>  
|-
|-
|}
|}
=== Line styles ===
==== Local ====
{| class="wikitable"
<nowiki><span style="font-weight:bold; white-space:nowrap; padding:0px .4em;background-color: BACKGROUNDCOLOUR; border-radius: 0ex; color:TEXTCOLOUR;"><small>''CATEGORY ''</small>NUMBER</span></nowiki>
|-
{|
| <span style="padding:1px 0.5em; color:#ffffff; background-color:#C83737; border:none; font-weight:bold; font-family:Arial, sans-serif; -webkit-border-radius:0.2em; -moz-border-radius:0.2em; border-radius:0.2em;"><small>''C ''</small>3</span> || <span style="padding:1px 0.5em; color:#ffffff; background-color:#00AA00; border:none; font-weight:bold; font-family:Arial, sans-serif; -webkit-border-radius:0.2em; -moz-border-radius:0.2em; border-radius:0.2em;"><small>''IC ''</small>13</span> || <span style="padding:1px 0.5em; color:#ffffff; background-color:#04A5DB; border:none; font-weight:bold; font-family:Arial, sans-serif; -webkit-border-radius:0.2em; -moz-border-radius:0.2em; border-radius:0.2em;"><small>''B ''</small>771</span> || <span style="padding:1px 0.5em; color:#000000; background-color:#EAD00E; border:none; font-weight:bold; font-family:Arial, sans-serif; -webkit-border-radius:0.2em; -moz-border-radius:0.2em; border-radius:0.2em;"><small>''Ld ''</small>1099</span>
|-
|-
| <span style="font-weight:bold; white-space:nowrap; padding:0px .4em;background-color: #FCC837; border-radius: 0ex; color:black;"><small>''B ''</small>72</span>
<span style="background-color:#898875; color:white; border-top-left-radius: 0.3em; border-bottom-left-radius: 0.3em; padding-left:0.3em; padding-right:0.3em;">Bus</span><span style="font-weight:bold; background-color: orange; color:white; border-top-right-radius: 0.3em; border-bottom-right-radius: 0.3em; padding-right:0.3em; padding-left:0.3em;">A</span>
=== Table ===
{{#clear_external_data:}}
{{#get_web_data:url=https://overpass.ogf.rent-a-planet.com/api/interpreter?data=relation%5B%22type%22%3D%22boundary%22%5D%5B%22admin_level%22%3D%222%22%5D%5B%22ogf%3Awiki%22%5D%0A%3B%0Aout%3B
|format=xml
|data=
relation_id=/osm/relation/@id
,name=/osm/relation/tag[@k='ogf:wiki']/@v
,id=/osm/relation/tag[@k='ogf:id']/@v
,hdi=/osm/relation/tag[@k='economy:hdi']/@v
,currency=/osm/relation/tag[@k='currency']/@v
|use xpath
}}
{| class="wikitable sortable"
! Name
! ID
! HDI
! Currency
{{#for_external_table:<nowiki/>
{{!}}-
{{!}}[[{{{name}}}]]
{{!}}{{{id}}}
{{!}}{{{hdi}}}
{{!}}<code>{{{currency}}}</code>
}}
|}
|}

Latest revision as of 17:07, 17 August 2023

Users / xioma_sg / Sandbox

Route styles

historic 9 99 999
motorway 9 99 999
national 9 99 999
regional 9 99 999
all numbers are unique

Line styles

Long distance and regional

<span style="padding:0.25em 0.5em; color:TEXTCOLOUR; background-color:BACKGROUNDCOLOUR; font-weight:bold; border-radius:0.8em;"><small>''CATEGORY ''</small>NUMBER</span>

IN 1 IC 17 IR 27 R 53

Local

<span style="font-weight:bold; white-space:nowrap; padding:0px .4em;background-color: BACKGROUNDCOLOUR; border-radius: 0ex; color:TEXTCOLOUR;"><small>''CATEGORY ''</small>NUMBER</span>

B 72

BusA

Table

Error while fetching data from URL https://overpass.ogf.rent-a-planet.com/api/interpreter?data=relation%5B%22type%22%3D%22boundary%22%5D%5B%22admin_level%22%3D%222%22%5D%5B%22ogf%3Awiki%22%5D%0A%3B%0Aout%3B: $2.
Error fetching URL: Could not resolve host: overpass.ogf.rent-a-planet.com
There was a problem during the HTTP request: 0 Error
Could not get URL https://overpass.ogf.rent-a-planet.com/api/interpreter?data=relation%5B%22type%22%3D%22boundary%22%5D%5B%22admin_level%22%3D%222%22%5D%5B%22ogf%3Awiki%22%5D%0A%3B%0Aout%3B after 3 tries.

Name ID HDI Currency