Difference between revisions of "Template:Test split table"

From geofiction
Jump to navigation Jump to search
(Created page with "<!-- Please DO NOT EDIT! Please contact User:Mstr for any edits! --><includeonly>{| {{ #If:{{{relation|}}} | {{ #If:{{{type|}}} | {{#clear_external_data:}}{{#get_web_data:url=...")
 
m (Replaced content with "<includeonly>{| {{Test split table1|relation={{{relation}}}|type={{{type}}}|column1tag={{{column1tag}}}}} {{Test split table2|type={{{type}}}|topic={{{topic}}}|column1sort...")
Tag: Replaced
Line 1: Line 1:
<!-- Please DO NOT EDIT! Please contact User:Mstr for any edits! --><includeonly>{|
+
<includeonly>{|
{{ #If:{{{relation|}}} |
+
{{Test split table1|relation={{{relation}}}|type={{{type}}}|column1tag={{{column1tag}}}}}
{{ #If:{{{type|}}} |
+
{{Test split table2|type={{{type}}}|topic={{{topic}}}|column1sort={{{column1sort}}}|column1name={{{column1name}}}|column1tag={{{column1tag}}}}}
{{#clear_external_data:}}{{#get_web_data:url=https://opengeofiction.net/api/0.6/relation/{{{relation}}}/full
 
|format=xml
 
|data=
 
{{{type}}}_id=/osm/{{{type}}}/@id
 
{{ #If:{{{column1tag|}}} |
 
,{{{column1tag}}}=/osm/{{{type}}}/tag[@k='{{{column1tag}}}']/@v {{ #If:{{{column2tag|}}} |
 
,{{{column2tag}}}=/osm/{{{type}}}/tag[@k='{{{column2tag}}}']/@v {{ #If:{{{column3tag|}}} |
 
,{{{column3tag}}}=/osm/{{{type}}}/tag[@k='{{{column3tag}}}']/@v {{ #If:{{{column4tag|}}} |
 
,{{{column4tag}}}=/osm/{{{type}}}/tag[@k='{{{column4tag}}}']/@v {{ #If:{{{column5tag|}}} |
 
,{{{column5tag}}}=/osm/{{{type}}}/tag[@k='{{{column5tag}}}']/@v {{ #If:{{{column6tag|}}} |
 
,{{{column6tag}}}=/osm/{{{type}}}/tag[@k='{{{column6tag}}}']/@v {{ #If:{{{column7tag|}}} |
 
,{{{column7tag}}}=/osm/{{{type}}}/tag[@k='{{{column7tag}}}']/@v {{ #If:{{{column8tag|}}} |
 
,{{{column8tag}}}=/osm/{{{type}}}/tag[@k='{{{column8tag}}}']/@v {{ #If:{{{column9tag|}}} |
 
,{{{column9tag}}}=/osm/{{{type}}}/tag[@k='{{{column9tag}}}']/@v }} }} }} }} }} }} }} }} }}
 
|use xpath
 
}} }} |
 
{{ #If:{{{search1|}}} |
 
{{#clear_external_data:}}{{#get_web_data:url=https://osm3s.opengeofiction.net/api/interpreter?data={{#if:{{{area|}}} | <!--
 
 
 
########################### Mergania
 
 
 
-->{{#ifeq:{{{area}}} | MER |
 
(area%5B%22admin_level%22=2%5D%5B%22name%22=%22Ӎєrɠąɲɣ%22%5D;)-%3E.bndarea;%0A | <!--
 
 
 
########################### other areas
 
 
 
-->(area%5B%22admin_level%22%5D%5B%22name%22=%22{{#replace:{{{area}}}| |%20}}%22%5D;)-%3E.bndarea;%0A }} }}<!--
 
 
 
########################### search1
 
 
 
-->{{{type}}}{{#if:{{{area|}}} |
 
(area.bndarea) }}%5B%22{{lc: {{#replace:{{#titleparts:{{{search1}}}|1|1}}| |_}} }}%22{{#if: {{#titleparts:{{{search1}}}|2|2}} | %3D%22{{MER-opq-enablenames | {{{search1}}} }}%22 }}%5D<!--
 
 
 
########################### search2
 
 
 
-->{{#if:{{{search2|}}} | %5B%22{{lc: {{#replace:{{#titleparts:{{{search2}}}|1|1}}| |_}} }}%22{{#if: {{#titleparts:{{{search2}}}|2|2}} | %3D%22{{MER-opq-enablenames | {{{search2}}} }}%22 }}%5D }}<!--
 
 
 
########################### search3
 
 
 
-->{{#if:{{{search3|}}} | %5B%22{{lc: {{#replace:{{#titleparts:{{{search3}}}|1|1}}| |_}} }}%22{{#if: {{#titleparts:{{{search3}}}|2|2}} | %3D%22{{MER-opq-enablenames | {{{search3}}} }}%22 }}%5D }};out;<!--
 
 
 
-->
 
|format=xml
 
|data=
 
{{{type}}}_id=/osm/{{{type}}}/@id
 
{{ #If:{{{column1tag|}}} |
 
,{{{column1tag}}}=/osm/{{{type}}}/tag[@k='{{{column1tag}}}']/@v {{ #If:{{{column2tag|}}} |
 
,{{{column2tag}}}=/osm/{{{type}}}/tag[@k='{{{column2tag}}}']/@v {{ #If:{{{column3tag|}}} |
 
,{{{column3tag}}}=/osm/{{{type}}}/tag[@k='{{{column3tag}}}']/@v {{ #If:{{{column4tag|}}} |
 
,{{{column4tag}}}=/osm/{{{type}}}/tag[@k='{{{column4tag}}}']/@v {{ #If:{{{column5tag|}}} |
 
,{{{column5tag}}}=/osm/{{{type}}}/tag[@k='{{{column5tag}}}']/@v {{ #If:{{{column6tag|}}} |
 
,{{{column6tag}}}=/osm/{{{type}}}/tag[@k='{{{column6tag}}}']/@v {{ #If:{{{column7tag|}}} |
 
,{{{column7tag}}}=/osm/{{{type}}}/tag[@k='{{{column7tag}}}']/@v {{ #If:{{{column8tag|}}} |
 
,{{{column8tag}}}=/osm/{{{type}}}/tag[@k='{{{column8tag}}}']/@v {{ #If:{{{column9tag|}}} |
 
,{{{column9tag}}}=/osm/{{{type}}}/tag[@k='{{{column9tag}}}']/@v }} }} }} }} }} }} }} }} }}
 
|use xpath
 
}} }} }}<!--
 
______________________________________________________________________
 
__/\\\\____________/\\\\_____/\\\\\\\\\\\_____________________________       
 
  _\/\\\\\\________/\\\\\\___/\\\/////////\\\___________________________     
 
  _\/\\\//\\\____/\\\//\\\__\//\\\______\///____/\\\____________________     
 
    _\/\\\\///\\\/\\\/_\/\\\___\////\\\________/\\\\\\\\\\\__/\\/\\\\\\\__   
 
    _\/\\\__\///\\\/___\/\\\______\////\\\____\////\\\////__\/\\\/////\\\_   
 
      _\/\\\____\///_____\/\\\_________\////\\\____\/\\\______\/\\\___\///__ 
 
      _\/\\\_____________\/\\\__/\\\______\//\\\___\/\\\_/\\__\/\\\_________ 
 
        _\/\\\_____________\/\\\_\///\\\\\\\\\\\/____\//\\\\\___\/\\\_________
 
        _\///______________\///____\///////////_______\/////____\///__________
 
          ______________________________________________________________________
 
 
 
-->{{ #If:{{{collapsible|}}} |
 
{{ #If:{{{collapsed|}}} |
 
{{{!}} class="wikitable sortable mw-collapsible mw-collapsed;" |
 
{{{!}} class="wikitable sortable mw-collapsible" }} |
 
{{{!}} class="wikitable sortable" }} style="text-align:left; width:{{{width|500}}}px;"
 
|-
 
! class="unsortable" style="background:#{{{bgcolor|CCCCFF}}};" {{ #If:{{{column9tag|}}} |
 
colspan="9" | {{ #If:{{{column8tag|}}} |
 
colspan="8" | {{ #If:{{{column7tag|}}} |
 
colspan="7" | {{ #If:{{{column6tag|}}} |
 
colspan="6" | {{ #If:{{{column5tag|}}} |
 
colspan="5" | {{ #If:{{{column4tag|}}} |
 
colspan="4" | {{ #If:{{{column3tag|}}} |
 
colspan="3" | {{ #If:{{{column2tag|}}} |
 
colspan="2" | {{ #If:{{{column1tag|}}} |
 
colspan="1" }} }} }} }} }} }} }} }} }} | {{{topic|Table}}}
 
! class="unsortable" style="background:#{{{bgcolor|CCCCFF}}}; text-align:right; width:50px;" | {{Refresh}}
 
|-
 
{{ #If:{{{column1tag|}}} |
 
{{ #If:{{{column1sort|}}}{{{column1width|}}} |
 
! {{ #If:{{{column1sort|}}} |
 
class="unsortable" }} {{ #If:{{{column1width|}}} |
 
style="width:{{{column1width}}}px;" }} {{!}} | ! }} {{{column1name}}}
 
{{ #If:{{{column2tag|}}} |
 
{{ #If:{{{column2sort|}}}{{{column2width|}}} |
 
! {{ #If:{{{column2sort|}}} |
 
class="unsortable" }} {{ #If:{{{column2width|}}} |
 
style="width:{{{column2width}}}px;" }} {{!}} | ! }} {{{column2name}}}
 
{{ #If:{{{column3tag|}}} |
 
{{ #If:{{{column3sort|}}}{{{column3width|}}} |
 
! {{ #If:{{{column3sort|}}} |
 
class="unsortable" }} {{ #If:{{{column3width|}}} |
 
style="width:{{{column3width}}}px;" }} {{!}} | ! }} {{{column3name}}}
 
{{ #If:{{{column4tag|}}} |
 
{{ #If:{{{column4sort|}}}{{{column4width|}}} |
 
! {{ #If:{{{column4sort|}}} |
 
class="unsortable" }} {{ #If:{{{column4width|}}} |
 
style="width:{{{column4width}}}px;" }} {{!}} | ! }} {{{column4name}}}
 
{{ #If:{{{column5tag|}}} |
 
{{ #If:{{{column5sort|}}}{{{column5width|}}} |
 
! {{ #If:{{{column5sort|}}} |
 
class="unsortable" }} {{ #If:{{{column5width|}}} |
 
style="width:{{{column5width}}}px;" }} {{!}} | ! }} {{{column5name}}}
 
{{ #If:{{{column6tag|}}} |
 
{{ #If:{{{column6sort|}}}{{{column6width|}}} |
 
! {{ #If:{{{column6sort|}}} |
 
class="unsortable" }} {{ #If:{{{column6width|}}} |
 
style="width:{{{column6width}}}px;" }} {{!}} | ! }} {{{column6name}}}
 
{{ #If:{{{column7tag|}}} |
 
{{ #If:{{{column7sort|}}}{{{column7width|}}} |
 
! {{ #If:{{{column7sort|}}} |
 
class="unsortable" }} {{ #If:{{{column7width|}}} |
 
style="width:{{{column7width}}}px;" }} {{!}} | ! }} {{{column7name}}}
 
{{ #If:{{{column8tag|}}} |
 
{{ #If:{{{column8sort|}}}{{{column8width|}}} |
 
! {{ #If:{{{column8sort|}}} |
 
class="unsortable" }} {{ #If:{{{column8width|}}} |
 
style="width:{{{column8width}}}px;" }} {{!}} | ! }} {{{column8name}}}
 
{{ #If:{{{column9tag|}}} |
 
{{ #If:{{{column9sort|}}}{{{column9width|}}} |
 
! {{ #If:{{{column9sort|}}} |
 
class="unsortable" }} {{ #If:{{{column9width|}}} |
 
style="width:{{{column9width}}}px;" }} {{!}} | ! }} {{{column9name}}} }} }} }} }} }} }} }} }} }}
 
! class="unsortable" | Map
 
|-
 
{{#for_external_table:<nowiki/>
 
{{ #If:{{{column1tag|}}} |
 
{{!}} {{ #If:{{{column1link|}}} |
 
[[{{{{{{column1tag|}}}}}}]] | {{{{{{column1tag|}}}}}}
 
}}
 
{{ #If:{{{column2tag|}}} |
 
{{!}} {{ #If:{{{column2link|}}} |
 
[[{{{{{{column2tag|}}}}}}]] | {{{{{{column2tag|}}}}}}
 
}}
 
{{ #If:{{{column3tag|}}} |
 
{{!}} {{ #If:{{{column3link|}}} |
 
[[{{{{{{column3tag|}}}}}}]] | {{{{{{column3tag|}}}}}}
 
}}
 
{{ #If:{{{column4tag|}}} |
 
{{!}} {{ #If:{{{column4link|}}} |
 
[[{{{{{{column4tag|}}}}}}]] | {{{{{{column4tag|}}}}}}
 
}}
 
{{ #If:{{{column5tag|}}} |
 
{{!}} {{ #If:{{{column5link|}}} |
 
[[{{{{{{column5tag|}}}}}}]] | {{{{{{column5tag|}}}}}}
 
}}
 
{{ #If:{{{column6tag|}}} |
 
{{!}} {{ #If:{{{column6link|}}} |
 
[[{{{{{{column6tag|}}}}}}]] | {{{{{{column6tag|}}}}}}
 
}}
 
{{ #If:{{{column7tag|}}} |
 
{{!}} {{ #If:{{{column7link|}}} |
 
[[{{{{{{column7tag|}}}}}}]] | {{{{{{column7tag|}}}}}}
 
}}
 
{{ #If:{{{column8tag|}}} |
 
{{!}} {{ #If:{{{column8link|}}} |
 
[[{{{{{{column8tag|}}}}}}]] | {{{{{{column8tag|}}}}}}
 
}}
 
{{ #If:{{{column9tag|}}} |
 
{{!}} {{ #If:{{{column9link|}}} |
 
[[{{{{{{column9tag|}}}}}}]] | {{{{{{column9tag|}}}}}}
 
}} }} }} }} }} }} }} }} }} }}
 
{{!}} [[File:OGFmapicon.png|18px|link=]] <span class="plainlinks">[https://opengeofiction.net/{{{type}}}/{{{{{{type}}}_id}}} map]</span>
 
{{!}}-
 
}} |}
 
 
{{#clear_external_data:}}
 
{{#clear_external_data:}}
 
|}
 
|}

Revision as of 22:59, 28 January 2023


Test

Error while fetching data from URL https://opengeofiction.net/api/0.6/relation/48497/full: $2.
There was a problem during the HTTP request: 410 Gone
Could not get URL https://opengeofiction.net/api/0.6/relation/48497/full after 3 tries.
List of Gobeletplain Cafés MER-refresh.png
Name Map