Difference between revisions of "User:Evon R'al/Sandbox template"

From EVE University Wiki
Jump to: navigation, search
m (Coding and testing.)
m (Coding and testing.)
Line 9: Line 9:
 
                             | nowraplinks
 
                             | nowraplinks
 
                             }} {{{bodyclass|{{{class|}}} }}}" <!--
 
                             }} {{{bodyclass|{{{class|}}} }}}" <!--
    -->cellspacing="{{#if:{{{cellspacing|}}} |{{{cellspacing}}} |5}}" <!--
+
-->cellspacing="{{#if:{{{cellspacing|}}} |{{{cellspacing}}} |5}}" <!--
    -->cellpadding="{{#if:{{{cellpadding|}}} |{{{cellpadding}}} |0}}" <!--
+
-->cellpadding="{{#if:{{{cellpadding|}}} |{{{cellpadding}}} |0}}" <!--
    -->style="{{#if:{{{width|}}} |width: {{{width}}}; }} {{{bodystyle|{{{style|}}} }}}"
+
-->style="{{#if:{{{width|}}} |width: {{{width}}}; }}<!--
  ><!--
+
      -->{{{bodystyle|{{{style|}}} }}}">
 +
}}<!--
  
-->{{#if: {{{outertitle|}}}
+
-->{{#ifeq: {{{child|}}} |yes
    | <caption class="sidebar-outertitle {{{outertitleclass|}}}" style="{{{outertitlestyle|}}}">{{{outertitle}}}</caption>
+
    |
 +
    | {{#if: {{{outertitle|}}}
 +
      | <caption class="sidebar-outertitle {{{outertitleclass|}}}" style="{{{outertitlestyle|}}}">{{{outertitle}}}</caption><!--
 +
  -->}}
 
   }}<!--
 
   }}<!--
  
-->{{#if: {{{topimage|}}}
+
-->{{#ifeq:{{{child|}}} |yes
    | <tr>
+
    |
      <td class="sidebar-topimage {{{topimageclass|}}}" style="{{{topimagestyle|}}}">{{{topimage}}}<!--
+
    | {{#if: {{{topimage|}}}
        -->{{#if: {{{topcaption|}}}
+
      | <tr>
            |<div class="sidebar-topcaption" style="{{{topcaptionstyle|}}}">{{{topcaption}}}</div>
+
        <td class="sidebar-topimage {{{topimageclass|}}}" style="{{{topimagestyle|}}}">{{{topimage}}}<!--
            }}
+
          -->{{#if: {{{topcaption|}}}
      </td>
+
              |<div class="sidebar-topcaption" style="{{{topcaptionstyle|}}}">{{{topcaption}}}</div>
      </tr>
+
              }}
 +
        </td>
 +
      </tr>
 +
    }}
 
   }}<!--
 
   }}<!--
  
-->{{#if:{{{pretitle|}}}
+
-->{{#ifeq: {{{child|}}} |yes
    | <tr>
+
    |
      <td class="sidebar-pretitle{{#if: {{{topimage|}}} <!-- NO space between sidebar-pretitle and {{#if because -with-topimage need to be connected to sidebar-pretitle -->
+
    | {{#if:{{{pretitle|}}}
                  | -with-topimage
+
      | <tr>
                  }} {{{pretitleclass|}}}" style="{{{basestyle|}}}; {{{pretitlestyle|}}}"> {{{pretitle}}}
+
          <td class="sidebar-pretitle{{#if: {{{topimage|}}} <!-- NO space between sidebar-pretitle and {{#if because -with-topimage need to be connected to sidebar-pretitle -->
      </td>
+
                      | -with-topimage
    </tr>
+
                    }} {{{pretitleclass|}}}" style="{{{basestyle|}}}; {{{pretitlestyle|}}}"> {{{pretitle}}}
  }}
+
        </td>
}}<!--
+
        </tr>
 +
    }}
 +
  }}<!--
  
 
-->{{#if: {{{title|}}}
 
-->{{#if: {{{title|}}}
| {{#ifeq:{{{child|}}} |yes
+
    | {{#ifeq:{{{child|}}} |yes
    | {{{title}}}
+
      | {{{title}}}
 +
      | <tr>
 +
          <th class="sidebar-title{{#if: {{{pretitle|}}}
 +
                                  | -with-pretitle
 +
                                  }} {{{titleclass|}}}" style="{{{basestyle|}}}; {{{titlestyle|}}}">
 +
          {{{title}}}</th>
 +
          </tr>
 +
      }}
 +
  }}<!--
 +
 
 +
-->{{#if:{{{image|}}}
 
     | <tr>
 
     | <tr>
       <th class="sidebar-title{{#if: {{{pretitle|}}} <!-- NO space between sidebar-title and {{#if because -with-pretitle need to be connected to sidebar-title -->
+
       <td class="sidebar-image {{{imageclass|}}}" style="{{{imagestyle|}}}">{{{image}}}<!--
                                | -with-pretitle
+
      -->{{#if:{{{caption|}}}
                              }} {{{titleclass|}}}" style="{{{basestyle|}}}; {{{titlestyle|}}}">
+
          | <div class="sidebar-caption" style="{{{captionstyle|}}}">{{{caption}}}</div>
      {{{title}}}</th>
+
          }}
      </tr>
+
      </td>
  }}
+
      </tr>
}}
+
  }}<!--
 
 
{{#if:{{{image|}}}
 
| <tr>
 
    <td class="sidebar-image {{{imageclass|}}}" style="{{{imagestyle|}}}">{{{image}}}<!--
 
    -->{{#if:{{{caption|}}}
 
        | <div class="sidebar-caption" style="{{{captionstyle|}}}">{{{caption}}}</div>
 
      }}
 
    </td>
 
  </tr>
 
}}<!--
 
  
 
-->{{#if:{{{above|}}}
 
-->{{#if:{{{above|}}}

Revision as of 14:03, 28 July 2023

Template documentation (for the above template, sometimes hidden or invisible)
Visit User:Evon R'al/Sandbox template/doc to edit this text! (How does this work?) (Refresh this text - why?)