Template:Purge cargo

来自Terraria Wiki
跳到导航 跳到搜索
Warning-yellow.svg
Purge this page after saving any edit to it!
This page contains a cargo query which may result in content appearing "broken" after saving the page.
To fix it, the page needs to be purged (link in the "More" dropdown at the top right) or null-edited (saving without making any changes) after saving an edit.
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:Purge cargo/l10n for the localization of this template.
Template-info.svg 文档 以下文档来自Template:Purge cargo/doc。(编辑 | 历史

This template is used on pages which contain a cargo query and their respective MediaWiki edit notice pages. Saving pages with cargo queries might cause the raw HTML of the query result to display, requiring a purge to fix, which this template informs about.

Usage

{{ purge cargo | box = y/yes | nocat = y/yes }}

box

When transcluded on content pages, this template only adds the page to the tracking category Pages requiring an edit notice about purging and only if there is no page MediaWiki:editnotice-0-<content page name> yet.

However, when setting the box parameter, the box displayed above will be output. This is only to be done on the respective MediaWiki edit notice pages. It also adds the page to Category:Edit notices about purging (only works on pages in the MediaWiki namespace).

nocat

Prevents any categorization.


The sub-template Template:Purge cargo/preload is used for preloading this template into pages created using the input box on Category:Pages requiring an edit notice about purging.