Difference between revisions of "Template:Atab table"

From geofiction
Jump to navigation Jump to search
(Created page with "<includeonly>{{ #if:{{{collapsible|}}} | {{ #if:{{{collapsed|}}} | {{{!}} class="wikitable sortable mw-collapsible mw-collapsed;" | {{{!}} class="wikitable sort...")
 
m
Line 1: Line 1:
 
<includeonly>{{ #if:{{{collapsible|}}} |
 
<includeonly>{{ #if:{{{collapsible|}}} |
 
{{ #if:{{{collapsed|}}} |
 
{{ #if:{{{collapsed|}}} |
{{{!}} class=&quot;wikitable sortable mw-collapsible mw-collapsed;&quot; |
+
{{{!}} class="wikitable sortable mw-collapsible mw-collapsed;" |
{{{!}} class=&quot;wikitable sortable mw-collapsible&quot; }} |
+
{{{!}} class="wikitable sortable mw-collapsible" }} |
{{{!}} class=&quot;wikitable sortable&quot; }} style=&quot;text-align:left; width:{{{width|500}}}px;&quot;
+
{{{!}} class="wikitable sortable" }} style="text-align:left; width:{{{width|500}}}px;"
 
|-  
 
|-  
! class=&quot;unsortable&quot; style=&quot;background:#{{{bgcolor|CCCCFF}}};&quot; {{ #if:{{{column9tag|}}} |
+
! class="unsortable" style="background:#{{{bgcolor|CCCCFF}}};" {{ #if:{{{column9tag|}}} |
colspan=&quot;9&quot; | {{ #if:{{{column8tag|}}} |
+
colspan="9" | {{ #if:{{{column8tag|}}} |
colspan=&quot;8&quot; | {{ #if:{{{column7tag|}}} |
+
colspan="8" | {{ #if:{{{column7tag|}}} |
colspan=&quot;7&quot; | {{ #if:{{{column6tag|}}} |
+
colspan="7" | {{ #if:{{{column6tag|}}} |
colspan=&quot;6&quot; | {{ #if:{{{column5tag|}}} |
+
colspan="6" | {{ #if:{{{column5tag|}}} |
colspan=&quot;5&quot; | {{ #if:{{{column4tag|}}} |
+
colspan="5" | {{ #if:{{{column4tag|}}} |
colspan=&quot;4&quot; | {{ #if:{{{column3tag|}}} |
+
colspan="4" | {{ #if:{{{column3tag|}}} |
colspan=&quot;3&quot; | {{ #if:{{{column2tag|}}} |
+
colspan="3" | {{ #if:{{{column2tag|}}} |
colspan=&quot;2&quot; | {{ #if:{{{column1tag|}}} |
+
colspan="2" | {{ #if:{{{column1tag|}}} |
colspan=&quot;1&quot; }} }} }} }} }} }} }} }} }} | {{{topic|Table}}}
+
colspan="1" }} }} }} }} }} }} }} }} }} | {{{topic|Table}}}
! class=&quot;unsortable&quot; style=&quot;background:#{{{bgcolor|CCCCFF}}}; text-align:right; width:50px;&quot; | {{Refresh}}
+
! class="unsortable" style="background:#{{{bgcolor|CCCCFF}}}; text-align:right; width:50px;" | {{Refresh}}
 
|-  
 
|-  
 
{{ #if:{{{column1tag|}}} |
 
{{ #if:{{{column1tag|}}} |
 
{{ #if:{{{column1sort|}}}{{{column1width|}}} |
 
{{ #if:{{{column1sort|}}}{{{column1width|}}} |
 
! {{ #if:{{{column1sort|}}} |
 
! {{ #if:{{{column1sort|}}} |
class=&quot;unsortable&quot; }} {{ #if:{{{column1width|}}} |
+
class="unsortable" }} {{ #if:{{{column1width|}}} |
style=&quot;width:{{{column1width}}}px;&quot; }} {{!}} | ! }} {{{column1name}}}
+
style="width:{{{column1width}}}px;" }} {{!}} | ! }} {{{column1name}}}
 
{{ #if:{{{column2tag|}}} |
 
{{ #if:{{{column2tag|}}} |
 
{{ #if:{{{column2sort|}}}{{{column2width|}}} |
 
{{ #if:{{{column2sort|}}}{{{column2width|}}} |
 
! {{ #if:{{{column2sort|}}} |
 
! {{ #if:{{{column2sort|}}} |
class=&quot;unsortable&quot; }} {{ #if:{{{column2width|}}} |
+
class="unsortable" }} {{ #if:{{{column2width|}}} |
style=&quot;width:{{{column2width}}}px;&quot; }} {{!}} | ! }} {{{column2name}}}
+
style="width:{{{column2width}}}px;" }} {{!}} | ! }} {{{column2name}}}
 
{{ #if:{{{column3tag|}}} |
 
{{ #if:{{{column3tag|}}} |
 
{{ #if:{{{column3sort|}}}{{{column3width|}}} |
 
{{ #if:{{{column3sort|}}}{{{column3width|}}} |
 
! {{ #if:{{{column3sort|}}} |
 
! {{ #if:{{{column3sort|}}} |
class=&quot;unsortable&quot; }} {{ #if:{{{column3width|}}} |
+
class="unsortable" }} {{ #if:{{{column3width|}}} |
style=&quot;width:{{{column3width}}}px;&quot; }} {{!}} | ! }} {{{column3name}}}
+
style="width:{{{column3width}}}px;" }} {{!}} | ! }} {{{column3name}}}
 
{{ #if:{{{column4tag|}}} |
 
{{ #if:{{{column4tag|}}} |
 
{{ #if:{{{column4sort|}}}{{{column4width|}}} |
 
{{ #if:{{{column4sort|}}}{{{column4width|}}} |
 
! {{ #if:{{{column4sort|}}} |
 
! {{ #if:{{{column4sort|}}} |
class=&quot;unsortable&quot; }} {{ #if:{{{column4width|}}} |
+
class="unsortable" }} {{ #if:{{{column4width|}}} |
style=&quot;width:{{{column4width}}}px;&quot; }} {{!}} | ! }} {{{column4name}}}
+
style="width:{{{column4width}}}px;" }} {{!}} | ! }} {{{column4name}}}
 
{{ #if:{{{column5tag|}}} |
 
{{ #if:{{{column5tag|}}} |
 
{{ #if:{{{column5sort|}}}{{{column5width|}}} |
 
{{ #if:{{{column5sort|}}}{{{column5width|}}} |
 
! {{ #if:{{{column5sort|}}} |
 
! {{ #if:{{{column5sort|}}} |
class=&quot;unsortable&quot; }} {{ #if:{{{column5width|}}} |
+
class="unsortable" }} {{ #if:{{{column5width|}}} |
style=&quot;width:{{{column5width}}}px;&quot; }} {{!}} | ! }} {{{column5name}}}
+
style="width:{{{column5width}}}px;" }} {{!}} | ! }} {{{column5name}}}
 
{{ #if:{{{column6tag|}}} |
 
{{ #if:{{{column6tag|}}} |
 
{{ #if:{{{column6sort|}}}{{{column6width|}}} |
 
{{ #if:{{{column6sort|}}}{{{column6width|}}} |
 
! {{ #if:{{{column6sort|}}} |
 
! {{ #if:{{{column6sort|}}} |
class=&quot;unsortable&quot; }} {{ #if:{{{column6width|}}} |
+
class="unsortable" }} {{ #if:{{{column6width|}}} |
style=&quot;width:{{{column6width}}}px;&quot; }} {{!}} | ! }} {{{column6name}}}
+
style="width:{{{column6width}}}px;" }} {{!}} | ! }} {{{column6name}}}
 
{{ #if:{{{column7tag|}}} |
 
{{ #if:{{{column7tag|}}} |
 
{{ #if:{{{column7sort|}}}{{{column7width|}}} |
 
{{ #if:{{{column7sort|}}}{{{column7width|}}} |
 
! {{ #if:{{{column7sort|}}} |
 
! {{ #if:{{{column7sort|}}} |
class=&quot;unsortable&quot; }} {{ #if:{{{column7width|}}} |
+
class="unsortable" }} {{ #if:{{{column7width|}}} |
style=&quot;width:{{{column7width}}}px;&quot; }} {{!}} | ! }} {{{column7name}}}
+
style="width:{{{column7width}}}px;" }} {{!}} | ! }} {{{column7name}}}
 
{{ #if:{{{column8tag|}}} |
 
{{ #if:{{{column8tag|}}} |
 
{{ #if:{{{column8sort|}}}{{{column8width|}}} |
 
{{ #if:{{{column8sort|}}}{{{column8width|}}} |
 
! {{ #if:{{{column8sort|}}} |
 
! {{ #if:{{{column8sort|}}} |
class=&quot;unsortable&quot; }} {{ #if:{{{column8width|}}} |
+
class="unsortable" }} {{ #if:{{{column8width|}}} |
style=&quot;width:{{{column8width}}}px;&quot; }} {{!}} | ! }} {{{column8name}}}
+
style="width:{{{column8width}}}px;" }} {{!}} | ! }} {{{column8name}}}
 
{{ #if:{{{column9tag|}}} |
 
{{ #if:{{{column9tag|}}} |
 
{{ #if:{{{column9sort|}}}{{{column9width|}}} |
 
{{ #if:{{{column9sort|}}}{{{column9width|}}} |
 
! {{ #if:{{{column9sort|}}} |
 
! {{ #if:{{{column9sort|}}} |
class=&quot;unsortable&quot; }} {{ #if:{{{column9width|}}} |
+
class="unsortable" }} {{ #if:{{{column9width|}}} |
style=&quot;width:{{{column9width}}}px;&quot; }} {{!}} | ! }} {{{column9name}}} }} }} }} }} }} }} }} }} }}  
+
style="width:{{{column9width}}}px;" }} {{!}} | ! }} {{{column9name}}} }} }} }} }} }} }} }} }} }}  
 
! class=&quot;unsortable&quot; | Map
 
! class=&quot;unsortable&quot; | Map
 
|-
 
|-
Line 101: Line 101:
 
[[{{{{{{column9tag|}}}}}}]] | {{{{{{column9tag|}}}}}}
 
[[{{{{{{column9tag|}}}}}}]] | {{{{{{column9tag|}}}}}}
 
}} }} }} }} }} }} }} }} }} }}
 
}} }} }} }} }} }} }} }} }} }}
{{!}} [[File:OGFmapicon.png|18px|link=]] <span class=&quot;plainlinks&quot;>[https://opengeofiction.net/{{{type}}}/{{{{{{type}}}_id}}} map]</span>
+
{{!}} [[File:OGFmapicon.png|18px|link=]] <span class="plainlinks">[https://opengeofiction.net/{{{type}}}/{{{{{{type}}}_id}}} map]</span>
 
{{!}}-
 
{{!}}-
 
}} |}
 
}} |}
Line 108: Line 108:
 
==Test 1==
 
==Test 1==
 
{|
 
{|
{{Requestdata test|relation=312195|type=way|column1tag=name}}
+
{{Requestdata test|relation=312195|type=way|column1tag=name|column2tag=name}}
 
{{Template:Atab table|type=way}}
 
{{Template:Atab table|type=way}}
 
{{#clear_external_data:}}
 
{{#clear_external_data:}}

Revision as of 23:20, 28 January 2023


Test 1

Table MER-refresh.png
Map
OGFmapicon.png map
OGFmapicon.png map
OGFmapicon.png map
OGFmapicon.png map
OGFmapicon.png map
OGFmapicon.png map
OGFmapicon.png map
OGFmapicon.png map