Difference between revisions of "Template:Data missing/doc"

From blackwiki
Jump to navigation Jump to search
imported>GoldRingChip
m (Added parameters. Changed examples)
imported>Wiki13
m (Reverted edits by 70.65.186.205 (talk) to last version by DePiep)
 
(13 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{shortcut|dm}}
 
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 +
 
== Usage ==
 
== Usage ==
Use this template when you have a list in which items are missing. 
+
{{Template shortcut|dm}}
 
+
Use this template when you have a list or table in which specific items are missing.
These aren't necessarily stubs, because it only is applied when a specific item of information is missing.
 
  
 
Pages using this template are included in [[:Category:Data missing]].
 
Pages using this template are included in [[:Category:Data missing]].
  
== Parameter ==
+
== Parameters ==
If you put any parameter in, then it will force a line break before the helping link.
+
* {{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.
This is mostly helpful in tables, not in regular text.
 
  
 
== Examples ==
 
== Examples ==
Line 21: Line 19:
  
 
|-
 
|-
| <pre>George's father: {{dm}}</pre>
+
| <pre>George's father: {{Data missing}}</pre>
 
| &nbsp;
 
| &nbsp;
| George's father: {{dm}}
+
| George's father: {{Data missing}}
  
 
|-
 
|-
| <pre>George's mother: {{dm|hello}}</pre>
+
| <pre>George's mother: {{Data missing|?}}</pre>
 
| &nbsp;
 
| &nbsp;
| George's mother: {{dm|hello}}
+
| George's mother: {{Data missing|?}}
  
|- valign=top
+
|- style="vertical-align:top;"
 
| <pre>
 
| <pre>
 
{| class=wikitable
 
{| class=wikitable
 
! Relations !! Names !! Dates
 
! Relations !! Names !! Dates
 
|-
 
|-
| Self || George || {{dm}}
+
| Self || George || {{Data missing}}
 
|-
 
|-
| Father || {{dm}} || 1903–1975
+
| Father || {{Data missing}} || 1903–1975
 
|-
 
|-
| Mother || {{dm|1}} || 1905–1978
+
| Mother || {{Data missing|?}} || 1905–1978
 
|}</pre>
 
|}</pre>
 
| &nbsp;
 
| &nbsp;
Line 46: Line 44:
 
! Relations !! Names !! Dates
 
! Relations !! Names !! Dates
 
|-
 
|-
| Self || George || {{dm}}
+
| Self || George || {{Data missing}}
 
|-
 
|-
| Father || {{dm}} || 1903–1975
+
| Father || {{Data missing}} || 1903–1975
 
|-
 
|-
| Mother || {{dm|1}} || 1905–1978
+
| Mother || {{Data missing|?}} || 1905–1978
 
|}
 
|}
 
|}
 
|}
<includeonly>
+
 
<!-- CATEGORIES AND INTERWIKIS HERE -->
+
== TemplateData ==
[[Category:List cleanup maintenance templates|{{PAGENAME}}]]
+
{{TemplateData header}}
</includeonly>
+
<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>{{sandbox other||
 +
[[Category:List cleanup maintenance templates]]
 +
[[Category:Inline cleanup templates]]
 +
}}</includeonly>

Latest revision as of 12:36, 18 July 2020

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.

Parameters

  • {{{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: {{Data missing}}
  George's father: [data unknown/missing]
George's mother: {{Data missing|?}}
  George's mother: [?]
{| class=wikitable
! Relations !! Names !! Dates
|-
| Self || George || {{Data missing}}
|-
| Father || {{Data missing}} || 1903–1975
|-
| Mother || {{Data missing|?}} || 1905–1978
|}
 
Relations Names Dates
Self George [data unknown/missing]
Father [data unknown/missing] 1903–1975
Mother [?] 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.

Template parameters

ParameterDescriptionTypeStatus
Month and yeardate

Month and year of tagging; e.g., 'January 2013', but not 'jan13'

Example
January 2013
Auto value
{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}
Stringsuggested
Replace with '?'1

Replace the template text with a question mark ('?') for size constraints

Example
?
Auto value
?
Stringoptional