模板:Formatting subpage/doc

出自Terraria Wiki
跳至導覽 跳至搜尋

This template is used on formatting subpages to provide a very basic, standardized documentation of their purpose. It also automatically categorizes the page accordingly.

This aims at addressing the common misunderstanding of especially newer editors considering a page with no visible output unnecessary and unused.

Usage

{{ formatting subpage | onlybox = y | <partial customization of doc text> | nocat = y }}

All parameters are optional.

onlybox

Only display the box. This is often used if a subpage requires documentation that exceeds the standard, predefined text.

First unnamed parameter

Partially modify the standard, predefined documentation text, e.g. if only a small customization needs to be made. Only has an effect if $onlybox is not set.

There are different predefined texts, depending on the subpage's title:

Subpage title Text
resultcell 此頁面在基礎頁面Template:Formatting subpage/doc上用於讓「配方」表格的每一行擁有一個不可見的 {{item infobox}}(用來將物品的數據存入 cargo)。
row 此頁面在基礎頁面Template:Formatting subpage/doc上用於列印出表格的每一行。
default 此頁面在基礎頁面Template:Formatting subpage/doc上用於以一種標準的方式格式化特定數據。
default (customized)
此頁面在基礎頁面Template:Formatting subpage/doc<custom text from first unnamed parameter>
nocat

Prevent categorization of the subpage.

Examples

Only box

{{formatting subpage|onlybox=y}} results in:

Information.svg
此頁面只在Template:Formatting subpage上用于格式化目的。


Full

{{formatting subpage}} results in:

Information.svg
此頁面只在Template:Formatting subpage上用于格式化目的。


此頁面在基礎頁面Template:Formatting subpage上用於以一種標準的方式格式化特定數據。


Full (custom text)

{{formatting subpage|to print a list of items}} results in:

Information.svg
此頁面只在Template:Formatting subpage上用于格式化目的。


此頁面在基礎頁面Template:Formatting subpage上to print a list of items。