Template:Main block

From Deskthority wiki
Jump to navigation Jump to search

Main page link block template.

Example

 
Untitled
Nothing to see here


Parameters

color
Color used for the top-left blocky thing; one of "red", "green", "blue" or "grey"
category
Category name for the box; this will become a hyperlink, so use only title if you do not have a category to link to
title
Title if different from the category name, or if no category hyperlink is to be used
content
Content of the box

Usage notes

Main page link blocks are designed to have zero additional spacing between lines, but MediaWiki will "randomly" add blank lines for no clear reason. As such, all <ul> and <p> spacing is removed by way of CSS on MediaWiki:Common.css linked to classes in this template. Do not be alarmed; this behavior is intentional.