Jump to content

Template:Main page box: Difference between revisions

From Factory Town 2 Wiki
imported>Mr Pie 5
Added EXPECTUNUSEDTEMPLATE
 
imported>ARTIFICER
Importing default loadout
 
(No difference)

Latest revision as of 05:56, 10 July 2026

This template is used to create the boxes of the IMProved Main Page (IMP) framework. It should not be called directly, instead using Script error: No such module "Template link". and Script error: No such module "Template link"..

Use the box below to create a page with the required templates already in place, ready for you to add your content. <inputbox> type = create width = 40 default = buttonlabel = Create this box prefix = Main Page/ placeholder = box name (no spaces) preload = Template:Main page box/preload summary = Created using preload preloadparams[] = Example </inputbox> The box name can not contain spaces or start with a number. Those are probably the only restrictions you'll run into, but for a full list see <custom-ident> on MDN web docs.

Parameters

[edit]

These are the parameters used by Script error: No such module "Template link".. All parameters are optional.

Name Data type Description
title Wikitext The title of the box. This can be empty, in which case the box will contain only the content.
class CSS classes A list of classes to be passed to the box, separated by spaces and without quotes. Standard options are vertical-center to vertically center contents, and has-floating-image in case floating images are needed in the box (normally the flex layout disallows this).
style CSS declarations Inline CSS to be applied directly to the box, without quotes. A common usage is text-align:center; for cases where it's desired for individual boxes to have centered text.