Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Whrats: Difference between revisions

Template page
No edit summary
Djavin novienta (talk | contribs)
Moved documentation to Template:Whrats/doc
Line 1: Line 1:
{{#switch: {{{1|}}}
<includeonly>{{#switch: {{{1|}}}
| Start = <table class="wikitable sortable" style="font-size:90%; vertical-align:middle; text-align:right; padding:0px; border-collapse:collapse;"><tr><th nowrap style="background:#222222;" data-sort-type="number">Spawns<small>&nbsp;<ref>Shows the number of spawns of this typ as well as if the target is a trigger (red x) or an optional spawn (yellow circle).</ref></small></th><th nowrap style="background:#222222;" data-sort-type="number">Icon</th><th nowrap style="background:#222222;" data-sort-type="text">Name</th><th nowrap style="background:#222222;" data-sort-type="number">Sig</th><th nowrap style="background:#222222;" data-sort-type="number">Speed<small>&nbsp;<ref>This is the speed of the ship while they try to get within orbit or as they try to chase after you. They will turn off any propulsion modules once they get close to their preferred orbit.</ref></small></th><th nowrap style="background:#222222;" data-sort-type="number">Orbit / Speed<small>&nbsp;<ref>This is the preferred orbit they will try to keep and the orbital speed they will have once they reach their preferred orbit.</ref></small></th><th nowrap style="background:#222222;" data-sort-type="number">Turrets</th><th nowrap style="background:#222222;" data-sort-type="number">Launchers</th><th nowrap style="background:#222222;" data-sort-type="number">Effective HP</th></tr>
| Start = <table class="wikitable sortable" style="font-size:90%; vertical-align:middle; text-align:right; padding:0px; border-collapse:collapse;"><tr><th nowrap style="background:#222222;" data-sort-type="number">Spawns<small>&nbsp;<ref>Shows the number of spawns of this typ as well as if the target is a trigger (red x) or an optional spawn (yellow circle).</ref></small></th><th nowrap style="background:#222222;" data-sort-type="number">Icon</th><th nowrap style="background:#222222;" data-sort-type="text">Name</th><th nowrap style="background:#222222;" data-sort-type="number">Sig</th><th nowrap style="background:#222222;" data-sort-type="number">Speed<small>&nbsp;<ref>This is the speed of the ship while they try to get within orbit or as they try to chase after you. They will turn off any propulsion modules once they get close to their preferred orbit.</ref></small></th><th nowrap style="background:#222222;" data-sort-type="number">Orbit / Speed<small>&nbsp;<ref>This is the preferred orbit they will try to keep and the orbital speed they will have once they reach their preferred orbit.</ref></small></th><th nowrap style="background:#222222;" data-sort-type="number">Turrets</th><th nowrap style="background:#222222;" data-sort-type="number">Launchers</th><th nowrap style="background:#222222;" data-sort-type="number">Effective HP</th></tr>
| Start2 = <table class="wikitable" style="font-size:90%; vertical-align:middle; text-align:right; padding:0px; border-collapse:collapse;"><tr><th nowrap style="background:#222222;" data-sort-type="number">Spawns</th><th nowrap style="background:#222222;" data-sort-type="number">Icon</th><th nowrap style="background:#222222;" data-sort-type="text">Name</th><th nowrap style="background:#222222;" data-sort-type="number">Sig</th><th nowrap style="background:#222222;" data-sort-type="number">Speed</th><th nowrap style="background:#222222;" data-sort-type="number">Orbit / Speed</th><th nowrap style="background:#222222;" data-sort-type="number">Turrets</th><th nowrap style="background:#222222;" data-sort-type="number">Launchers</th><th nowrap style="background:#222222;" data-sort-type="number">Effective HP</th></tr>
| Start2 = <table class="wikitable" style="font-size:90%; vertical-align:middle; text-align:right; padding:0px; border-collapse:collapse;"><tr><th nowrap style="background:#222222;" data-sort-type="number">Spawns</th><th nowrap style="background:#222222;" data-sort-type="number">Icon</th><th nowrap style="background:#222222;" data-sort-type="text">Name</th><th nowrap style="background:#222222;" data-sort-type="number">Sig</th><th nowrap style="background:#222222;" data-sort-type="number">Speed</th><th nowrap style="background:#222222;" data-sort-type="number">Orbit / Speed</th><th nowrap style="background:#222222;" data-sort-type="number">Turrets</th><th nowrap style="background:#222222;" data-sort-type="number">Launchers</th><th nowrap style="background:#222222;" data-sort-type="number">Effective HP</th></tr>
Line 302: Line 302:
| End = <tr class="sortbottom"><td colspan="9" style="background:#222222;"><div style="text-align:left;"><small><references/></small></div></td></tr></table>
| End = <tr class="sortbottom"><td colspan="9" style="background:#222222;"><div style="text-align:left;"><small><references/></small></div></td></tr></table>
| End2 = </table>
| End2 = </table>
}}<noinclude>
}}</includeonly><noinclude>
= Syntax =
{{documentation}}
* <nowiki>{{whrats|parameter|</nowiki>{{co|gray||parameter2}}|{{co|gray||parameter3}}<nowiki>}}</nowiki>
A template to use in order to build a flexible table of certain sleeper rats only, without having to get all of them.
===== Opening and closing the table =====
* Start
* ''<Sleeper rat's name>'' ''(plus optional number of spawns, parameter2, and if it's a trigger or optional spawn, parameter3)''
* End
The '''Start''' parameter is to open he table up, then close it with '''End'''. Then add whichever rats in question you want with additional calls, one for each rat you wish to have in the table.
===== Alternatively =====
You can also use '''Start2''' and '''End2''' for a simpler table without the references and sorting abilities.
 
