Template:Structure infobox: Difference between revisions
Template page
More actions
mNo edit summary |
No edit summary |
||
(18 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{ | <includeonly> | ||
| | {| class="floatright" style="font-size:90%; width: 100%; max-width:400px"" | ||
|- | |||
| | ! class="infobox2" colspan="2" style="font-size:130%; white-space: nowrap;" | {{{name|{{PAGENAME}}}}} | ||
| | |- | ||
| | {{#if:{{{image|}}} |{{!}} style="padding:0.5em; text-align:center;" colspan="2" {{!}} [[File:{{{image}}}{{!}}{{{image_size|300}}}px|link=File:{{{image}}}]] | ||
{{!}}- | |||
| | |}} | ||
| | {{#if:{{{image1|}}} |{{!}} style="padding:0.5em; text-align:center;" colspan="2" {{!}} <div class="infobox-tabber"> <tabber> Standard Cabinet=[[File:{{{image1}}}{{!}}{{{image_size|300}}}px]]|-|Adrenaline Cabinet=[[File:{{{image2}}}{{!}}{{{image_size|300}}}px]]</tabber></div> | ||
{{!}}- | |||
|}} | |||
| | {{#if:{{{caption|}}}|{{!}} style="text-align:center;" colspan="2" {{!}} {{{caption}}} | ||
{{!}}- | |||
|}} | |||
! class="infobox3" colspan="2" | Info | |||
|- | |||
{{#if:{{{type|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Type''' | |||
{{!}} style="width:55%;" {{!}} {{{type}}} | |||
{{!}}- | |||
|}} | |||
{{#if:{{{usage|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Usage''' | |||
{{!}} style="width:55%;" {{!}} {{{usage}}} | |||
{{!}}- | |||
|}} | |||
{{#if:{{{spawn|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Spawn''' | |||
{{!}} style="width:55%;" {{!}} {{{spawn}}} | |||
{{!}}- | |||
|}} | |||
|} | |||
{{#if:{{{nocat|}}}||[[Category:Structures]]}} | |||
</includeonly> | |||
<noinclude> | |||
{{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 | |||
}} | |||
An infobox for [[:Category:Structures|Structures]]. | |||
==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>|image_size = Set image size</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]] | |||
[[Category: | |||
</noinclude> | </noinclude> |
Latest revision as of 04:15, 27 May 2025
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)
|image_size = Set image size
|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
}}