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.)
(96 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#css:
+
<div style="
table.MssnDtls {
+
margin: 0.2em auto;  
  margin-left: 1em;
+
border: 2px solid {{{border|#888888}}};  
  border: 1px solid #606060;
+
padding: 0.8em;  
  width: 880px;
+
width: {{{width|auto}}};  
  border-spacing: 0px 2px;
+
overflow: hidden; /* To stop the div from overlapping floating elements. */
}
+
background-color: {{{color|black}}};  
 
+
text-align: {{{align|left}}};  
.MssnDtls caption {
+
color: {{{text|white}}};
  text-align: left;
+
{{#ifeq: {{{italics}}} | no
  font-weight: bold;
+
  | font-style: normal;
}
+
| font-style: italic;
 
 
.MssnDtls-label {
 
  width: 125px;
 
  background: #191616;
 
  padding: 0 1em;
 
}
 
 
 
.MssnDtls-data {
 
  padding: 2px 1em 2px 5px;
 
}
 
 
 
.MssnDtls-factioninfo {
 
  display: inline-block;
 
  width: 155px;
 
}
 
}}  
 
<table class="MssnDtls">
 
{{#if:{{{Name|}}}
 
  | <caption>{{{Name}}}</caption>
 
 
}}
 
}}
{{#if:{{{Level|}}}
+
">{{{1|Example text}}}</div><noinclude>
|<tr> <td class="MssnDtls-label">Level</td> <td class="MssnDtls-data">{{{Level}}}</td> </tr>
+
{{documentation}}
}} {{#if:{{{Type|}}}
+
</noinclude>
|<tr> <td class="MssnDtls-label">Type</td> <td class="MssnDtls-data">{{{Type}}}</td> </tr>
 
}} {{#if:{{{Objective|}}}
 
|<tr> <td class="MssnDtls-label">Objective</td> <td class="MssnDtls-data">{{{Objective}}}</td> </tr>
 
}} {{#if:{{{Faction|}}}
 
|<tr> <td class="MssnDtls-label">Faction</td> <td class="MssnDtls-data">{{{Faction}}}</td> </tr>
 
|{{#if: {{{Faction1|}}}|
 
  <tr>
 
    <td class="MssnDtls-label"> {{#if:{{{Faction2|}}}| Factions | Faction }}</td>
 
    <td class="MssnDtls-data"> <span class="MssnDtls-factioninfo">{{{Faction1}}}</span>{{#if: {{{Faction2|}}}
 
    |<span class="MssnDtls-factioninfo">{{{Faction2}}}</span>}}{{#if: {{{Faction3|}}}
 
    |<span class="MssnDtls-factioninfo">{{{Faction3}}}</span>}}{{#if: {{{Faction4|}}}
 
    |<span class="MssnDtls-factioninfo">{{{Faction4}}}</span>}}</td>
 
  </tr>
 
  }}
 
}} {{#if:{{{DamageToDeal|}}}
 
|<tr> <td class="MssnDtls-label">Best damage to deal</td> <td class="MssnDtls-data">{{{DamageToDeal}}}</td> </tr>
 
|{{#if: {{{Faction1|}}} |
 
  <tr>
 
  <td class="MssnDtls-label">Best damage to deal</td>
 
  <td class="MssnDtls-data"><span class="MssnDtls-factioninfo">{{#if:{{{DamageToDeal1|}}}
 
    |{{{DamageToDeal1}}}
 
    |{{Damage to deal| {{{Faction1}}}
 
  }}
 
  }}</span>{{#if: {{{Faction2|}}}
 
            |<span class="MssnDtls-factioninfo">{{#if:{{{DamageToDeal2|}}}
 
            |{{{DamageToDeal2}}}
 
            |{{Damage to deal| {{{Faction2}}}
 
  }}
 
  }}</span>}}{{#if: {{{Faction3|}}}
 
              |<span class="MssnDtls-factioninfo">{{#if:{{{DamageToDeal3|}}}
 
                |{{{DamageToDeal3}}}
 
                |{{Damage to deal| {{{Faction3}}}
 
  }}
 
  }}</span>}}{{#if: {{{Faction4|}}}
 
              |<span class="MssnDtls-factioninfo">{{#if:{{{DamageToDeal4|}}}
 
                |{{{DamageToDeal4}}}
 
                |{{Damage to deal| {{{Faction4}}}
 
  }}
 
  }}</span>}}{{#if:{{{Faction1|}}}
 
              |</td> </tr>
 
              }}
 
}}
 
}} {{#if:{{{DamageToResist|}}}
 
| <tr> <td class="MssnDtls-label">Damage to resist</td> <td class="MssnDtls-data">{{{DamageToResist}}}</td> </tr>
 
|{{#if: {{{Faction1|}}} |
 
  <tr>
 
  <td class="MssnDtls-label">Damage to resist</td>
 
  <td class="MssnDtls-data"><span class="MssnDtls-factioninfo">{{#if:{{{DamageToResist1|}}}
 
    |{{{DamageToResist1}}}
 
    |{{Damage to resist| {{{Faction1}}}
 
  }}
 
  }}</span>{{#if: {{{Faction2|}}}
 
            |<span class="MssnDtls-factioninfo">{{#if:{{{DamageToResist2|}}}
 
            |{{{DamageToResist2}}}
 
            |{{Damage to resist| {{{Faction2}}}
 
            }}
 
  }}</span>}}{{#if: {{{Faction3|}}}
 
              |<span class="MssnDtls-factioninfo">{{#if:{{{DamageToResist3|}}}
 
              |{{{DamageToResist3}}}
 
              |{{Damage to resist| {{{Faction3}}}
 
              }}
 
  }}</span>}}{{#if: {{{Faction4|}}}
 
              |<span class="MssnDtls-factioninfo">{{#if:{{{DamageToResist4|}}}
 
                |{{{DamageToResist4}}}
 
                |{{Damage to resist| {{{Faction4}}}
 
              }}
 
  }}</span>|}}{{#if:{{{Faction1|}}}
 
              |</td> </tr>
 
              }}
 
}}
 
}} {{#if:{{{WebPoint|}}}
 
|<tr> <td class="MssnDtls-label">Warp disruption</td> <td class="MssnDtls-data">{{{WebPoint}}}</td> </tr>
 
}} {{#if:{{{EWAR|}}}
 
|<tr> <td class="MssnDtls-label">EWAR</td> <td class="MssnDtls-data">{{{EWAR}}}</td> </tr>
 
}} {{#if:{{{ShipSizeLimit|}}}
 
|<tr> <td class="MssnDtls-label">Ship size limit</td> <td class="MssnDtls-data">{{{ShipSizeLimit}}}</td> </tr>
 
}} {{#if:{{{ShipSuggestion|}}}
 
|<tr> <td class="MssnDtls-label">Ship suggestion</td> <td class="MssnDtls-data">{{{ShipSuggestion}}}</td> </tr>
 
}} {{#if:{{{Rewards|}}}
 
|<tr> <td class="MssnDtls-label">Rewards</td> <td class="MssnDtls-data">{{{Rewards}}}</td> </tr>
 
}} {{#if:{{{StandingLoss|}}}
 
|<tr> <td class="MssnDtls-label">Standing loss</td> <td class="MssnDtls-data">{{{StandingLoss}}}</td> </tr>
 
}} {{#if:{{{Extra|}}}
 
|<tr> <td class="MssnDtls-label">Extra</td> <td class="MssnmssDtls-data">{{{Extra}}}</td> </tr>
 
}}
 
</table></includeonly>
 
<noinclude>{{documentation}}<!-- Please add categories and interwikis to the bottom of the templates /doc, not here --></noinclude>
 

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