Template:Infobox/Stage: Difference between revisions
From Inkipedia, the Splatoon wiki
m (Allow this template to chain the image parameter) |
m (changed link; page moved) |
||
(12 intermediate revisions by 4 users not shown) | |||
Line 2: | Line 2: | ||
|color = {{#if:{{{color|}}}|{{{color}}}|{{SiteColor|{{#if:{{{game|}}}|{{{game}}}|Generic}}}}}} | |color = {{#if:{{{color|}}}|{{{color}}}|{{SiteColor|{{#if:{{{game|}}}|{{{game}}}|Generic}}}}}} | ||
|style = {{{style|}}} | |style = {{{style|}}} | ||
|game = | |game = {{{game|}}} | ||
|title = {{{title|}}} | |||
|image = {{{image|}}} | |||
|name = {{{name|{{PAGENAME}}}}} | |name = {{{name|{{PAGENAME}}}}} | ||
|introduced = {{{introduced|}}} | |introduced = {{{introduced|}}} | ||
|totalbp = {{{totalbp|}}} | |totalbp = {{{totalbp|}}} | ||
|features = {{{features|}}} | |features = {{{features|}}} | ||
| | |hazards = {{#ifeq:{{{haswaterhazard}}}|true|[[Water]]{{#ifeq:{{{hasabysshazard}}}|true|, }}}}{{#ifeq:{{{hasabysshazard}}}|true|[[Out-of-bounds|Abyss]]}} | ||
}}</includeonly><noinclude>{{Infobox/ | }}{{#if:{{{skipcargo|}}}||{{#cargo_store: | ||
_table = Stages_test | |||
|game = {{{game|}}} | |||
|name = {{{name|{{PAGENAME}}}}} | |||
|mode = {{{mode|Battle}}} | |||
|sort_order = {{{sort order|}}} | |||
|introduced = {{{introduced|}}} | |||
|totalbp = {{{totalbp|}}} | |||
|features = {{{features|}}} | |||
|has_water_hazard = {{#ifeq:{{{haswaterhazard}}}|true|1|0}} | |||
|has_abyss_hazard = {{#ifeq:{{{hasabysshazard}}}|true|1|0}} | |||
|title = {{{title|}}} | |||
}}}}</includeonly><noinclude>{{Infobox/Stage/doc}}{{#cargo_attach:_table=Stages_test}}</noinclude> |
Latest revision as of 20:10, 10 May 2024
Produces an infobox for a stage.
Parameters
color |
Optional. | An RGB triplet to use as the base color for formatting. If absent, the color is determined based on the value of game .
|
style |
Optional. | A list of CSS values to apply to the outermost container of the infobox. |
game |
Optional. | The game the stage belongs to. For stages that are exclusive to one game or have different values in each, use Splatoon , Splatoon 2 or Splatoon 3 . Specifying a value for game will only output the one icon for that game.
|
name |
Optional. | The English name of the stage. If absent, the page name will be used. |
image |
Optional. | Image to use. If not specified, the value used is <S|S2|S3>_Stage_<name>.png .
|
introduced |
Optional. | The date when the stage was introduced in the format of {{date|yyyy-mm-dd}} . If the stage was introduced at launch, write Launch .
|
totalbp |
Optional. | Total Battle Points of the stage in the format of 1,234 .
|
features |
Optional. | Features of the stage. Out-of-the-ordinary mechanics rather than terrain changes. |
haswaterhazard |
Optional. | If set to true , indicates the stage has a water hazard.
|
hasabysshazard |
Optional. | If set to true , indicates the stage has an abyss (out-of-bounds) hazard.
|
Examples
Example 1
{{Infobox/Stage |game = Splatoon |name = Moray Towers |introduced = {{date|2015-07-11}} |totalbp = 1,760 |hasabysshazard = true }}
Example 2
{{Infobox/Stage |name = Moray Towers |game = Splatoon 2 |introduced = Launch |totalbp = 2,212 |features = [[Inkrail]]s |hasabysshazard = true }}
This template adds rows to the table "Stages_test", which is declared by the template Infobox/StageCargoTest. View table.