yoohoo! hot sauce please

10:27, 7 September 2026 (UTC)

Template:Swaggbox/doc

From 2swagg wiki
Revision as of 04:14, 16 October 2026 by Bulgogi2 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
This template uses TemplateStyles. Click here to edit.

Usage

Swaggboxes can be used for both dedicated templates and for single-use templates on pages.

Below is a basic Swaggbox example:

{{Swaggbox
|style=background: linear-gradient(#c0c0c0, lightgray); border: 1px solid #6e6e6e;
|image1=[[File:Color wheel.png|60px|link=Neutralplier]]
|image2=[[File:Color wheel.png|50px|link=Neutralplier]]
|line1=[[File:Color wheel.png|24px|link=]] '''This page is Color wheel''' [[File:Color wheel.png|24px|link=]]
|line2=It's not very Color wheel o algo
}}

Description

A meta-template for making header templates that look good, consistently sized, and follows modern CSS practices.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
CSS stylingstyle

Allows you to define styling with CSS, defaults only apply if no style nor class is defined. Don't forget your trailing semi-colons between CSS statements!

Default
border: 1px solid #aaa; background: #ededed;
Contentsuggested
Image (Left)image1

Defines what image should be placed on the left side.

Contentsuggested
Image (Right)image2

Defines what image should be placed on the right side.

Contentoptional
Top message lineline1

The large message at the top.

Default
'''Example text'''
Contentsuggested
Line 1 CSS stylingline1_style

Appends CSS styling to line 1.

Contentoptional
Bottom message lineline2

The smaller explanatory message at the bottom.

Contentsuggested
Line 2 CSS stylingline2_style

Appends CSS styling to line 2.

Contentoptional
Content overridecontent

Overrides the default line1 and line2 system for you to manually decide how the lines should be placed/styled.

Contentoptional
Root contentrootContent

Allows you to place content in the root of the soybox. Should generally not be used except for effects that are positioned absolutely.

Contentoptional
Classclass

Allows you to append class names for use with <templatestyles>, be sure to follow the Template Manual of Style regarding class names.

Stringoptional
Half WidthhalfWidth

Makes the template half as wide. (From 40rem to 28rem)

Booleanoptional

Classes

This template has custom classes which you can use to have your template follow a certain style guide, such as with Page Issue Headers.

Class Name Use
page-issue ok For templates that indicate the article is good and well written.
page-issue info For templates that indicate the article has minor issues the reader needs to be aware about, such as with articles lacking images and for confusing and controversial articles.
page-issue warning For templates that indicate the article has substantial issues such as link rot, being biased, or sounding like AI slop.
page-issue critical For templates that indicate the article has critical issues that could risk it being deleted or has unverifiable information due to dead links.
line1 Allows you to override the styling of the first line of text.
line2 Allows you to override the styling of the second line of text.

Notes

  • On screens less than 400px wide, the {{{image2}}} will not render due to the text wrapping in an illegible manner.