Jump to content

Template:Autoarchive resolved section/doc: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
m using {{Archive link}}
update: MiszaBot inactive for years, ArchiverBot does the job; some template switches; partly translation changes
 
(46 intermediate revisions by 27 users not shown)
Line 1: Line 1:
{{Uses TemplateStyles|Template:Autoarchive resolved section/styles.css}}
{{TemplateBox
{{TemplateBox
|name=Autoarchive resolved section
|name=Autoarchive resolved section

|desc=[[File:Information icon.svg|20px|left|Attention]]{{LangSwitch
|desc= {{Langswitch
| de=Die Syntax gleicht im Wesentlichen der 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 nicht durch den [[User:MiszaBot|MiszaBot]], sondern durch [[User:SpBot|SpBot]] durchgeführt.
| en=The syntax is mostly similar to that of template [[:de:Vorlage:Autoarchiv-Erledigt]]. For the target (archive) only its current is valid. This type of archiving is done by [[User:SpBot|SpBot]] (not by [[User:MiszaBot|MiszaBot]]).
|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:ArchiverBot|ArchiverBot]])''</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:ArchiverBot|ArchiverBot]])''</small>.
}}
}}
|namespace=<!-- talks + queue -->
|namespace=talks<!-- talks + queue -->
|usergroup=all
|usergroup=all
|type=archive bot initialization template
|placement=
|i18n-method=switch
|usage-notes={{LangSwitch
|print=multi
|de=Die Verwendung der Vorlage funktioniert ausschließlich im Zusammenspiel mit der Vorlage [[Template:Section resolved]]. Die "normale" Archivierung durch [[User:MiszaBot|MiszaBot]] kann aber parallel dazu verwendet werden.


|usage-notes=
Es ist gleichgültig, wo der Baustein "Section resolved" steht. Er bezieht sich jeweils auf die vorangegangene Überschrift der zu archivierenden Überschriftsebene.
{{Langswitch
|en=SpBot archiving requires the use of either {{tl|Section resolved}} or the <code>timeout</code> parameter of this template (usual archiving like by [[User:ArchiverBot|ArchiverBot]]).

It does not matter where the template {{tlc|Section resolved|…}} is placed within the section. It will always refer to the 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]].

|de=Die Verwendung der Vorlage funktioniert im Zusammenspiel mit der Vorlage {{tl|Section resolved}}, kann aber auch wie die „normale“ Archivierung durch [[User:ArchiverBot|ArchiverBot]] verwendet werden (siehe Parameter <code>timeout</code>).

Es ist gleichgültig, wo der Baustein {{tlc|Section resolved|…}} 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 steht eine Ersteinrichtungshilfe zur Verfügung: [[Template:Autoarchive resolved section/usertalksetup]] (Beschreibung dort).
<!--
<!--
Es kann automatisch eine Liste mit den vorhandenen Archivseiten erstellt werden:
Es kann automatisch eine Liste mit den vorhandenen Archivseiten erstellt werden:
Line 20: Line 33:
* [[Vorlage:Archiv-Liste Quartale]]
* [[Vorlage:Archiv-Liste Quartale]]
-->
-->
}}<!-- end of usage notes -->
|en=The use of the template works only in combination with the [[Template:Section resolved]]. The "standard" archiving by [[User:MiszaBot|MiszaBot]] can be used in parallel.

It does not matter where the template "Section resolved" is placed. It will always refers to the last/previous heading of the section to be archived.

To quickly use a standard setup to archive your user talk page, see [[Template:Autoarchive resolved section/usertalksetup]].
}}
|type=archive bot initialization template
|example=
|i18n-method=switch
|i18n-desc=
|i18n-mediawiki-msg=
|seealso=
|setscats=
|lines=multi
|shorthand=
|relieson=


|1=age
|1=age
|1stat=required
|1stat=required
|1d={{LangSwitch
|1d = {{LangSwitch
|de=Bei Verwendung dieser Vorlage gibt der Parameter "<code>age</code>" das Alter des Bausteins "Section resolved" in Tagen an. Nach dieser Zeit wird der entsprechende Abschnitt archiviert.
|en=The parameter ''<code>age</code>'' defines the required age of the template block {{tlc|Section resolved|…}} in days. After this amount of days the section will be archived.
|en=Parameter "<code>age</code>" defines the required age of the the template "Section resolved" in days. After this amount of days the section will be archived.
|de=Der Parameter ''<code>age</code>'' gibt das Alter des Bausteins {{tlc|Section resolved|…}} in Tagen an. Nach dieser Zeit wird der entsprechende Abschnitt archiviert.
}}
}}


