Difference between revisions of "Template:Dubious span/doc"
Jump to navigation
Jump to search
imported>Jc86035 (←Created page with '{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> ==...') |
imported>Kakurady (+ parameters / TemplateData) |
||
| Line 3: | Line 3: | ||
== Usage == | == Usage == | ||
| + | See [[Template:Dubious/doc]]. | ||
| + | |||
| + | == Parameters == | ||
| + | * {{para|text}} text to mark as dubious. | ||
| + | * {{Para|1|{{var|Talk section name}}}} – the first field should point to the section name on the talk page which contains the discussion. | ||
| + | ** If the section name contains an equal sign, use the following syntax: {{Tlx|Dubious|2=1=Does x = 5?}}. | ||
| + | ** Other special characters used in section names (such as brackets, "[" and "]") may need to be escaped. For example, the markup: | ||
| + | ::: {{Tlx|Dubious|K%5BX%5D is NOT integral}} | ||
| + | :: would produce: | ||
| + | :::{{Tlx|Dubious|K[X] is NOT integral}}. | ||
| + | * {{Para|reason}} an optional parameter, used to add a ''short'' explanation of the issue. The reason will not be visible on the page (even in tool-tip) but will be visible in the coding (e.g. when editing the page). | ||
| + | * {{Para|date}} the month and year when the template was added. Example: {{Para||date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}. | ||
| + | |||
| + | == TemplateData == | ||
| + | {{TemplateData header}} | ||
| + | <templatedata> | ||
| + | { | ||
| + | "description": "Use this template to tag a specific statement or alleged fact that is sourced but which nevertheless seems dubious or unlikely to be correct.", | ||
| + | "params": { | ||
| + | "1": { | ||
| + | "label": "Section name on talk page", | ||
| + | "description": "Section name on talk page where further information or discussion can be found", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "date": { | ||
| + | "label": "Month and year", | ||
| + | "description": "Month and year", | ||
| + | "type": "date", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | "reason": { | ||
| + | "label": "Reason", | ||
| + | "description": "Short explanation of why you tagged this statement. The reason will not be visible on the page (even in tool-tip) but will be visible in the coding (e.g. when editing the page).", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "text": { | ||
| + | "label": "Text", | ||
| + | "description": "Text to mark as dubious.", | ||
| + | "type": "content", | ||
| + | "required": true | ||
| + | } | ||
| + | }, | ||
| + | "paramOrder": [ | ||
| + | "text", | ||
| + | "1", | ||
| + | "date", | ||
| + | "reason" | ||
| + | ], | ||
| + | "format": "inline" | ||
| + | } | ||
| + | </templatedata> | ||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
Revision as of 00:38, 3 January 2018
| This is a documentation subpage for Template:Dubious span. It contains usage information, categories and other content that is not part of the original template page. |
Usage
See Template:Dubious/doc.
Parameters
|text=text to mark as dubious.|1=Talk section name– the first field should point to the section name on the talk page which contains the discussion.- If the section name contains an equal sign, use the following syntax:
{{Dubious|1=Does x = 5?}}. - Other special characters used in section names (such as brackets, "[" and "]") may need to be escaped. For example, the markup:
- If the section name contains an equal sign, use the following syntax:
|reason=an optional parameter, used to add a short explanation of the issue. The reason will not be visible on the page (even in tool-tip) but will be visible in the coding (e.g. when editing the page).|date=the month and year when the template was added. Example:|date=June 2026.
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Dubious span
Use this template to tag a specific statement or alleged fact that is sourced but which nevertheless seems dubious or unlikely to be correct.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Text | text | Text to mark as dubious. | Content | required |
| Section name on talk page | 1 | Section name on talk page where further information or discussion can be found | String | optional |
| Month and year | date | Month and year | Date | suggested |
| Reason | reason | Short explanation of why you tagged this statement. The reason will not be visible on the page (even in tool-tip) but will be visible in the coding (e.g. when editing the page). | String | optional |