CURRENT MISSION: Conclude the 2026 soyjak.party hack page, aswell as any pages relating to it, such as the Summer 2026 Crisis page.
Update Quotecord with any relevant info. See the blackboard for more info.

Soyjak Wiki:Template Manual of Style: Difference between revisions

From Soyjak Wiki, the free ensoyclopedia
Jump to navigationJump to search
Line 14: Line 14:
== Visuals ==
== Visuals ==
*The template should not have extremely saturated colors.
*The template should not have extremely saturated colors.
**On hexadecimal color, consider adding to the other values to reduce saturation, or subtracting from your main (highest) color value.
*Do not use dark fonts on dark backgrounds or light fonts on light backgrounds.
*Do not use dark fonts on dark backgrounds or light fonts on light backgrounds.
** {{whitetext|otherwise it'll be hard to read}}
*The template should not be excessively tall or wide.
*The template should not be excessively tall or wide.
*Use suitable padding so that template contents do not encroach upon borders.
*Use suitable padding so that template contents do not encroach upon borders.
{{SoyjakWiki}}
{{SoyjakWiki}}

Revision as of 17:27, 16 June 2025

This page provides a set of basic pointers on the creation of templates. New users should avoid making templates because they are highly likely to be coal.

Usecase

This is the single most important aspect of a template. Does your template justify the vertical space taken up on the article? Is there another template that already has the same purpose? You need to consider these questions before you even begin making your template, or it may be deleted.

Certain kinds of templates, like "has connections to or written by" style templates, are regarded as superfluous.

Code

  • The template should not use inefficient code like spamming <big> multiple times instead of using font-size.
  • If possible, the template should be a single cell or div that does not use rowspan in order to minimize wasted vertical space brought about by cellpadding and cellspacing and improve readability.
  • The template should have a margin of 0 0.5em if it is a header or footer. This is simply to match the margins of most other templates.
  • All colors should be in hexcode and never in rgb() (unless you need opacity via rgba()).
  • Add suitable categories such [[Category:Template]] to the template page itself via <noinclude>. Make sure not to leave a newline between the noinclude and the template code or it might stack up with another newline from a different template being transcluded once it is on an article and cause an irremovable space to appear between templates and article text.
  • Use template parameters and parser functions in order to make the text of the template suitably customizable.

Visuals

  • The template should not have extremely saturated colors.
    • On hexadecimal color, consider adding to the other values to reduce saturation, or subtracting from your main (highest) color value.
  • Do not use dark fonts on dark backgrounds or light fonts on light backgrounds.
    • otherwise it'll be hard to read
  • The template should not be excessively tall or wide.
  • Use suitable padding so that template contents do not encroach upon borders.
Soyjak Wiki Guides and Policies

Guides:
Manual of Style (Template Manual of Style) - Beginner's guide - About - Staff - Bots - Coal articles - Collapsing objects - Morphing objects - Random objects - Galleries

Policies:
Rules - Moderation - Privacy policy - Policy - Approver policy - Copyright - Edit war