|2=archive
|2=archive
|2stat=required
|2stat=required
|2d = {{LangSwitch
|2d=You can use variables in your <code>archive</code>-parameter as [[#.22Archive.22_parameter_variables|listed below]].
|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>
}}


Example: <code>archive=Commons:Village pump/Archive/((year))((month:short))</code>
|3=overview
|3=overview
|3stat=optional-
|3stat=optional-
|3d={{LangSwitch
|3d = {{LangSwitch
|de=Mit dem Parameter "<code><nowiki>overview</nowiki></code>" lässt sich ein Hinweis geben, wo sich die Archivseite befindet. So wird mit <code><nowiki>overview=[[Wikipedia:Redaktion Chemie/Archiv]]</nowiki></code> im Baustein der folgende Text generiert: Die Archivübersicht befindet sich unter '''[[:de:Wikipedia:Redaktion Chemie/Archiv|Wikipedia:Redaktion Chemie/Archiv]]'''. Eine Alternative zu diesem Parameter ist die Verwendung von [[Template:Archive box]].
|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 {{tl|Archive box}}.</small>
|en=The parameter "<code><nowiki>overview</nowiki></code>" can be used to display a link to the location of the archive page. Example code: <code><nowiki>overview=[[Wikipedia:Redaktion Chemie/Archiv]]</nowiki></code> Results in: For the archive overview, see '''[[:de:Wikipedia:Redaktion Chemie/Archiv|Wikipedia:Redaktion Chemie/Archiv]]'''. An alternative to this parameter is the use of [[Template:Archive box]].
|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 {{tl|Archive box}}.</small>
}}
}}

|4=latest archive
|4=latest archive
|4stat=optional-
|4stat=optional-
|4d={{LangSwitch
|4d = {{LangSwitch
|de=Mit dem Parameter "<code><nowiki>latest archive</nowiki></code>" kann man einen Verweis auf die aktuelle Archivseite einfügen. Mit <code><nowiki>latest archive=[[Commons:Forum/Archiv/2011/October]]</nowiki></code> der folgende Text erzeugt: Das aktuelle Archiv befindet sich unter '''[[Commons:Forum/Archiv/2011/October]]'''.
|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]]'''.
|en=The parameter "<code><nowiki>latest archive</nowiki></code>" can be used to display a link to the current archive. Example code: <code><nowiki>latest archive=[[Commons:Forum/Archiv/2011/October]]</nowiki></code> Results in: The latest archive is located under '''[[Commons:Forum/Archiv/2011/October]]'''.
|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
|5=show
|5stat=optional
|5stat=optional
|5def=yes
|5def=yes
|5d={{LangSwitch
|5d = {{LangSwitch
|de=Der Parameter "<code><nowiki>show</nowiki></code>" gibt an, ob der Bausteintext angezeigt (<code><nowiki>show=yes</nowiki></code> oder <code><nowiki>show=no</nowiki></code>) werden soll. Dies ist sinnvoll, wenn er auf einer Seite verwendet wird, auf der ohnehin im Kopf steht wohin und wie archiviert wird. Standardmäßig wird der Text angezeigt.
|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.
|en=The parameter "<code><nowiki>show</nowiki></code>" defines if the template should display anything or not: <code><nowiki>show=yes</nowiki></code> 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
|6=level
|6stat=optional
|6def=2
|6def=2
|6d = {{LangSwitch
|6stat=optional
|en=Parameter ''<code>level</code>'' defines which heading level should be archived. Deeper heading levels are treated as part of the specified level.
|6d={{LangSwitch
|de=Der Parameter "<code><nowiki>level</nowiki></code>" gibt an, welche Überschriftsebene archiviert werden soll. Tiefere Überschriftsebenen werden als Teil der Ebene angesehen, die dem Parameter übergeben wurde.

;Beispiele:
== Diskussionsüberschrift Ebene II ==
:Eine solche Überschrift gehört zur Ebene 2
==== Diskussionsüberschrift Ebene IV ====
:Diese Überschrift gehört zur Ebene 4.
|en=Parameter "<code><nowiki>level</nowiki></code>" defines which heading level should be archived. Deeper heading levels are treated as part of the specified level.


;Examples:
;Examples:
<small>(''hint:'' Count the equal signs)</small>
== talk page section level II ==
== talk page section level II ==
:Such a heading is level 2.
:Such a heading is level 2.
==== talk page section level IV ====
==== talk page section level IV ====
:Such a heading is level 4.
: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
|7=timecompare
|7def=''empty''
|7stat=optional
|7stat=optional
|7d={{LangSwitch
|7d = {{LangSwitch
|en=The parameter ''<code>timecompare</code>'' specifies which timestamp should be used for distribution into the archives. In the parameter ''<code>archive</code>'' you can use variables referring to the date. ''<code>timecompare</code>'' defines which timestamp is used for archiving.
|de=Dieser Parameter gibt an nach welchem Zeitstempel der Bot die Einsortierung in Archive vornehmen soll. Im Parameter ''archive'' können Variablen in Bezug auf das Datum benutzt werden. "<code><nowiki>timecompare</nowiki></code>" (in de:WP "Zeitvergleich") definiert, welcher Zeitstempel dafür herangezogen wird.
* <code><nowiki>timecompare = resolved</nowiki></code>: Zeitstempel im {{Tl|Section resolved}}-Baustein wird benutzt.
* <code>timecompare = resolved</code>: timestamp given by {{tlf|Section resolved}} block
* Andere Werte oder bei Weglassen: jüngster Beitrag des Abschnitts wird benutzt.
Beispielseite: [[:de:Wikipedia Diskussion:Hauptseite/Artikel des Tages/Vorschläge]]
|en=This parameter specifies which timestamp should be used for distribution into the archives. In the parameter "<code><nowiki>archive</nowiki></code>" you can use variables refering to the date. "<code><nowiki>timecompare</nowiki></code>" defines which timestamp is used for this parameter "<code><nowiki>archive</nowiki></code>".
* <code><nowiki>timecompare = resolved</nowiki></code>: Timestamp given by {{Tl|Section resolved}}
* Any other value or empty: the latest timestamp of the whole section
* Any other value or empty: the latest timestamp of the whole section
Compare template usage in [[Commons:Graphic Lab/Illustration workshop]].
Example: [[:de:Wikipedia Diskussion:Hauptseite/Artikel des Tages/Vorschläge]] <small>(sorry, this is the only known page yet)</small>
|de=Der Parameter ''<code>timecompare</code>'' gibt an, nach welchem Zeitstempel der Bot die Einsortierung in Archive vornehmen soll. Im Parameter ''<code>archive</code>'' 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 {{tlf|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 after how many days a section without new amounts is automatically "resolved", even if no {{tlf|Section resolved}} block has been set. Archiving only takes place after the time has elapsed if this parameter has been set (and is not equal to ''0''). The template {{tl|DNAU}} (similar to [[:en:Template:Do not archive]]) is supported here.<br />
By setting this parameter, the behavior of ''ArchiverBot'' (see also [[:en:User:MiszaBot/Archive HowTo]]) can be partially achieved. In this case, it is no longer necessary to include the current template and additionally {{tlc|User:MiszaBot/config}}, which are processed by two different bots, but only {{tlc|Autoarchive resolved section}} for [[User:SpBot|SpBot]].
|de=Der Parameter ''<code>timeout</code>'' gibt an, nach wie vielen Tagen ein Abschnitt ohne neue Beträge automatisch „resolved“ ist, auch wenn kein {{tlf|Section resolved}}-Baustein gesetzt wurde. Die Archivierung erfolgt nach Ablauf der Zeit nur, wenn dieser Parameter gesetzt wurde (und ungleich ''0'' ist). Die Vorlage {{tl|DNAU}} (ähnlich der [[:de:Vorlage:Nicht archivieren]]) wird hierbei beachtet.<br />
Mit dem Setzen des Parameters lässt sich das Verhalten von ''ArchiverBot'' (siehe auch [[:en:User:MiszaBot/Archive HowTo]]) teilweise erreichen. In diesem Fall ist es auch nicht mehr nötig, die aktuelle Vorlage und zusätzlich {{tlc|User:MiszaBot/config}} einzubinden, die von zwei verschiedenen Bots abgearbeitet werden, sondern nur noch {{tlc|Autoarchive resolved section}} für [[User:SpBot|SpBot]].
}}
}}<!-- END {{TemplateBox}} -->
}}<!-- END {{TemplateBox}} -->


== "Archive" parameter variables ==
== {{Anchor|Archive variables}}{{LangSwitch |de=Variablen für den „Archive“-Parameter |en=“Archive” parameter variables}} ==
{{Langswitch
You can use the following variables in your <code>archive</code>-parameter:
|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"
{| class="wikitable"
! variable || meaning
! {{LangSwitch |de=Variable |en=variable}} || {{LangSwitch |de=Bedeutung |en=meaning}}
|-
|-
|((year)) || year e.g. ''{{LOCALYEAR}}''
|((year)) || {{LangSwitch
|de=Jahr, z.&nbsp;B. ''{{LOCALYEAR}}''
|en=year, e.g. ''{{LOCALYEAR}}''
}}
|-
|-
|((month:long)) || full monthname e.g. ''February''
|((month:long)) || {{LangSwitch
|de=vollständiger Monatsname, z.&nbsp;B. ''February''
|en=full monthname, e.g. ''February''
}}
|-
|-
|((month:short)) || short monthname e.g. ''Feb''
|((month:short)) || {{LangSwitch
|de=abgekürzter Monatsname, z.&nbsp;B. ''Feb''
|en=short monthname, e.g. ''Feb''
}}
|-
|-
|((month:##)) || month as two digits e.g. ''02''
|((month:##)) || {{LangSwitch
|de=zweistellige Monatszahl, z.&nbsp;B. ''02''
|en=month as two digits, e.g. ''02''
}}
|-
|-
|((week)) || {{LangSwitch
|((week)) || week date as a number e.g. ''15'', ''4'' (per [[:en:ISO_8601#Week_dates|ISO 8601]]/[[:de:DIN 1355-1|DIN 1355-1]])
|de=Woche des Jahres als Zahl, z.&nbsp;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
|((week:##)) || week date as a two digits e.g. ''15'', ''04'' (per [[:en:ISO_8601#Week_dates|ISO 8601]]/[[:de:DIN 1355-1|DIN 1355-1]])
|de=Woche des Jahres als zweistellige Zahl, z.&nbsp;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:##)) || day of month as two digits e.g. ''31'', ''07''
|((day:##)) || {{LangSwitch
|de=Tag des Monats als zweistellige Zahl, z.&nbsp;B. ''07'' oder ''31''
|en=day of month as two digits, e.g. ''07'' or ''31''
}}
|-
|-
|((quarter)) || quarter e.g. ''3''
|((quarter)) || {{LangSwitch
|de=Quartal, z.&nbsp;B. ''3''
|en=quarter, e.g. ''3''
}}
|-
|-
|((quarter:##)) || quarter as two digits e.g. ''03''
|((quarter:##)) || {{LangSwitch
|de=Quartal als zweistellige Zahl, z.&nbsp;B. ''03''
|en=quarter as two digits, e.g. ''03''
}}
|-
|-
|((quarter:i)) || quarter as lowercase Roman numerals e.g. ''iii''
|((quarter:i)) || {{LangSwitch
|de=Quartal als römische Zahl in Minuskeln, z.&nbsp;B. ''iii'' oder ''iv''
|en=quarter as lowercase Roman numerals, e.g. ''iii'' or ''iv''
}}
|-
|-
|((quarter:I)) || quarter as uppercase Roman numerals e.g. ''III''
|((quarter:I)) || {{LangSwitch
|de=Quartal als römische Zahl in Majuskeln, z.&nbsp;B. ''III'' oder ''IV''
|en=quarter as uppercase Roman numerals, e.g. ''III'' or ''IV''
}}
|-
|-
|((half-year)) || half-year e.g. ''2''
|((half-year)) || {{LangSwitch
|de=Halbjahr, z.&nbsp;B. ''2''
|en=half-year, e.g. ''2''
}}
|-
|-
|((half-year:i)) || half-year as lowercase Roman numeral e.g. ''ii''
|((half-year:i)) || {{LangSwitch
|de=Halbjahr als römische Zahl in Minuskeln, z.&nbsp;B. ''ii''
|en=half-year as lowercase Roman numeral, e.g. ''ii''
}}
|-
|-
|((half-year:I)) || half-year as uppercase Roman numeral e.g. ''II''
|((half-year:I)) || {{LangSwitch
|de=Halbjahr als römische Zahl in Majuskeln, z.&nbsp;B. ''II''
|en=half-year as uppercase Roman numeral, e.g. ''II''
}}
|-
|-
|((FULLPAGENAME)) || {{LangSwitch
|((FULLPAGENAME)) || The namespace + page name of the current page. Same as <code><nowiki>{{</nowiki></code><code>[[:en:Help:Variable#Variables|FULLPAGENAME]]}}</code>, but with normal brackets.
|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.
|-
}}
|((headline)) || ''section headline''
|-
|((headline-NSD)) || -->
|}
|}
Example: <code>archive=Commons:Village pump/Archive/((year))((month:short))</code>


{{Langswitch |de=''Beispiele'' |en=''Examples''}}{{colon}}
== {{LangSwitch|de=Beispiel|en=Example}} ==
archive=((FULLPAGENAME))/Archive/((year))/((month:short))
''{{int:seealso}}:'' [[Template:Autoarchive resolved section/usertalksetup]]
archive=Commons:Village pump/Archive/((year))/((month:##))


== {{Anchor|Example}}{{LangSwitch|de=Beispiel|en=Example}} ==
{{LangSwitch

|de=Folgendes Beispiel ist der [[:de:Wikipedia:Redaktion Chemie|Wikipedia:Redaktion Chemie]] entnommen. Alle markierten Beiträge der Überschriftsebene 2 (also alle Überschriften mit <code>==</code>) werden sieben Tage nach Setzen der [[Template:Section resolved]] 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.
{{Langswitch
|en=The following example is derived from the archiving setup of [[: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 [[Template:Section resolved]]. 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''.
|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 {{tlf|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 {{tlf|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
<nowiki>{{</nowiki>Autoarchive resolved section
|age=7
|age=7
|archive='((FULLPAGENAME))/archive/((year))'
|archive='((FULLPAGENAME))/Archive/((year))'
|overview=<nowiki>[[Special:PrefixIndex/{{subst:FULLPAGENAME}}/archiv|archive]]</nowiki>
|overview=<nowiki>[[{{FULLPAGENAME}}/Archive|Archive]]</nowiki>
|show=yes
|level=2
<nowiki>}}</nowiki>
<nowiki>}}</nowiki>
{{LangSwitch
{{LangSwitch
|de=Das sieht dann so aus:
|de=Das sieht dann so aus
|en=That will look similarly to:
|en=That will look like this
}}{{colon}}
{{Autoarchive resolved section
|age=7
|archive='((FULLPAGENAME))/Archive/((year))'
|overview=[[{{FULLPAGENAME}}/Archive|Archive]]
}}
}}
<div id="autoarchiv-erledigt-baustein" style="margin-bottom:0.4em; padding:0; border: solid 1px;">
{|
| style="padding:2px; width:34px;" | [[File:File.svg|30px|center]]
| [[User:SpBot|SpBot]] [[{{Archive link}}|archives]] all sections tagged with {{Tlx|Section resolved|2=1=&#x7e;&#x7e;&#x7e;&#x7e;}} after 7 days. For the archive overview, see '''Archive/'''. The latest archive is located at '''Archive/2013'''.
|}</div>


== Signature format ==
== {{Anchor|Signature format}}{{LangSwitch |de=Unterschriftenformat |en=Signature format}} ==
{{Langswitch
The date and time part of the signature are important for recognition of the timestamp. The default format specified by MediwWiki is sufficient (''11:55, {{LOCALDAY}}. {{LOCALMONTHABBREV}} {{LOCALYEAR}} (UTC)''). It corresponds to the following structure:
|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).
<nowiki>{{subst:LOCALTIME}}, {{subst:LOCALDAY}}. {{subst:LOCALMONTHABBREV}} {{subst:LOCALYEAR}} (UTC)</nowiki>

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.
Other formats are not supported.
}}


== Error lists ==
== {{Anchor|Error lists}}{{Langswitch |de=Fehlerlisten |en=Error lists}} ==
{{LangSwitch
Talk pages containing errors in their main templates or {{Tl|Section resolved}} are shown in the following lists and on the corresponding talk page.
|en=
* [[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
''Talk pages'' containing errors in their main template usage or in {{tl|Section resolved}} are shown in the following lists and on the corresponding talk page.
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/parameter error|parameter error]] in [[Template:Section resolved]]
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/no age set|no age set]]
* [[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/no archive set|no archive set]]
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/parameter error|parameter error in {{tlf|Section resolved}}]]
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/no age set|no <code>age</code> set]]
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/no archive set|no <code>archive</code> set]]

''Informational lists:''
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/parameter timecompare set to 'resolved'|parameter <code>timecompare</code> set to “resolved”]]
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/parameter timeout set|parameter <code>timeout</code> set]]

|de=
''Diskussionsseiten'', die Fehler in der Anwendung der Hauptvorlage oder in {{tl|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 <code>age</code>)]]
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/no archive set|kein Archivpfad gesetzt (Parameter <code>archive</code>)]]

''Infolisten:''
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/parameter timecompare set to 'resolved'|Parameter <code>timecompare</code> auf „resolved“ gesetzt]]
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/parameter timeout set|Parameter <code>timeout</code> gesetzt]]
}}
<includeonly>
<includeonly>
[[Category:Archival templates|{{PAGENAME}}]]
[[Category:Archive templates|{{PAGENAME}}]]
[[Category:Bot command templates|{{PAGENAME}}]]
[[Category:Bot command templates|{{PAGENAME}}]]
[[de:Vorlage:Autoarchiv-Erledigt]]
</includeonly>
</includeonly>

Latest revision as of 00:59, 24 April 2024

Template for automatic archiving.
Attention
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 SpBot (not by ArchiverBot).

Usage

{{Autoarchive resolved section
 |age =
 |archive =
 |show =
 |level =
 |timecompare =
 |timeout =
}}

SpBot archiving requires the use of either {{Section resolved}} or the timeout parameter of this template (usual archiving like by ArchiverBot).

It does not matter where the template {{Section resolved|…}} is placed within the section. It will always refer to the 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

ParameterDescriptionDefaultStatus
ageThe parameter age defines the required age of the template block {{Section resolved|…}} in days. After this amount of days the section will be archived.emptyrequired
archivePath 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.
emptyrequired
overviewThe 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 {{Archive box}}.
emptyoptional
latest archiveThe 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.”
emptyoptional
showThe 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.yesoptional
levelParameter level defines which heading level should be archived. Deeper heading levels are treated as part of the specified level.
Examples

(hint: Count the equal signs)

== talk page section level II ==
Such a heading is level 2.
==== talk page section level IV ====
Such a heading is level 4.
Beispiele

(Tipp: Zähle die Gleichheitszeichen)

== Diskussionsüberschrift Ebene II ==
Eine solche Überschrift gehört zur Ebene 2
==== Diskussionsüberschrift Ebene IV ====
Diese Überschrift gehört zur Ebene 4.
2optional
timecompareThe 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.
  • timecompare = resolved: timestamp given by {{Section resolved}} block
  • Any other value or empty: the latest timestamp of the whole section
Compare template usage in Commons:Graphic Lab/Illustration workshop.
emptyoptional
timeoutThe parameter timeout specifies after how many days a section without new amounts is automatically "resolved", even if no {{Section resolved}} block has been set. Archiving only takes place after the time has elapsed if this parameter has been set (and is not equal to 0). The template {{DNAU}} (similar to en:Template:Do not archive) is supported here.
By setting this parameter, the behavior of ArchiverBot (see also en:User:MiszaBot/Archive HowTo) can be partially achieved. In this case, it is no longer necessary to include the current template and additionally {{User:MiszaBot/config}}, which are processed by two different bots, but only {{Autoarchive resolved section}} for SpBot.
emptyoptional

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 {{Section resolved}} 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: 20:03, 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 {{Section resolved}} are shown in the following lists and on the corresponding talk page.

Informational lists: