Template:Class infobox: Difference between revisions
More actions
Created page with "{{Infobox |bodyclass = vcard |aboveclass = fn org |abovestyle = background-color:#{{#if:{{{water|}}}|cedeff|e7dcc3}}; |above = {{#ifeq:{{{name|}}}||<inc..." |
No edit summary |
||
(17 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{ | <includeonly> | ||
| | {| class="infobox" style="font-size:90%; width:20%;" | ||
|- | |||
| | ! class="infobox2" colspan="2" style="font-size:130%;" | {{{name|{{PAGENAME}}}}} | ||
| | |- | ||
| | {{#if:{{{image|}}} |{{!}} style="padding:0.5em; text-align:center;" colspan="2" {{!}} [[File:{{{image}}}{{!}}{{{image_size|150}}}px]] | ||
{{!}}- | |||
| | |}} | ||
| | {{#if:{{{caption|}}}|{{!}} style="text-align:center;" colspan="2" {{!}} <small>{{{caption}}}</small> | ||
{{!}}- | |||
|}} | |||
| class="infobox3" colspan="2" | Stats | |||
|- | |||
| style="width:45%;font-size:95%;" | '''Health''' | |||
| style="width:55%;" | {{{HP}}} | |||
|- | |||
| style="width:45%;font-size:95%;" | '''Faction''' | |||
| style="width:55%;" | {{{faction}}} | |||
|- | |||
| style="width:45%;font-size:95%;" | '''Spawn Gear''' | |||
| style="width:55%;" | {{{gear}}} | |||
|- | |||
| style="width:45%;font-size:95%;" | '''Spawn Zone''' | |||
| style="width:55%;" | {{{zone}}} | |||
|- | |||
| style="width:45%;font-size:95%;" | '''Movement Speed''' | |||
| style="width:55%;" | {{{speed}}} | |||
|- | |||
| style="width:45%;font-size:95%;" | '''Allies''' | |||
| style="width:55%;" | {{{allies}}} | |||
|- | |||
| style="width:45%;font-size:95%;" | '''Enemies''' | |||
| style="width:55%;" | {{{enemies}}} | |||
|- | |||
| style="width:45%;font-size:95%;" | '''Class ID''' | |||
| style="width:55%;" | {{{ID}}} | |||
|} | |||
{{#if:{{{nocat|}}}||[[Category:Classes]]}} | |||
</includeonly> | |||
<noinclude> | |||
{{Class infobox | |||
|name = Example class | |||
|image = SCP Foundation (emblem).svg | |||
|caption = Some example image | |||
|HP = 100 | |||
|faction = MTF | |||
|gear = [[Project-90|P90]], [[Epsilon-11 SR]] | |||
|zone = [[Entrance Zone]] | |||
|speed = 10 | |||
|allies = [[Scientist]]s, [[Facility Guard]]s | |||
|enemies = [[Class-D]]s, [[Chaos Insurgent]]s, [[:Category:SCPs|SCPs]] | |||
|nocat = yes | |||
}} | |||
__NOTOC__ | |||
An infobox for [[:Category:SCPs|SCPs]]. | |||
==Example== | |||
<code><nowiki>{{Class infobox</nowiki></code><br> | |||
| | <code><nowiki>|name = Example class</nowiki></code><br> | ||
<code><nowiki>|image = SCP Foundation (emblem).svg</nowiki></code><br> | |||
<code><nowiki>|caption = Some example image</nowiki></code><br> | |||
<code><nowiki>|HP = 100</nowiki></code><br> | |||
<code><nowiki>|faction = MTF</nowiki></code><br> | |||
<code><nowiki>|gear = [[Project-90|P90]], [[Epsilon-11 SR]]</nowiki></code><br> | |||
<code><nowiki>|zone = [[Entrance Zone]]</nowiki></code><br> | |||
<code><nowiki>|speed = 10</nowiki></code><br> | |||
<code><nowiki>|allies = [[Scientist]]s, [[Facility Guard]]s</nowiki></code><br> | |||
<code><nowiki>|enemies = [[Class-D]]s, [[Chaos Insurgent]]s, [[:Category:SCPs|SCPs]]</nowiki></code><br> | |||
<code><nowiki>|nocat = yes</nowiki></code><br> | |||
<code><nowiki>}}</nowiki></code><br> | |||
==Syntax== | |||
| | <code><nowiki>{{Class infobox</nowiki></code><br> | ||
| | <code><nowiki>|name = Name override</nowiki></code><br> | ||
<code><nowiki>|image = Image (preferably png)</nowiki></code><br> | |||
| | <code><nowiki>|caption = Caption under image</nowiki></code><br> | ||
| | <code><nowiki>|image_size = Image size override</nowiki></code><br> | ||
<code><nowiki>|HP = Health value</nowiki></code><br> | |||
| | <code><nowiki>|faction = Faction which they are a part of (Foundation/Chaos Insurgency/SCP)</nowiki></code><br> | ||
| | <code><nowiki>|gear = Weapons/Items they spawn with</nowiki></code><br> | ||
<code><nowiki>|zone = Spawn zone</nowiki></code><br> | |||
| | <code><nowiki>|speed = Ingame movement speed</nowiki></code><br> | ||
| | <code><nowiki>|allies = Classes with which they are allied</nowiki></code><br> | ||
<code><nowiki>|enemies = Classes which are enemies</nowiki></code><br> | |||
<code><nowiki>|nocat = Doesn't include category</nowiki></code><br> | |||
<code><nowiki>}}</nowiki></code><br> | |||
[[Category:Templates]][[Category:Infoboxes]] | |||
</noinclude> |
Latest revision as of 19:47, 19 August 2020
Example class | |
---|---|
![]() | |
Some example image | |
Stats | |
Health | 100 |
Faction | MTF |
Spawn Gear | P90, Epsilon-11 SR |
Spawn Zone | Entrance Zone |
Movement Speed | 10 |
Allies | Scientists, Facility Guards |
Enemies | Class-Ds, Chaos Insurgents, SCPs |
Class ID | {{{ID}}} |
An infobox for SCPs.
Example
{{Class infobox
|name = Example class
|image = SCP Foundation (emblem).svg
|caption = Some example image
|HP = 100
|faction = MTF
|gear = [[Project-90|P90]], [[Epsilon-11 SR]]
|zone = [[Entrance Zone]]
|speed = 10
|allies = [[Scientist]]s, [[Facility Guard]]s
|enemies = [[Class-D]]s, [[Chaos Insurgent]]s, [[:Category:SCPs|SCPs]]
|nocat = yes
}}
Syntax
{{Class infobox
|name = Name override
|image = Image (preferably png)
|caption = Caption under image
|image_size = Image size override
|HP = Health value
|faction = Faction which they are a part of (Foundation/Chaos Insurgency/SCP)
|gear = Weapons/Items they spawn with
|zone = Spawn zone
|speed = Ingame movement speed
|allies = Classes with which they are allied
|enemies = Classes which are enemies
|nocat = Doesn't include category
}}