Template:Incomprehensible/doc: Difference between revisions

From CAPipedia
m 1 revision imported
m Text replacement - "Wikipedia[^:]" to "CAPipedia"
 
Line 4: Line 4:
== Usage ==
== Usage ==
<!-- Insert -->
<!-- Insert -->
* This template places articles into [[:Category:Wikipedia articles that are incomprehensible]].
* This template places articles into [[:Category:CAPipediaarticles that are incomprehensible]].
* Please use the {{Para|reason}} parameter to provide details.
* Please use the {{Para|reason}} parameter to provide details.


Line 41: Line 41:
"description": "The month and year the template was added",
"description": "The month and year the template was added",
"example": "October 2015",
"example": "October 2015",
"autovalue": "{{SUBST:CURRENTMONTHNAME}} {{SUBST:CURRENTYEAR}}",
"autovalue": "January 2024",
"type": "string",
"type": "string",
"required": true
"required": true

Latest revision as of 15:40, 23 January 2024

[[Category:Template documentation pages{{#translation:}}]]

Usage


Notes:

  • The date-substitution template may be used to automatically generate the date, e.g., {{Incomprehensible|{{SUBST:DATE}}}}. See Help:Substitution for more information.
  • The |date= parameter need not be added by the editor: if not entered, a bot will soon add it. The date parameter consists of the full English name of the current month with initial capital, a space, and the year, not full dates; e.g., "January 2013", but not "jan13". Any deviation from these two rules will result in an "invalid date parameter" error.

Parameters

  • |date=October 2024 - required parameter, will be added by a bot if omitted
  • |reason=text - optional parameter which adds advisory text
  • |machine=yes - optional parameter which adds "Sometimes this can be due to machine translation."
  • |section=text - optional parameter which changes the word "article" to "section" if 'y', 'yes', '1', or 'true' or its value otherwise
  • |talk=section - optional parameter which indicates the talk page section
  • |small=left - optional parameter which allows the use of the small format

Examples

Paste-ready example: {{Incomprehensible|date=October 2024}}
Example with reason: {{Incomprehensible|date=October 2024|reason=}}
Example with talk: {{Incomprehensible|date=October 2024|talk=}}
Example with machine: {{Incomprehensible|date=October 2024|machine=yes}}
Example with section: {{Incomprehensible|section|date=October 2024}} or {{Incomprehensible|date=October 2024|section=yes}}
Example with small: {{Incomprehensible|date=October 2024|small=left}}

{{Incomprehensible|small=left|machine=yes}} generates:

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Incomprehensible in articles based on its TemplateData.

TemplateData for Incomprehensible

<templatedata>{ "description": "A template to indicate that an article contains incomprehensible text", "params": { "date": { "label": "Date", "description": "The month and year the template was added", "example": "October 2015", "autovalue": "January 2024", "type": "string", "required": true }, "reason": { "label": "Reason", "description": "A reason for adding the template", "type": "string" }, "machine": { "label": "Machine Translation", "description": "Adds: Sometimes this can be due to machine translation.", "type": "string" }, "sect": { "label": "Section", "aliases": ["section", "1"], "description": "Changes the word article", "type": "string" }, "talk": { "label": "Talk", "aliases": ["2"], "description": "The section heading on the article's talk page with relevant discussion", "type": "string" }, "small": { "label": "Small", "description": "Allows the use of the small format", "example": "left", "type": "string" } }}</templatedata>

See also