Template:Autoarchive resolved section/doc: Difference between revisions
Replaced content with "{{sust:propb|motivo}}" Tags: Replaced Reverted Mobile edit Mobile web edit |
Tacsipacsi (talk | contribs) Undo revision 25641993 by Juanperezcecilio (talk): test edit Tag: Undo |
||
Line 1: | Line 1: | ||
{{Uses TemplateStyles|Template:Autoarchive resolved section/styles.css}} |
|||
{{sust:propb|motivo}} |
|||
{{TemplateBox |
|||
|name=Autoarchive resolved section |
|||
|desc= {{Langswitch |
|||
|en = <span style="padding-left:30px">Template for automatic archiving.</span><br />[[File:Information icon.svg|20px|left|Attention]] The syntax is mostly similar to that of template [[:de:Template:Autoarchiv-Erledigt]] ''(German language page)''. For the target (archive) only its current notation is valid. This type of archiving is done by [[User:SpBot|SpBot]] <small>''(not by [[User:MiszaBot|MiszaBot]])''</small>. |
|||
|de=<span style="padding-left:30px">Vorlage für das automatische Archivieren.</span><br />[[File:Information icon.svg|20px|left|Achtung]] Die Syntax gleicht im Wesentlichen der [[:de:Vorlage:Autoarchiv-Erledigt|Vorlage:Autoarchiv-Erledigt]]. Für das Ziel ist nur die jetzige dort verfügbare Schreibweise zulässig. Die Abarbeitung dieser Art der Archivierung wird durch [[User:SpBot|SpBot]] durchgeführt <small>''(nicht durch den [[User:MiszaBot|MiszaBot]])''</small>. |
|||
}} |
|||
|namespace=talks<!-- talks + queue --> |
|||
|usergroup=all |
|||
|type=archive bot initialization template |
|||
|i18n-method=switch |
|||
|print=multi |
|||
|usage-notes= |
|||
{{Langswitch |
|||
|de=Die Verwendung der Vorlage funktioniert im Zusammenspiel mit der Vorlage {{t|Section resolved}}, kann aber auch wie die „normale“ Archivierung durch [[User:MiszaBot|MiszaBot]] verwendet werden (siehe Parameter <code>timeout</code>). |
|||
Es ist gleichgültig, wo der Baustein <code>{{tlf|Section resolved|…}}</code> innerhalb des Abschnitts steht. Er bezieht sich jeweils auf die vorangegangene Überschrift der zu archivierenden Überschriftsebene (siehe Parameter <code>level</code>). |
|||
Die Vorlage ist auf ein bestimmtes Format des Zeitstempels angewiesen, mehr dazu in [[#Signature format|Unterschriftenformat]]. |
|||
<!-- |
|||
Es kann automatisch eine Liste mit den vorhandenen Archivseiten erstellt werden: |
|||
* [[Vorlage:Archiv-Liste Jahre]] |
|||
* [[Vorlage:Archiv-Liste Monate]] |
|||
* [[Vorlage:Archiv-Liste Quartale]] |
|||
--> |
|||
|en=SpBot archiving requires the use of either {{t|Section resolved}} or the <code>timeout</code> parameter of this template (usual archiving like by [[User:MiszaBot|MiszaBot]]). |
|||
It does not matter where the template <code>{{tlf|Section resolved|…}}</code> is placed within the section. It will always refer to the last/previous heading of the section to be archived (see parameter <code>level</code>). |
|||
The template relies on a certain time stamp format, for more see in [[#Signature format|Signature format]]. |
|||
}}<!-- end of usage notes --> |
|||
|1=age |
|||
|1stat=required |
|||
|1d = {{LangSwitch |
|||
|en=The parameter ''<code>age</code>'' defines the required age of the template block <code>{{tlf|Section resolved|…}}</code> in days. After this amount of days the section will be archived. |
|||
|de=Der Parameter ''<code>age</code>'' gibt das Alter des Bausteins <code>{{tlf|Section resolved|…}}</code> in Tagen an. Nach dieser Zeit wird der entsprechende Abschnitt archiviert. |
|||
}} |
|||
|2=archive |
|||
|2stat=required |
|||
|2d = {{LangSwitch |
|||
|en=Path to archive. You can use variables in your ''<code>archive</code>'' parameter as [[#Archive variables|listed below]].<br /><small>Path inclusion with ASCII apostrophes (') is not necessary, but allowed for historic reasons.</small> |
|||
|de=Pfad zum Archiv. Du kannst Variablen im ''<code>archive</code>''-Parameter verwenden, wie [[#Archive variables|unten aufgeführt]].<br /><small>Den Pfad in Apostrophen (') einzuschließen ist nicht notwendig, aber aus historischen Gründen erlaubt.</small> |
|||
}} |
|||
|3=overview |
|||
|3stat=optional- |
|||
|3d = {{LangSwitch |
|||
|en=The parameter ''<code>overview</code>'' can be used to display a link to the location of the archive page. Example code: <code><nowiki>overview=[[Commons:Village pump/Archive]]/</nowiki></code> results in<br />“For the archive overview, see '''[[Commons:Village pump/Archive]]'''.”<br /><small>An alternative to this parameter is the use of template {{t|Archive box}}.</small> |
|||
|de=Mit dem Parameter ''<code>overview</code>'' lässt sich ein Hinweis geben, wo sich die Archivseite befindet. So wird mit <code><nowiki>overview=[[Commons:Forum/Archiv]]</nowiki></code> im Baustein der folgende Text generiert:<br />„Die Archivübersicht befindet sich unter '''[[Commons:Forum/Archiv]]'''.“<br /><small>Eine Alternative zu diesem Parameter ist die Verwendung der Vorlage {{t|Archive box}}.</small> |
|||
}} |
|||
|4=latest archive |
|||
|4stat=optional- |
|||
|4d = {{LangSwitch |
|||
|en=The parameter ''<code>latest archive</code>'' can be used to display a link to the current archive. The [[#Archive variables|<code>archive</code> parameter variables]] can be used. Example code: <code><nowiki>latest archive=[[Commons:Village pump/Archive/2011/02]]</nowiki></code> results in<br />“The latest archive is located under '''[[Commons:Village pump/Archive/2011/02]]'''.” |
|||
|de=Mit dem Parameter ''<code>latest archive</code>'' kann man einen Verweis auf die aktuelle Archivseite einfügen. Die [[#Archive variables|Variablen für den <code>archive</code>-Parameter]] können verwendet werden. Mit <code><nowiki>latest archive=[[Commons:Forum/Archiv/2011/October]]</nowiki></code> wird der folgende Text erzeugt:<br />„Das aktuelle Archiv befindet sich unter '''[[Commons:Forum/Archiv/2011/October]]'''.“ |
|||
}} |
|||
|5=show |
|||
|5stat=optional |
|||
|5def=yes |
|||
|5d = {{LangSwitch |
|||
|en=The parameter ''<code>show</code>'' defines, whether the template should display anything or not: <code><nowiki>show=yes</nowiki></code> (default) or <code><nowiki>show=no</nowiki></code>. This parameter can be used, if the template is used on a page which has an own intro explaining the archiving parameters. |
|||
|de=Der Parameter ''<code>show</code>'' gibt an, ob der Bausteintext angezeigt werden soll (<code><nowiki>show=yes</nowiki></code>, Standard) oder nicht (<code><nowiki>show=no</nowiki></code>). Dies ist sinnvoll, wenn er auf einer Seite verwendet wird, auf der ohnehin im Kopf steht, wohin und wie archiviert wird. |
|||
}} |
|||
|6=level |
|||
|6stat=optional |
|||
|6def=2 |
|||
|6d = {{LangSwitch |
|||
|en=Parameter ''<code>level</code>'' defines which heading level should be archived. Deeper heading levels are treated as part of the specified level. |
|||
;Examples: |
|||
<small>(''hint:'' Count the equal signs)</small> |
|||
== talk page section level II == |
|||
:Such a heading is level 2. |
|||
==== talk page section level IV ==== |
|||
:Such a heading is level 4. |
|||
|de=Der Parameter ''<code>level</code>'' gibt an, welche Überschriftsebene archiviert werden soll. Tiefere Überschriftsebenen werden als Teil der Ebene angesehen, die dem Parameter übergeben wurde. |
|||
}} |
|||
;Beispiele: |
|||
<small>(''Tipp:'' Zähle die Gleichheitszeichen)</small> |
|||
== Diskussionsüberschrift Ebene II == |
|||
:Eine solche Überschrift gehört zur Ebene 2 |
|||
==== Diskussionsüberschrift Ebene IV ==== |
|||
:Diese Überschrift gehört zur Ebene 4. |
|||
|7=timecompare |
|||
|7stat=optional |
|||
|7d = {{LangSwitch |
|||
|en=The parameter ''<code>timecompare</code>'' specifies which timestamp should be used for distribution into the archives. In the parameter ''archive'' you can use variables referring to the date. ''<code>timecompare</code>'' defines which timestamp is used for archiving. |
|||
* <code>timecompare = resolved</code>: timestamp given by {{t|Section resolved}} block |
|||
* Any other value or empty: the latest timestamp of the whole section |
|||
Compare template usage in [[Commons:Graphic Lab/Illustration workshop]]. |
|||
|de=Der Parameter ''<code>timecompare</code>'' gibt an, nach welchem Zeitstempel der Bot die Einsortierung in Archive vornehmen soll. Im Parameter ''<kbd>archive</kbd>'' können Variablen in Bezug auf das Datum benutzt werden. ''<code>timecompare</code>'' definiert, welcher Zeitstempel für das Archivieren herangezogen wird. |
|||
* <code>timecompare = resolved</code>: Zeitstempel im {{t|Section resolved}}-Baustein wird benutzt. |
|||
* bei anderen Werten oder Weglassen: Zeitstempel des jüngsten Beitrags des Abschnitts wird benutzt. |
|||
Vergleiche die Vorlagenverwendung in [[Commons:Graphic Lab/Illustration workshop]]. |
|||
}} |
|||
|8=timeout |
|||
|8stat=optional |
|||
|8d = {{LangSwitch |
|||
|en=The parameter ''<code>timeout</code>'' specifies the number of days having to pass by to consider a section as “resolved” automatically, even if no {{t|Section resolved}} block was set. Archiving will be only proceeded, if the parameter is set and the specified period of time (''timeout'') has passed since the last comment (''note:'' with value <code>0</code> it gets inactive). The template {{t|DNAU}} is supported.<br /> |
|||
By setting this parameter you can get almost the same service as given by ''MiszaBot'' (see [[w:User:MiszaBot/Archive HowTo]]). In this case, it is no longer necessary to use this template and additional <code><nowiki>{{User:MiszaBot/config}}</nowiki></code>, which are processed by two different bots. Instead, only {{t|Autoarchive resolved section}} for [[User:SpBot|SpBot]] is needed. |
|||
|de=Der Parameter ''<code>timeout</code>'' gibt an, nach wie vielen Tagen ein Abschnitt ohne neue Beträge automatisch „resolved“ ist, auch wenn kein {{t|Section resolved}}-Baustein gesetzt wurde. Die Archivierung erfolgt nach Ablauf der Zeit nur, wenn dieser Parameter gesetzt wurde (und ungleich ''0'' ist). Die Vorlage {{t|DNAU}} (ähnlich der [[:de:Vorlage:Nicht archivieren]]) wird hierbei beachtet.<br /> |
|||
Mit dem Setzen des Parameters lässt sich das Verhalten von ''MiszaBot'' (siehe [[w:User:MiszaBot/Archive HowTo]]) teilweise erreichen. In diesem Fall ist es auch nicht mehr nötig, diese Vorlage und zusätzlich <code><nowiki>{{User:MiszaBot/config}}</nowiki></code> einzubinden, die von zwei verschiedenen Bots abgearbeitet werden, sondern nur noch {{t|Autoarchive resolved section}} für [[User:SpBot|SpBot]]. |
|||
}} |
|||
}}<!-- END {{TemplateBox}} --> |
|||
== {{Anchor|Archive variables}}{{LangSwitch |de=Variablen für den „Archive“-Parameter |en=“Archive” parameter variables}} == |
|||
{{Langswitch |
|||
|de=Folgende Variablen können für den <code>archive</code>-Parameter verwendet werden |
|||
|en=You can use the following variables in the <code>archive</code> parameter}}{{colon}} |
|||
{| class="wikitable" |
|||
! {{LangSwitch |de=Variable |en=variable}} || {{LangSwitch |de=Bedeutung |en=meaning}} |
|||
|- |
|||
|((year)) || {{LangSwitch |
|||
|de=Jahr, z. B. ''{{LOCALYEAR}}'' |
|||
|en=year, e.g. ''{{LOCALYEAR}}'' |
|||
}} |
|||
|- |
|||
|((month:long)) || {{LangSwitch |
|||
|de=vollständiger Monatsname, z. B. ''February'' |
|||
|en=full monthname, e.g. ''February'' |
|||
}} |
|||
|- |
|||
|((month:short)) || {{LangSwitch |
|||
|de=abgekürzter Monatsname, z. B. ''Feb'' |
|||
|en=short monthname, e.g. ''Feb'' |
|||
}} |
|||
|- |
|||
|((month:##)) || {{LangSwitch |
|||
|de=zweistellige Monatszahl, z. B. ''02'' |
|||
|en=month as two digits, e.g. ''02'' |
|||
}} |
|||
|- |
|||
|((week)) || {{LangSwitch |
|||
|de=Woche des Jahres als Zahl, z. B. ''4'' oder ''15'' (entsprechend [[:de:ISO 8601|ISO 8601]]) |
|||
|en=week date as a number, e.g. ''4'' or ''15'' (per [[:en:ISO8601#Week dates|ISO 8601]]) |
|||
}} |
|||
|- |
|||
|((week:##)) || {{LangSwitch |
|||
|de=Woche des Jahres als zweistellige Zahl, z. B. ''04'' oder ''15'' (entsprechend [[:de:ISO 8601|ISO 8601]]) |
|||
|en=week date as a two digits, e.g. ''04'' or ''15'' (per [[:en:ISO8601#Week dates|ISO 8601]]) |
|||
}} |
|||
|- |
|||
|((day:##)) || {{LangSwitch |
|||
|de=Tag des Monats als zweistellige Zahl, z. B. ''07'' oder ''31'' |
|||
|en=day of month as two digits, e.g. ''07'' or ''31'' |
|||
}} |
|||
|- |
|||
|((quarter)) || {{LangSwitch |
|||
|de=Quartal, z. B. ''3'' |
|||
|en=quarter, e.g. ''3'' |
|||
}} |
|||
|- |
|||
|((quarter:##)) || {{LangSwitch |
|||
|de=Quartal als zweistellige Zahl, z. B. ''03'' |
|||
|en=quarter as two digits, e.g. ''03'' |
|||
}} |
|||
|- |
|||
|((quarter:i)) || {{LangSwitch |
|||
|de=Quartal als römische Zahl in Minuskeln, z. B. ''iii'' oder ''iv'' |
|||
|en=quarter as lowercase Roman numerals, e.g. ''iii'' or ''iv'' |
|||
}} |
|||
|- |
|||
|((quarter:I)) || {{LangSwitch |
|||
|de=Quartal als römische Zahl in Majuskeln, z. B. ''III'' oder ''IV'' |
|||
|en=quarter as uppercase Roman numerals, e.g. ''III'' or ''IV'' |
|||
}} |
|||
|- |
|||
|((half-year)) || {{LangSwitch |
|||
|de=Halbjahr, z. B. ''2'' |
|||
|en=half-year, e.g. ''2'' |
|||
}} |
|||
|- |
|||
|((half-year:i)) || {{LangSwitch |
|||
|de=Halbjahr als römische Zahl in Minuskeln, z. B. ''ii'' |
|||
|en=half-year as lowercase Roman numeral, e.g. ''ii'' |
|||
}} |
|||
|- |
|||
|((half-year:I)) || {{LangSwitch |
|||
|de=Halbjahr als römische Zahl in Majuskeln, z. B. ''II'' |
|||
|en=half-year as uppercase Roman numeral, e.g. ''II'' |
|||
}} |
|||
|- |
|||
|((FULLPAGENAME)) || {{LangSwitch |
|||
|de=Voller Seitenname der aktuellen Seite (Namensraum + eigentlicher Seitenname). Dasselbe wie <code>[[:de:Hilfe:Variablen#Seitenabhängige Variablen|<nowiki>{{</nowiki>FULLPAGENAME<nowiki>}}</nowiki>]]</code>, aber mit runden Klammern. Verwende diese Variable, anstatt den Seitennamen fest einzutragen. |
|||
|en=The full page name (namespace + actual page) name of the current page. Same as <code>[[:en:Help:Magic words#Variables|<nowiki>{{</nowiki>FULLPAGENAME<nowiki>}}</nowiki>]]</code>, but with normal brackets. Use this instead of hard coding your page name. |
|||
}} |
|||
|} |
|||
{{Langswitch |de=''Beispiele'' |en=''Examples''}}{{colon}} |
|||
archive=((FULLPAGENAME))/Archive/((year))/((month:short)) |
|||
archive=Commons:Village pump/Archive/((year))/((month:##)) |
|||
== {{Anchor|Example}}{{LangSwitch|de=Beispiel|en=Example}} == |
|||
{{Langswitch |
|||
|de=Folgendes Beispiel ist von der Einstellung für die Seite der [[:de:Wikipedia:Redaktion Chemie|Wikipedia:Redaktion Chemie]] abgeleitet. Alle markierten Beiträge der Überschriftsebene 2 (also alle Überschriften mit <code>==</code>) werden sieben Tage nach Setzen des {{t|Section resolved}}-Bausteines ins Archiv verschoben. Das Archiv befindet sich unter [[:de:Wikipedia:Redaktion Chemie/Archiv|Wikipedia:Redaktion Chemie/Archiv]]. Eine Archivierung erfolgt also beispielsweise nach [[:de:Wikipedia:Redaktion Chemie/Archiv/2007/Januar|Wikipedia:Redaktion Chemie/Archiv/2007/Januar]], sofern der '''erste''' Beitrag im Abschnitt im ''Januar'' erstellt wurde. |
|||
|en=The following example is derived from the archiving setup of dewiki’s [[:de:Wikipedia:Redaktion Chemie|Wikipedia:Redaktion Chemie]]. All marked/tagged sections with level 2 (that is <code>==</code>) will be archived seven days after placement of a {{t|Section resolved}} block. The archive is at [[:de:Wikipedia:Redaktion Chemie/Archiv|Wikipedia:Redaktion Chemie/Archiv]]. The archiving will be done to [[:de:Wikipedia:Redaktion Chemie/Archiv/2007/Januar|Wikipedia:Redaktion Chemie/Archiv/2007/Januar]] if the '''first''' comment in this section was made in ''January''. |
|||
}} |
|||
<nowiki>{{</nowiki>Autoarchive resolved section |
|||
|age=7 |
|||
|archive='((FULLPAGENAME))/Archive/((year))' |
|||
|overview=<nowiki>[[{{FULLPAGENAME}}/Archive|Archive]]</nowiki> |
|||
<nowiki>}}</nowiki> |
|||
{{LangSwitch |
|||
|de=Das sieht dann so aus |
|||
|en=That will look like this |
|||
}}{{colon}} |
|||
{{Autoarchive resolved section |
|||
|age=7 |
|||
|archive='((FULLPAGENAME))/Archive/((year))' |
|||
|overview=[[{{FULLPAGENAME}}/Archive|Archive]] |
|||
}} |
|||
== {{Anchor|Signature format}}{{LangSwitch |de=Unterschriftenformat |en=Signature format}} == |
|||
{{Langswitch |
|||
|de=Der Datums- und Zeitteil der Unterschrift ist wichtig, um den Zeitstempel zu erkennen. Das Standardformat, wie es beispielsweise von Mediawiki bei Eingabe von <code><nowiki>~~~~</nowiki></code> oder <code><nowiki>~~~~~</nowiki></code> automatisch erzeugt wird, ist notwendig: ''{{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)'', auch mit abgekürztem Monatsnamen: ''{{CURRENTMONTHABBREV}}''. Das entspricht folgender Struktur mit [[:de:Hilfe:Variablen#Datums- und Zeitvariablen|Mediawikivariablen]]: <code><nowiki>{{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)</nowiki></code> (Monatskürzel: <code><nowiki>{{CURRENTMONTHABBREV}}</nowiki></code>). Bei direkter Verwendung müssen diese [[:de:Hilfe:Vorlagen#Vorlagen verwenden|substituiert]] werden (die <code><nowiki>{{LOCAL…}}</nowiki></code>-Varianten können ebenfalls genutzt werden). |
|||
Andere Formate werden nicht unterstützt. |
|||
|en=The date and time part of the signature is important for recognition of the timestamp. The default format specified by MediaWiki and automatically created, when <code><nowiki>~~~~</nowiki></code> or <code><nowiki>~~~~~</nowiki></code> is entered, is sufficient: ''{{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)'', also with abbreviated month: ''{{CURRENTMONTHABBREV}}''. This corresponds to the following structure with [[:en:Help:Magic words#Other variables by type|Mediawiki variables]]: <code><nowiki>{{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)</nowiki></code> (short month name: <code><nowiki>{{CURRENTMONTHABBREV}}</nowiki></code>. When directly entered these variables must be [[:en:Wikipedia:Substitution|substituted]] (the according <code><nowiki>{{LOCAL…}}</nowiki></code> variants can be used, as well). |
|||
Other formats are not supported. |
|||
}} |
|||
== {{Anchor|Error lists}}{{Langswitch |de=Fehlerlisten |en=Error lists}} == |
|||
{{LangSwitch |
|||
|de= |
|||
Diskussionsseiten, die Fehler in der Anwendung der Hauptvorlage oder in {{t|Section resolved}} aufweisen, werden in folgenden Listen und auf den entsprechenden Diskussionsseiten angezeigt: |
|||
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/error messages reported by the bot|vom Bot gemeldete Fehlermeldungen]] – bitte die letzte Zeile entfernen, wenn das Problem gelöst ist |
|||
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/parameter error|Parameterfehler in {{tlf|Section resolved}}]] |
|||
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/no age set|kein Alter gesetzt (Parameter <kbd>age</kbd>)]] |
|||
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/no archive set|kein Archivpfad gesetzt (Parameter <kbd>archive</kbd>)]] |
|||
;Infolisten |
|||
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/parameter timecompare set to 'resolved'|Parameter <kbd>timecompare</kbd> auf „resolved“ gesetzt]] |
|||
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/parameter timeout set|Parameter <kbd>timeout</kbd> gesetzt]] |
|||
|en= |
|||
Talk pages containing errors in their main template usage or in {{t|Section resolved}} are shown in the following lists and on the corresponding talk page. |
|||
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/error messages reported by the bot|error messages reported by the bot]] – please remove the last line after the problem is solved |
|||
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/parameter error|parameter error in {{tlf|Section resolved}}]] |
|||
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/no age set|no <kbd>age</kbd> set]] |
|||
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/no archive set|no <kbd>archive</kbd> set]] |
|||
;Informational lists |
|||
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/parameter timecompare set to 'resolved'|parameter <kbd>timecompare</kbd> set to “resolved”]] |
|||
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/parameter timeout set|parameter <kbd>timeout</kbd> set]] |
|||
}} |
|||
<includeonly> |
|||
[[Category:Archive templates|{{PAGENAME}}]] |
|||
[[Category:Bot command templates|{{PAGENAME}}]] |
|||
</includeonly> |
Revision as of 23:07, 20 September 2023
This template uses TemplateStyles: |
This is a documentation subpage for Template:Autoarchive resolved section. It contains usage information, categories, and other content that is not part of the original template page. |
Usage
{{Autoarchive resolved section
|age =
|archive =
|show =
|level =
|timecompare =
|timeout =
}}
SpBot archiving requires the use of either start-Section resolved-end or the timeout
parameter of this template (usual archiving like by MiszaBot).
It does not matter where the template {{Section resolved|…}}
is placed within the section. It will always refer to the last/previous heading of the section to be archived (see parameter level
).
The template relies on a certain time stamp format, for more see in Signature format.
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
age | The parameter age defines the required age of the template block {{Section resolved|…}} in days. After this amount of days the section will be archived. | empty | required | |
archive | Path to archive. You can use variables in your archive parameter as listed below.Path inclusion with ASCII apostrophes (') is not necessary, but allowed for historic reasons. | empty | required | |
overview | The parameter overview can be used to display a link to the location of the archive page. Example code: overview=[[Commons:Village pump/Archive]]/ results in“For the archive overview, see Commons:Village pump/Archive.” An alternative to this parameter is the use of template start-Archive box-end. | empty | optional | |
latest archive | The parameter latest archive can be used to display a link to the current archive. The archive parameter variables can be used. Example code: latest archive=[[Commons:Village pump/Archive/2011/02]] results in“The latest archive is located under Commons:Village pump/Archive/2011/02.” | empty | optional | |
show | The parameter show defines, whether the template should display anything or not: show=yes (default) or show=no . This parameter can be used, if the template is used on a page which has an own intro explaining the archiving parameters. | yes | optional | |
level | Parameter level defines which heading level should be archived. Deeper heading levels are treated as part of the specified level.
(hint: Count the equal signs) == talk page section level II ==
==== talk page section level IV ====
(Tipp: Zähle die Gleichheitszeichen) == Diskussionsüberschrift Ebene II ==
==== Diskussionsüberschrift Ebene IV ====
| 2 | optional | |
timecompare | The parameter timecompare specifies which timestamp should be used for distribution into the archives. In the parameter archive you can use variables referring to the date. timecompare defines which timestamp is used for archiving.
| empty | optional | |
timeout | The parameter timeout specifies the number of days having to pass by to consider a section as “resolved” automatically, even if no start-Section resolved-end block was set. Archiving will be only proceeded, if the parameter is set and the specified period of time (timeout) has passed since the last comment (note: with value 0 it gets inactive). The template start-DNAU-end is supported.By setting this parameter you can get almost the same service as given by MiszaBot (see w:User:MiszaBot/Archive HowTo). In this case, it is no longer necessary to use this template and additional {{User:MiszaBot/config}} , which are processed by two different bots. Instead, only start-Autoarchive resolved section-end for SpBot is needed. | empty | optional |
Additional information
The template is intended to be used in the following namespaces: all talk namespaces
The template is intended to be used by the following user groups: all users
Localization
To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation
" (xx
being the code of your language)
“Archive” parameter variables
You can use the following variables in the 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. 4 or 15 (per ISO 8601) |
((week:##)) | week date as a two digits, e.g. 04 or 15 (per ISO 8601) |
((day:##)) | day of month as two digits, e.g. 07 or 31 |
((quarter)) | quarter, e.g. 3 |
((quarter:##)) | quarter as two digits, e.g. 03 |
((quarter:i)) | quarter as lowercase Roman numerals, e.g. iii or iv |
((quarter:I)) | quarter as uppercase Roman numerals, e.g. III or IV |
((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 full page name (namespace + actual page) name of the current page. Same as {{FULLPAGENAME}} , but with normal brackets. Use this instead of hard coding your page name.
|
Examples:
archive=((FULLPAGENAME))/Archive/((year))/((month:short)) archive=Commons:Village pump/Archive/((year))/((month:##))
Example
The following example is derived from the archiving setup of dewiki’s Wikipedia:Redaktion Chemie. All marked/tagged sections with level 2 (that is ==
) will be archived seven days after placement of a start-Section resolved-end block. 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=[[{{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 is important for recognition of the timestamp. The default format specified by MediaWiki and automatically created, when ~~~~
or ~~~~~
is entered, is sufficient: 18:39, 25 August 2024 (UTC), also with abbreviated month: Aug. This corresponds to the following structure with Mediawiki variables: {{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
(short month name: {{CURRENTMONTHABBREV}}
. When directly entered these variables must be substituted (the according {{LOCAL…}}
variants can be used, as well).
Other formats are not supported.
Error lists
Talk pages containing errors in their main template usage or in start-Section resolved-end 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 {{Section resolved}}
- no age set
- no archive set
- Informational lists