More actions
Should now work even if a parameter is missing completely |
No edit summary |
||
| (62 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{ | <includeonly>{{#css: | ||
table.MssnDtls { | |||
margin-left: 1em; | |||
| | border: 1px solid; | ||
| | /* width: 800px; */ | ||
| < | border-spacing: 0 2px; | ||
| < | } | ||
| < | |||
| < | .MssnDtls caption { | ||
| < | text-align: left; | ||
| < | font-weight: bold; | ||
| < | } | ||
| < | |||
| < | .MssnDtls-label { | ||
| < | width: 10em; | ||
background-color: var(--background-color-warning-subtle); | |||
{{documentation}} | padding: 0 0.5em | ||
</noinclude> | } | ||
.MssnDtls-data { | |||
padding: 0 0.5em; | |||
} | |||
.MssnDtls-factioninfo { | |||
display: inline-block; | |||
width: 9.5em; | |||
} | |||
}} | |||
<table class="MssnDtls"> | |||
{{#if:{{{Name|}}} | |||
| <caption>{{{Name}}}</caption> | |||
}} | |||
{{#if: {{{Level|}}} {{{Storyline|}}} | |||
|<tr> <td class="MssnDtls-label">Level</td> <td class="MssnDtls-data">{{{Level}}} {{#ifeq: {{lc: {{{Storyline}}} }} | yes | Storyline }}</td> </tr> | |||
}} {{#if: {{{Type|}}} | |||
|<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="MssnDtls-data">{{{Extra}}}</td> </tr> | |||
}} | |||
</table></includeonly> | |||
<noinclude>{{documentation}}<!-- Please add categories and interwikis to the bottom of the templates /doc, not here --></noinclude> | |||