Template:Autoarchive resolved section/doc: Difference between revisions
MarcoAurelio (talk | contribs) No edit summary |
MarcoAurelio (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
== Usage == |
|||
The syntax is mostly similar to that of template [[:de:Template:Autoarchiv-Erledigt]]. For the target (archive) only its current is valid. This type of archiving is done by [[User:SpBot|SpBot]] (not by [[User:ArchiverBot|ArchiverBot]]). |
The syntax is mostly similar to that of template [[:de:Template:Autoarchiv-Erledigt]]. For the target (archive) only its current is valid. This type of archiving is done by [[User:SpBot|SpBot]] (not by [[User:ArchiverBot|ArchiverBot]]). |
||
<pre><nowiki>{{Autoarchive resolved section |
|||
|age = |
|||
|archive = |
|||
|show = |
|||
|level = |
|||
|timecompare = |
|||
|timeout = |
|||
}}</nowiki></pre> |
|||
Revision as of 16:07, 8 April 2016
Usage
The syntax is mostly similar to that of template de:Template:Autoarchiv-Erledigt. For the target (archive) only its current is valid. This type of archiving is done by SpBot (not by ArchiverBot).
{{Autoarchive resolved section |age = |archive = |show = |level = |timecompare = |timeout = }}
"Archive" parameter variables
You can use the following variables in your archive
-parameter:
variable | meaning |
---|---|
((year)) | year e.g. 2024 |
((month:long)) | full monthname e.g. February |
((month:short)) | short monthname e.g. Feb |
((month:##)) | month as two digits e.g. 02 |
((week)) | week date as a number e.g. 15, 4 (per ISO 8601/DIN 1355-1) |
((week:##)) | week date as a two digits e.g. 15, 04 (per ISO 8601/DIN 1355-1) |
((day:##)) | day of month as two digits e.g. 31, 07 |
((quarter)) | quarter e.g. 3 |
((quarter:##)) | quarter as two digits e.g. 03 |
((quarter:i)) | quarter as lowercase Roman numerals e.g. iii |
((quarter:I)) | quarter as uppercase Roman numerals e.g. III |
((half-year)) | half-year e.g. 2 |
((half-year:i)) | half-year as lowercase Roman numeral e.g. ii |
((half-year:I)) | half-year as uppercase Roman numeral e.g. II |
((FULLPAGENAME)) | The namespace + page name of the current page. Same as {{FULLPAGENAME}} , but with normal brackets. Use this instead of hard coding your page name.
|
Example: archive=((FULLPAGENAME))/Archive/((year))((month:short))
Example
The following example is derived from the archiving setup of Wikipedia:Redaktion Chemie. All marked/tagged sections with level 2 (that is ==
) will be archived seven days after placement of Template:Section resolved. The archive is at Wikipedia:Redaktion Chemie/Archiv. The archiving will be done to Wikipedia:Redaktion Chemie/Archiv/2007/Januar if the first comment in this section was made in January.
{{Autoarchive resolved section |age=7 |archive='((FULLPAGENAME))/archive/((year))' |overview=[[Special:PrefixIndex/{{subst:FULLPAGENAME}}/archive|archive]] }}
That will look like this:
SpBot archives all sections tagged with {{Section resolved|1=~~~~}} after 7 days. For the archive overview, see archive.
|
Signature format
The date and time part of the signature are important for recognition of the timestamp. The default format specified by MediaWiki is sufficient (11:55, 25. Aug 2024 (UTC)). It corresponds to the following structure:
{{subst:LOCALTIME}}, {{subst:LOCALDAY}}. {{subst:LOCALMONTHABBREV}} {{subst:LOCALYEAR}} (UTC)
Other formats are not supported.
Error lists
Talk pages containing errors in their main templates or {{Section resolved}} are shown in the following lists and on the corresponding talk page.
- error messages reported by the bot - please remove the last line after the problem is solved
- parameter error in Template:Section resolved
- no age set
- no archive set
- Info