欢迎来到桃源村!

编辑权限已开放,诚邀各位共执笔墨,撰写属于你们的村志。你的每一笔,都是桃源村存在的痕迹。

全站通知:

模板:Main page box

来自桃源村日志WIKI_BWIKI_哔哩哔哩
跳到导航 跳到搜索

This template is used to create the boxes of the IMProved Main Page (IMP) framework. It should not be called directly, instead using 模板:Tl and 模板:Tl.

Use the box below to create a page with the required templates already in place, ready for you to add your content. 模板:Main page box/create 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

These are the parameters used by 模板:Tl. 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.