From SCP: Secret Laboratory English Official Wiki

mNo edit summary
No edit summary
Line 1: Line 1:
{{Infobox
<includeonly>
|bodyclass      = vcard
{| class="infobox" style="font-size:90%; width:20%;"
 
|-
|aboveclass    = fn org
! class="infobox2" colspan="2" style="font-size:130%;" | {{{name|{{PAGENAME}}}}}
|abovestyle    = background-color:black
|-
|above          = {{#ifeq:{{{name|}}}||<includeonly>{{PAGENAME}}</includeonly>|{{{name}}}}}
{{#if:{{{image|}}} |{{!}} style="padding:0.5em; text-align:center;" colspan="2" {{!}} [[File:{{{image}}}{{!}}250px]]
 
{{!}}-
|subheader      = {{ifempty|{{{other_name|}}}|{{{alt_name|}}}}}
|}}
| suheaderclass = nickname
{{#if:{{{caption|}}}|{{!}} style="text-align:center;" colspan="2" {{!}} <small>{{{caption}}}</small>
 
{{!}}-
|image1  = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=256px|alt={{{alt|}}}}}
|}}
|caption1 = {{ifempty|{{{caption|}}}}}
! class="infobox3" colspan="2" | Info
 
|-
|label1 = Type
{{#if:{{{type|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Type'''
|data1 = {{{type|}}}
{{!}} style="width:55%;" {{!}} {{{type}}}
 
{{!}}-
|label2 = Usage
|}}
|data2 = {{{usage|}}}
{{#if:{{{usage|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Usage'''
 
{{!}} style="width:55%;" {{!}} {{{usage}}}
|label3 = Spawn
{{!}}-
|data3 = {{{spawn|}}}
|}}
}}
{{#if:{{{spawn|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Spawn'''
{{!}} style="width:55%;" {{!}} {{{spawn}}}
{{!}}-
|}}
|}
{{#if:{{{nocat|}}}||[[Category:Structures]]}}
</includeonly>
<noinclude>
<noinclude>
{{Structure infobox
{{Structure_infobox
|name = Example structure
|name = Example Structure
|image = SCP Foundation (emblem).svg
|image = SCP Foundation (emblem).svg
|image_size = 200
|caption = Some example image
|caption = Some example image
|type = Interactable object
|type = Interactable object
|usage = Allows adding attachments
|usage = Allows adding attachments
|spawn = [[Heavy Containment Zone]]
|spawn = LCZ
|nocat = yes
}}
}}
[[Category:Templates]]
An infobox for [[:Category:Structures|Structures]].
[[Category:Infoboxes]]
==Example==
<code><nowiki>{{Structure infobox</nowiki></code><br>
<code><nowiki>|name = Example Structure</nowiki></code><br>
<code><nowiki>|image = SCP Foundation (emblem).svg</nowiki></code><br>
<code><nowiki>|caption = Some example image</nowiki></code><br>
<code><nowiki>|type = Interactable object</nowiki></code><br>
<code><nowiki>|usage = Allows adding attachments</nowiki></code><br>
<code><nowiki>|spawn = LCZ</nowiki></code><br>
<code><nowiki>|nocat = yes</nowiki></code><br>
<code><nowiki>}}</nowiki></code><br>
 
 
==Syntax==
<code><nowiki>{{Structure_infobox</nowiki></code><br>
<code><nowiki>|name = Name override</nowiki></code><br>
<code><nowiki>|image = Image (preferably png)</nowiki></code><br>
<code><nowiki>|caption = Some example image</nowiki></code><br>
<code><nowiki>|type = What kind of structure is it</nowiki></code><br>
<code><nowiki>|usage = What is it used for</nowiki></code><br>
<code><nowiki>|spawn = Spawn location of the structure</nowiki></code><br>
<code><nowiki>|nocat = Category isn't set</nowiki></code><br>
<code><nowiki>}}</nowiki></code><br>
 
[[Category:Templates]][[Category:Infoboxes]]
</noinclude>
</noinclude>

Revision as of 19:01, 31 March 2019


Example Structure
Some example image
Info
Type Interactable object
Usage Allows adding attachments
Spawn LCZ


An infobox for Structures.

Example

{{Structure infobox
|name = Example Structure
|image = SCP Foundation (emblem).svg
|caption = Some example image
|type = Interactable object
|usage = Allows adding attachments
|spawn = LCZ
|nocat = yes
}}


Syntax

{{Structure_infobox
|name = Name override
|image = Image (preferably png)
|caption = Some example image
|type = What kind of structure is it
|usage = What is it used for
|spawn = Spawn location of the structure
|nocat = Category isn't set
}}

Cookies help us deliver our services. By using our services, you agree to our use of cookies.