The ruleset has been made concrete, all staff and users are advised to read.

Template:Soybox/doc

From Soyjak Wiki, the free ensoyclopedia
Jump to navigationJump to search
This template uses template styles. Click here to edit. (Learn more)

Usage

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

Below is a basic Soybox example:

{{Soybox
|style=background: linear-gradient(#c0c0c0, lightgray); border: 1px solid #6e6e6e;
|image1=[[File:Plier_icon_army.png|60px|link=Neutralplier]]
|image2=[[File:Neutralplier_(blush).png|50px|link=Neutralplier]]
|line1=[[File:Neutral_Markiplier.png|24px|link=]] '''This page is neutral''' [[File:Neutral_Markiplier.png|24px|link=]]
|line2=It's not very interesting 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. Don't forget your trailing semi-colons between CSS statements!

Stringsuggested
Image (Left)image1

Defines what image should be placed on the left side.

Stringsuggested
Image (Right)image2

Defines what image should be placed on the right side.

Stringoptional
Top message lineline1

The large message at the top.

Stringsuggested
Bottom message lineline2

The smaller explanatory message at the bottom.

Stringsuggested
Content overridecontent

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

Stringoptional
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.

Stringoptional
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.