Wikipedia:Reliable sources/Perennial sources/Last/doc: Difference between revisions

Content deleted Content added
TemplateData
 
Line 3:
{{Shortcut|WP:RSPLAST}}
This template displays the "Last" discussion table cell at [[Wikipedia:Reliable sources/Perennial sources]].
 
== Usage ==
This template accepts an unnamed [[H:T#Parameters|parameter]]:
* Time of last discussion
 
This template also accepts two optional named parameters:
* '''inprogress''': Set this to <code>y</code> if there is a [[WP:RSP#Discussion in progress|discussion in progress]] for the source.
* '''stale'''
** If you leave this unset, the source will be marked as [[WP:RSP#Stale discussions|stale]] if the year of last discussion is at least 5 years ago, i.e. on or before {{#expr:{{CURRENTYEAR}} - 5}}.
** Set this to <code>y</code> to always mark the source as stale.
** Set this to <code>n</code> to never mark the source as stale.
 
== Examples ==
Line 40 ⟶ 29:
|{{Wikipedia:Reliable sources/Perennial sources/Last|{{#expr:{{CURRENTYEAR}} - 5}}|stale=n}}
|}
 
== TemplateData ==
 
<templatedata>
{
"params": {
"1": {
* "description": Time"Date of last discussion",
"type": "date",
"required": true
},
"inprogress": {
"description": "Set this if there is a [[Wikipedia:RSP#Discussion_in_progress]]",
"suggestedvalues": [
"yes"
]
},
"stale": {
"description": "Marks the source as [[Wikipedia:RSP#Stale_discussions]] or not. When set to auto, defaults to the year of last discussion is at least 5 years ago",
"default": "auto",
"suggestedvalues": [
"auto",
"y",
"n"
]
}
}
}</templatedata>
 
== Status ==