Difference between revisions of "Template:Cleanup/doc"

From Second Life Wiki
Jump to navigation Jump to search
(Shamelessly copied from wiki.openstreetmap.org and adapted slightly for the SL Wiki)
 
m (→‎Usage: Added template data template)
 
Line 5: Line 5:
=== Usage ===
=== Usage ===


<!--<templatedata>--><syntaxhighlight lang="json">
{{templatedata header}}
<!--<templatedata>-->
<syntaxhighlight lang="json">
{
{
"description": "Template used to propose some cleanup of a page",
"description": "Template used to propose some cleanup of a page",
Line 34: Line 36:
}
}
}
}
</syntaxhighlight><!--</templatedata>-->
</syntaxhighlight>
 
<!--</templatedata>-->


Add this template at the top of pages requiring some cleanup.
Add this template at the top of pages requiring some cleanup.

Latest revision as of 16:39, 10 June 2023

Usage

This is the "Wikipedia logo"TemplateData for this template used by TemplateWizard, "Wikipedia logo"VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Cleanup

{
	"description": "Template used to propose some cleanup of a page",
    "format": "inline",
	"params": {
		"1": {
			"aliases": ["reason"],
			"label": "reason",
			"description": "The reason the article is in need of cleanup",
            "example": "The reason ...",
			"type": "content"
		},
		"2": {
			"description": "discussion page name if not equal to the discussion page of the page the template is placed on",
			"example": "Talk:Wiki / 2=Tag:highway=motorway",
			"type": "wiki-page-name"
		},
		"lang": {
			"description": "language code, use if the language inferred from the page title is not correct",
			"example": "uk",
			"type": "string",
			"default": "en"
		},
		"nocat": {
			"description": "insert any text to switch off categorisation, useful for wiki manuals like \"Wiki organisation\"",
			"type": "string"
		}
	}
}

Add this template at the top of pages requiring some cleanup.

  • A short optional text may also be specified in the first parameter (possibly named |reason=) to describe or explain the cleanup actions that need to be performed within the page including this template.
  • The talk page linked from the message is by default the talk page associated to the current page, but an alternative talk page may be specified in optional second parameter.
  • Specify the language of the message by |lang=*, otherwise the language is determined from the current page (using {{Langcode}}).

See also