= Example =
The following:
{| style="clear:right; background:#222222; border:1px solid #333333; padding:5px; margin:1em;"
|- width:auto; vertical-align:middle;">
| <nowiki>{{whrats|Start}}</nowiki><br><nowiki>{{whrats|Sleepless Safeguard}}</nowiki><br><nowiki>{{whrats|Sleepless Sentinel|3}}</nowiki><br><nowiki>{{whrats|Sleepless Upholder||t}}</nowiki><br><nowiki>{{whrats|Sleepless Warden|2|o}}</nowiki><br><nowiki>{{whrats|End}}</nowiki>
|}
Would result in this:
{{whrats|Start}}
{{whrats|Sleepless Safeguard}}
{{whrats|Sleepless Sentinel|3}}
{{whrats|Sleepless Upholder||t|rr}}
{{whrats|Sleepless Warden|2|o}}
{{whrats|End}}
And with the alternative:
{| style="clear:right; background:#222222; border:1px solid #333333; padding:5px; margin:1em;"
|- width:auto; vertical-align:middle;">
| <nowiki>{{whrats|Start2}}</nowiki><br><nowiki>{{whrats|Awakened Sentinel}}</nowiki><br><nowiki>{{whrats|Awakened Upholder}}</nowiki><br><nowiki>{{whrats|Awakened Warden}}</nowiki><br><nowiki>{{whrats|Awakened Watchman}}</nowiki><br><nowiki>{{whrats|Argos}}</nowiki><br><nowiki>{{whrats|Orthrus}}</nowiki><br><nowiki>{{whrats|Sirius}}</nowiki><br><nowiki>{{whrats|End2}}</nowiki>
|}
Would result in this:
{{whrats|Start2}}
{{whrats|Awakened Sentinel}}
{{whrats|Awakened Upholder}}
{{whrats|Awakened Warden}}
{{whrats|Awakened Watchman}}
{{whrats|Argos}}
{{whrats|Orthrus}}
{{whrats|Sirius}}
{{whrats|End2}}
</noinclude>
</noinclude>