Template:Nodelete

来自Terraria Wiki
跳转到导航 跳转到搜索
This template is i18n-ready, which means it is easy to localize for different languages. Please see I18n & l10n for templates to learn more.
See Template:Nodelete/l10n for the localization of this template.
Important.svg
CAUTION: Terraria Wiki code is complex!!!
If you want to use this code on another wiki, wiki.gg staff are not able to assist you.
Please consider picking a different wiki to adapt code from, or making your own templates!
Remember that content on a wiki is more important than fancy formatting.
Template-info.svg 文档 以下文档来自Template:Nodelete/doc。(编辑 | 历史

This template displays a banner to discourage others from deleting a page. It can be used on pages that may appear useless at the moment but are actually in use (or even unused, but still useful).

This is mostly used on templates, categories, or files which for different reasons may end up in Special:UnusedTemplates, Special:UnusedCategories, or Special:UnusedFiles, respectively, but should not be deleted. This template adds the behavior switch __EXPECTUNUSEDTEMPLATE__ to templates and __EXPECTUNUSEDCATEGORY__ to categories, causing the page to be removed from Special:UnusedTemplates/Special:UnusedCategories.

Usage

{{ nodelete | <reason> | maintenancecategory = y/yes }}

First unnamed parameter

Reason why the page should not be deleted.

maintenancecategory

Standard reason for maintenance categories. The first unnamed parameter is ignored if this parameter is set.

Examples

Note that the text adapts to the namespace of the page it is used on. For instance, on category pages it reads "Do not delete this category".

Code Result
{{nodelete}}
不要删除
不要删除此模板页面,即使它似乎未被使用。
{{nodelete|maintenancecategory=yes}}
不要删除
不要删除此模板页面,即使它似乎未被使用。
原因:“这是一个维护用分类,有时可能是空的。