Difference between revisions of "Template:Data missing/doc"
Jump to navigation
Jump to search
imported>Glades12 (Fixed) |
imported>SUM1 (Added TemplateData and updated usage notes to reflect removed 'You can help!' link (and removed confusing and unnecessary sentence)) |
||
| Line 4: | Line 4: | ||
== Usage == | == Usage == | ||
| − | Use this template when you have a list in which items are | + | Use this template when you have a list or table in which specific items are missing. |
Pages using this template are included in [[:Category:Data missing]]. | Pages using this template are included in [[:Category:Data missing]]. | ||
== Parameter == | == Parameter == | ||
| − | If you put | + | * {{param|date}}: The date the tag was added. |
| − | + | * {{param|?}}: If you put a "?" as a parameter, it will shorten the template text down to "?", which is useful in very tight spaces such as tables and charts. | |
| − | |||
== Examples == | == Examples == | ||
| Line 25: | Line 24: | ||
|- | |- | ||
| − | | <pre>George's | + | | <pre>George's mother: {{dm|?}}</pre> |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| | | | ||
| − | | George's mother: {{dm| | + | | George's mother: {{dm|?}} |
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| Line 43: | Line 37: | ||
| Father || {{dm}} || 1903–1975 | | Father || {{dm}} || 1903–1975 | ||
|- | |- | ||
| − | | | + | | Mother || {{dm|?}} || 1905–1978 |
| − | |||
| − | |||
|}</pre> | |}</pre> | ||
| | | | ||
| Line 56: | Line 48: | ||
| Father || {{dm}} || 1903–1975 | | Father || {{dm}} || 1903–1975 | ||
|- | |- | ||
| − | | | + | | Mother || {{dm|?}} || 1905–1978 |
| − | |||
| − | |||
|} | |} | ||
|} | |} | ||
| + | |||
| + | == TemplateData == | ||
| + | {{TemplateData header}} | ||
| + | <templatedata> | ||
| + | { | ||
| + | "description": "Use this inline template indicate that a statement may be outdated and in need of updating or removal.", | ||
| + | "params": { | ||
| + | "date": { | ||
| + | "label": "Month and year", | ||
| + | "description": "Month and year of tagging; e.g., 'January 2013', but not 'jan13'", | ||
| + | "type": "string", | ||
| + | "autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}", | ||
| + | "example": "January 2013", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | "1": { | ||
| + | "label": "Replace with '?'", | ||
| + | "description": "Replace the template text with a question mark ('?') for size constraints", | ||
| + | "type": "string", | ||
| + | "autovalue": "?", | ||
| + | "example": "?" | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | </templatedata> | ||
| + | |||
<includeonly> | <includeonly> | ||
<!-- CATEGORIES AND INTERWIKIS HERE --> | <!-- CATEGORIES AND INTERWIKIS HERE --> | ||
Revision as of 11:22, 5 February 2020
| This is a documentation subpage for Template:Data missing. It contains usage information, categories and other content that is not part of the original template page. |
Contents
Usage
Use this template when you have a list or table in which specific items are missing.
Pages using this template are included in Category:Data missing.
Parameter
{{{date}}}: The date the tag was added.{{{?}}}: If you put a "?" as a parameter, it will shorten the template text down to "?", which is useful in very tight spaces such as tables and charts.
Examples
| Code | Result | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
George's father: {{dm}}
|
George's father: [data unknown/missing] | |||||||||||||
George's mother: {{dm|?}}
|
George's mother: [?] | |||||||||||||
{| class=wikitable
! Relations !! Names !! Dates
|-
| Self || George || {{dm}}
|-
| Father || {{dm}} || 1903–1975
|-
| Mother || {{dm|?}} || 1905–1978
|}
|
|
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 Data missing
Use this inline template indicate that a statement may be outdated and in need of updating or removal.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Month and year | date | Month and year of tagging; e.g., 'January 2013', but not 'jan13'
| String | suggested |
| Replace with '?' | 1 | Replace the template text with a question mark ('?') for size constraints
| String | optional |