Difference between revisions of "Template:BS-overlap"

From blackwiki
Jump to navigation Jump to search
imported>Closedmouth
(per talk page request)
imported>Andy M. Wang
(set both border and padding to 0 per edit req at Wikipedia talk:Route diagram template (diff))
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>|data-o0="{{{2|}}}" data-o1="{{{3|}}}" data-o2="{{{4|}}}" data-o3="{{{5|}}}" data-o4="{{{6|}}}" data-o5="{{{7|}}}" class="bs-overlap" style="background-color:inherit; border:0px !important; {{#if:{{{2|}}}
+
|class="bs-overlap" style="background-color:inherit; border:0; padding:0; {{#if:{{{2|}}}
 
   |" {{!}}{{#if:{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}
 
   |" {{!}}{{#if:{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}
 
     | {{Superimpose5
 
     | {{Superimpose5
       | base = BSicon_{{{2|}}}.svg
+
       | base = BSicon_{{#if:1|{{{2|}}}}}.svg
 
       | base_width = x{{{1|{{BSpx}}}}}
 
       | base_width = x{{{1|{{BSpx}}}}}
       | float = BSicon_{{{3|}}}.svg
+
       | float = BSicon_{{#if:1|{{{3|}}}}}.svg
 
       | float_width = x{{{1|{{BSpx}}}}}
 
       | float_width = x{{{1|{{BSpx}}}}}
       | float2 = BSicon_{{{4|}}}.svg
+
       | float2 = BSicon_{{#if:1|{{{4|}}}}}.svg
 
       | float2_width = x{{{1|{{BSpx}}}}}
 
       | float2_width = x{{{1|{{BSpx}}}}}
       | float3 = BSicon_{{{5|}}}.svg
+
       | float3 = BSicon_{{#if:1|{{{5|}}}}}.svg
 
       | float3_width = x{{{1|{{BSpx}}}}}
 
       | float3_width = x{{{1|{{BSpx}}}}}
       | float4 = BSicon_{{{6|}}}.svg
+
       | float4 = BSicon_{{#if:1|{{{6|}}}}}.svg
 
       | float4_width = x{{{1|{{BSpx}}}}}
 
       | float4_width = x{{{1|{{BSpx}}}}}
       | float5 = BSicon_{{{7|}}}.svg
+
       | float5 = BSicon_{{#if:1|{{{7|}}}}}.svg
 
       | float5_width = x{{{1|{{BSpx}}}}}
 
       | float5_width = x{{{1|{{BSpx}}}}}
 
       | x = {{#if:{{{3|}}}|0}}
 
       | x = {{#if:{{{3|}}}|0}}
Line 25: Line 25:
 
       | y5 = 0
 
       | y5 = 0
 
       | base_link =
 
       | base_link =
       | link{{#if:{{{7|}}}|5|{{#if:{{{6|}}}|4|{{#if:{{{5|}}}|3|{{#if:{{{4|}}}|2}}}}}}}} = {{{link|}}}
+
       | link{{#if:{{{7|}}}|5|{{#if:{{{6|}}}|4|{{#if:{{{5|}}}|3|{{#if:{{{4|}}}|2}}}}}}}} = {{{link|}}}{{!}}class=noviewer
 
       | float{{#if:{{{7|}}}|5|{{#if:{{{6|}}}|4|{{#if:{{{5|}}}|3|{{#if:{{{4|}}}|2}}}}}}}}_alt =  
 
       | float{{#if:{{{7|}}}|5|{{#if:{{{6|}}}|4|{{#if:{{{5|}}}|3|{{#if:{{{4|}}}|2}}}}}}}}_alt =  
 
       }}
 
       }}
 
     | <!-- workaround fix for Chrome table cell shift problem
 
     | <!-- workaround fix for Chrome table cell shift problem
 
       --><div style="position: relative;"><!--
 
       --><div style="position: relative;"><!--
       -->[[File:BSicon_{{{2}}}.svg|x{{{1|{{BSpx}}}}}{{
+
       -->[[File:BSicon_{{#if:1|{{{2}}}}}.svg|x{{{1|{{BSpx}}}}}{{
 
         #ifeq: {{{link|}}} | file:
 
         #ifeq: {{{link|}}} | file:
 
         || {{!}}link={{{link|}}}
 
         || {{!}}link={{{link|}}}
       }}|alt=]]<!--
+
       }}|alt=|class=noviewer]]<!--
 
       --></div>
 
       --></div>
 
     }}
 
     }}
   | width:{{{1|{{BSpx}}}}}; min-width:{{{1|{{BSpx}}}}};" {{!}}
+
   | width:{{{1|{{BSpx}}}}}; min-width:{{{1|{{BSpx}}}}};" {{!}}{{#if:{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}|<!-- Error: overlap icon(s) with no base icon -->[[Category:RDTs with overlaps but no base icon]]}}
}}</includeonly><noinclude>
+
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 04:47, 12 July 2016

|class="bs-overlap" style="background-color:inherit; border:0; padding:0; width:20px; min-width:20px;" |

Template documentation[view] [edit] [history] [purge]

This template is not meant to be used directly in the map table. If you want to modify it you may discuss on the talk page or at project talk:route diagram template first.