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

From EVE University Wiki
Jump to: navigation, search
m (Change {{#CSS:}} target.)
m (Coding and testing.)
 
(27 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#CSS: Template:Sidebar/styles.css}}
+
<div style="
{{#ifeq:{{{child|}}} |yes
+
margin: 0.2em auto;  
|
+
border: 2px solid {{{border|#888888}}};  
| <table class="sidebar {{#switch: {{{float|}}}
+
padding: 0.8em;  
                          | left= sidebar-floatleft
+
width: {{{width|auto}}};  
                          | none= sidebar-nofloat
+
overflow: hidden; /* To stop the div from overlapping floating elements. */
                        }} {{#ifeq: {{{wraplinks|}}} |true
+
background-color: {{{color|black}}};  
                            |
+
text-align: {{{align|left}}};  
                            | nowraplinks
+
color: {{{text|white}}};  
                            }} {{{bodyclass|{{{class|}}} }}}" <!--
+
{{#ifeq: {{{italics}}} | no
  -->cellspacing="{{#if:{{{cellspacing|}}} |{{{cellspacing}}} |5}}" <!--
+
| font-style: normal;
  -->cellpadding="{{#if:{{{cellpadding|}}} |{{{cellpadding}}} |0}}" <!--
+
  | font-style: italic;
  -->style="{{#if:{{{width|}}} |width: {{{width}}}; }}<!--
+
}}
  -->{{{bodystyle|{{{style|}}} }}}"><!--
+
">{{{1|Example text}}}</div><noinclude>
 
+
{{documentation}}
-->{{#if: {{{outertitle|}}}
+
</noinclude>
    | <caption class="sidebar-outertitle {{{outertitleclass|}}}" style="{{{outertitlestyle|}}}">{{{outertitle}}}</caption><!--
 
-->}}<!--
 
 
 
-->{{#if: {{{topimage|}}}
 
    | <tr>
 
      <td class="sidebar-topimage {{{topimageclass|}}}" style="{{{topimagestyle|}}}">{{{topimage}}}<!--
 
        -->{{#if: {{{topcaption|}}}
 
            |<div class="sidebar-topcaption" style="{{{topcaptionstyle|}}}">{{{topcaption}}}</div>
 
            }}
 
      </td>
 
    </tr>
 
  }}<!--
 
 
 
-->{{#if:{{{pretitle|}}}
 
    | <tr>
 
        <td class="sidebar-pretitle{{#if: {{{topimage|}}} <!-- NO space between sidebar-pretitle and {{#if because -with-topimage need to be connected to sidebar-pretitle -->
 
                    | -with-topimage
 
                  }} {{{pretitleclass|}}}" style="{{{basestyle|}}}; {{{pretitlestyle|}}}"> {{{pretitle}}}
 
      </td>
 
      </tr>
 
  }}
 
}}<!--
 
 
 
-->{{#if: {{{title|}}}
 
    | {{#ifeq:{{{child|}}} |yes
 
      | {{{title}}}
 
      | <tr>
 
          <th class="sidebar-title{{#if: {{{pretitle|}}}
 
                                  | -with-pretitle
 
                                  }} {{{titleclass|}}}" style="{{{basestyle|}}}; {{{titlestyle|}}}">
 
          {{{title}}}</th>
 
          </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|}}}
 
    | <tr>
 
      <td class="sidebar-above {{{aboveclass|}}}" style="{{{abovestyle|}}}"><!--newline required for bullet-points to work:-->
 
{{{above}}}</td>
 
      </tr>
 
  }}<!--
 
 
 
heading#/content# starts here:
 
 
 
-->{{#if: {{{heading1|}}}|
 
<tr>
 
  <th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}}; {{{headingstyle|}}}; {{{heading1style|}}}">
 
{{{heading1}}}</th>
 
  </tr>
 
}}{{#if:
 
{{{content1|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}}; {{{content1style|}}}"><!-- newline required before contents# for bullets to work -->
 
{{{content1}}}</td>
 
</tr>
 
}}{{#if: {{{heading2|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading2style|}}}">
 
{{{heading2}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content2|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content2style|}}}">
 
{{{content2}}}</td>
 
</tr>
 
}}{{#if: {{{heading3|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading3style|}}}">
 
{{{heading3}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content3|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content3style|}}}">
 
{{{content3}}}</td>
 
</tr>
 
}}{{#if: {{{heading4|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading4style|}}}">
 
{{{heading4}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content4|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content4style|}}}">
 
{{{content4|}}}</td>
 
</tr>
 
}}{{#if: {{{heading5|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading5style|}}}">
 
{{{heading5}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content5|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content5style|}}}">
 
{{{content5}}}</td>
 
</tr>
 
}}{{#if: {{{heading6|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading6style|}}}">
 
{{{heading6}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content6|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content6style|}}}">
 
{{{content6}}}</td>
 
</tr>
 
}}{{#if: {{{heading7|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading7style|}}}">
 
{{{heading7}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content7|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content7style|}}}">
 
{{{content7}}}</td>
 
</tr>
 
}}{{#if: {{{heading8|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading8style|}}}">
 
{{{heading8}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content8|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content8style|}}}">
 
{{{content8}}}</td>
 
</tr>
 
}}{{#if: {{{heading9|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading9style|}}}">
 
{{{heading9}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content9|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content9style|}}}">
 
{{{content9}}}</td>
 
</tr>
 
}}{{#if: {{{heading10|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading10style|}}}">
 
{{{heading10}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content10|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content10style|}}}">
 
{{{content10}}}</td>
 
</tr>
 
}}{{#if: {{{heading11|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading11style|}}}">
 
{{{heading11}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content11|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content11style|}}}">
 
{{{content11}}}</td>
 
</tr>
 
}}{{#if: {{{heading12|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading12style|}}}">
 
{{{heading12}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content12|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content12style|}}}">
 
{{{content12}}}</td>
 
</tr>
 
}}{{#if: {{{heading13|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading13style|}}}">
 
{{{heading13}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content13|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content13style|}}}">
 
{{{content13}}}</td>
 
</tr>
 
}}{{#if: {{{heading14|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading14style|}}}">
 
{{{heading14}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content14|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content14style|}}}">
 
{{{content14}}}</td>
 
</tr>
 
}}{{#if: {{{heading15|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading15style|}}}">
 
{{{heading15}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content15|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style={{{contentstyle|}}};{{{content15style|}}}">
 
{{{content15}}}</td>
 
</tr>
 
}}{{#if: {{{heading16|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading16style|}}}">
 
{{{heading16}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content16|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content16style|}}}">
 
{{{content16}}}</td>
 
</tr>
 
}}{{#if: {{{heading17|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading17style|}}}">
 
{{{heading17}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content17|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content17style|}}}">
 
{{{content17}}}</td>
 
</tr>
 
}}{{#if: {{{heading18|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading18style|}}}">
 
{{{heading18}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content18|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content18style|}}}">
 
{{{content18}}}</td>
 
</tr>
 
}}{{#if: {{{heading19|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading19style|}}}">
 
{{{heading19}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content19|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content19style|}}}">
 
{{{content19}}}</td>
 
</tr>
 
}}{{#if: {{{heading20|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading20style|}}}">
 
{{{heading20}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content20|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content20style|}}}">
 
{{{content20}}}</td>
 
</tr>
 
}}{{#if: {{{heading21|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading21style|}}}">
 
{{{heading21}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content21|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content21style|}}}">
 
{{{content21}}}</td>
 
</tr>
 
}}{{#if: {{{heading22|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading22style|}}}">
 
{{{heading22}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content22|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content22style|}}}">
 
{{{content22}}}</td>
 
</tr>
 
}}{{#if: {{{heading23|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading23style|}}}">
 
{{{heading23}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content23|}}}|
 
<tr>
 
<td class=sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content23style|}}}">
 
{{{content23}}}</td>
 
</tr>
 
}}{{#if: {{{heading24|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading24style|}}}">
 
{{{heading24}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content24|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content24style|}}}">
 
{{{content24}}}</td>
 
</tr>
 
}}{{#if: {{{heading25|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading25style|}}}">
 
{{{heading25}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content25|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content25style|}}}">
 
{{{content25}}}</td>
 
</tr>
 
}}{{#if: {{{heading26|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading26style|}}}">
 
{{{heading26}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content26|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content26style|}}}">
 
{{{content26}}}</td>
 
</tr>
 
}}{{#if: {{{heading27|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading27style|}}}">
 
{{{heading27}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content27|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content27style|}}}">
 
{{{content27}}}</td>
 
</tr>
 
}}{{#if: {{{heading28|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading28style|}}}">
 
{{{heading28}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content28|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content28style|}}}">
 
{{{content28}}}</td>
 
</tr>
 
}}{{#if: {{{heading29|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading29style|}}}">
 
{{{heading29}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content29|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content29style|}}}">
 
{{{content29}}}</td>
 
</tr>
 
}}{{#if: {{{heading30|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading30style|}}}">
 
{{{heading30}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content30|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content30style|}}}">
 
{{{content30}}}</td>
 
</tr>
 
}}{{#if: {{{heading31|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading31style|}}}">
 
{{{heading31}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content31|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content31style|}}}">
 
{{{content31}}}</td>
 
</tr>
 
}}{{#if: {{{heading32|}}}|
 
<tr>
 
<th class="sidebar-hading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading32style|}}}">
 
{{{heading32}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content32|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content32style|}}}">
 
{{{content32}}}</td>
 
</tr>
 
}}{{#if: {{{heading33|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading33style|}}}">
 
{{{heading33}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content33|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content33style|}}}">
 
{{{content33}}}</td>
 
</tr>
 
}}{{#if: {{{heading34|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading34style|}}}">
 
{{{heading34}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content34|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content34style|}}}">
 
{{{content34}}}</td>
 
</tr>
 
}}{{#if: {{{heading35|}}}|
 
<tr>
 
<th class="sidebar-heading {{{headingclass|}}}" style="{{{basestyle|}}};{{{headingstyle|}}};{{{heading35style|}}}">
 
{{{heading35}}}</th>
 
</tr>
 
}}{{#if:
 
{{{content35|}}}|
 
<tr>
 
<td class="sidebar-content {{{contentclass|}}}" style="{{{contentstyle|}}};{{{content35style|}}}">
 
{{{content35}}}</td>
 
</tr>
 
}}<!--
 
 
 
-->{{#if: {{{below|}}}
 
    | <tr>
 
      <td class="sidebar-below {{{belowclass|}}}" style="{{{belowstyle|}}}">
 
{{{below}}}</td>
 
      </tr>
 
  }}<!--
 
 
 
-->{{#ifeq:{{{child|}}} |yes
 
    |
 
    | {{#switch:{{{navbar|{{{tnavbar|<noinclude>off</noinclude>}}} }}}
 
    | none
 
    | off=
 
    | #default= <tr>
 
                  <td class="sidebar-navbar" style="{{{navbarstyle|{{{tnavbarstyle|}}} }}}">
 
                  {{navbar
 
                    | {{{name|{{PAGENAME}} }}}
 
                    | mini= 1
 
                    | fontstyle= {{{navbarfontstyle|{{{tnavbarfontstyle|}}} }}}
 
                  }}
 
                  </td>
 
                </tr><!--
 
  -->}}
 
    </table>
 
  }}</includeonly>
 
<noinclude>{{documentation}}<!-- Please add categories and interwikis to the bottom of Template:Sidebar/doc, not here --></noinclude>
 

Latest revision as of 09:55, 2 April 2024

Example text
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?)