Jump to content

Template:Autoarchive resolved section/doc: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
HuukOr (talk | contribs)
Fixed typo, added content
Tags: Reverted Mobile edit Mobile web edit
m Reverted changes by HuukOr (talk) to last version by Tacsipacsi
Tag: Rollback
Line 1: Line 1:
{Uses |Template:Archivize resolved section/styles.css}
{{Uses TemplateStyles|Template:Autoarchive resolved section/styles.css}}
{{TemplateBox
{
|name= resolved section
|name=Autoarchive resolved section


|= {{
|desc= {{Langswitch
|en = <span style="padding-right:">Template for automatic delete 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
|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 <small>''(nicht durch den [:|]])''</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 -->
|namespace=talks<!-- talks + queue -->
|=all
|usergroup=all
|type=archive bot initialization template
|type=archive bot initialization template
|=switch
|i18n-method=switch
|print=multi
|print=multi


|usage-notes=
|usage-notes=
{{Langswitch
{{
|de=Die Verwendung der Vorlage funktioniert im mit der Vorlage {{t|Section resolved}}, kann aber auch wie die „normale“ Archivierung durch verwendet werden (siehe Parameter <code>timeout</code>).
|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 , wo der Baustein <code>{{|Section resolved|…}}</code> innerhalb des Abschnitts steht. Er bezieht sich jeweils auf die Überschrift der zu (siehe Parameter <code>level</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 angewiesen, mehr dazu in [[#Signature format|]].
Die Vorlage ist auf ein bestimmtes Format des Zeitstempels angewiesen, mehr dazu in [[#Signature format|Unterschriftenformat]].


<!--
<!--
Es kann automatisch eine Liste mit den vorhandenen erstellt werden:
Es kann automatisch eine Liste mit den vorhandenen Archivseiten erstellt werden:
* [[Vorlage:Archiv-Liste Jahre]]
|en= archiving requires the use of either {{t|Section resolved}} or the <code>timeout</code> parameter of this template .
* [[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>{{|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>).
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]].
The template relies on a certain time stamp format, for more see in [[#Signature format|Signature format]].
Line 33: Line 37:
|1=age
|1=age
|1stat=required
|1stat=required
|1d = {{
|1d = {{LangSwitch
|en=The parameter ''<code>age</code>'' defines the required age of the template block <code>{{|Section resolved|…}}</code> in days. After this amount of days the section will be archived.
|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 <code>{{|Section resolved|…}}</code> in Tagen an. Nach dieser Zeit wird der entsprechende Abschnitt .
|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
|2=archive
|2stat=required
|2stat=required
|2d = {{
|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>
|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 (') einzuschließen ist nicht notwendig, aber aus historischen Gründen erlaubt.</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-
|3stat=optional-
|3d = {{LangSwitch
|
The parameter ''<code>overview</code>'' can be used to display a link to the location of the archive page. Example code: <code><>overview=[[Commons:Village pump/Archive]]/</></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>
|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 befindet. So wird mit <code><>overview=[[Commons:Forum/Archiv]]</></code> im Baustein der folgende Text generiert:<br />„Die befindet sich unter '''[[Commons:Forum/Archiv]]'''.“<br /><small>Eine Alternative zu diesem Parameter ist die Verwendung der Vorlage {{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
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><>latest archive=[[Commons:Village pump/Archive/2011/02]]</></code> results in<br />“The latest archive is located under '''[[Commons:Village pump/Archive/2011/02]]'''.”
|6stat=optional
|de=Mit dem Parameter ''<code>latest archive</code>'' kann man einen Verweis auf die aktuelle einfügen. Archive variables|Variablen für den <code>archive</code>-Parameter]] können verwendet werden. Mit <code><>latest archive=[[Commons:Forum/Archiv/2011/October]]</></code> wird der folgende Text erzeugt:<br />„Das aktuelle Archiv befindet sich unter The parameter ''<code>show</code>'' defines, whether the template should display anything or not: <code><>show=yes</></code> (default) or <code><>show=no</></code>. This parameter can be used, if the template is used on a page which has an own intro explaining the archiving parameters.
|6def=2
|de=Der Parameter ''<code>show</code>'' gibt an, ob der angezeigt werden soll (<code><>show=yes</></code>, Standard) oder nicht (<code><>show=no</></code>). Dies ist , wenn er auf einer Seite verwendet wird, auf der ohnehin im Kopf steht, wohin und wie archiviert wird.
|6d = {{LangSwitch
Parameter ''<code>level</code>'' defines which heading level should be archived. Deeper heading levels are treated as part of the specified level.
|en=Parameter ''<code>level</code>'' defines which heading level should be archived. Deeper heading levels are treated as part of the specified level.


;Examples:
;Examples:
(''hint:'' Count the equal signs
<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.
Line 66: Line 84:
:Such a heading is level 4.
:Such a heading is level 4.


|de=Der Parameter ''<code>level</code>'' gibt an, welche archiviert werden soll. Tiefere werden als Teil der Ebene angesehen, die dem Parameter wurde.
|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:
;Beispiele:
<small>(''Tipp:'' Zähle die )</small>
<small>(''Tipp:'' Zähle die Gleichheitszeichen)</small>
= Ebene II =
== Diskussionsüberschrift Ebene II ==
:Eine solche Überschrift gehört zur
:Eine solche Überschrift gehört zur Ebene 2
==== Diskussionsüberschrift Ebene IV ====
:Diese Überschrift gehört zur Ebene 4.The parameter ''<code></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></code>'' defines which timestamp is used for archiving.
: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> = resolved</code>: timestamp given by {{t|Section resolved}} block
* <code>timecompare = resolved</code>: timestamp given by {{t|Section resolved}} block
* 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]].
Compare template usage in [[Commons:Graphic Lab/Illustration workshop]].
|de=Der Parameter ''<code></code>'' gibt an, nach welchem der Bot die in Archive vornehmen soll. Im Parameter ''<>archive</>'' können Variablen in Bezug auf das Datum benutzt werden. ''<code></code>'' definiert, welcher für das Archivieren herangezogen wird.
|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> = resolved</code>: im {{t|Section resolved}}-Baustein wird benutzt.
* <code>timecompare = resolved</code>: Zeitstempel im {{t|Section resolved}}-Baustein wird benutzt.
* bei anderen Werten oder Weglassen: des jüngsten Beitrags des Abschnitts wird benutzt.
* bei anderen Werten oder Weglassen: Zeitstempel des jüngsten Beitrags des Abschnitts wird benutzt.
Vergleiche die in [[Commons:Graphic Lab/Illustration workshop]].
Vergleiche die Vorlagenverwendung in [[Commons:Graphic Lab/Illustration workshop]].
}}
}}


|8=timeout
|8=timeout
|8stat=optional
|8stat=optional
|8d = {{
|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|}} is supported.<br />
|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 '''' (see [[w:User:MiszaBot/Archive ]]). In this case, it is no longer necessary to use this template and additional <code><>{{User:MiszaBot/config}}</></code>, which are processed by two different bots. Instead, only {{t| resolved section}} for [Usert is needed.
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|}} (ähnlich der [[:de:Vorlage:Nicht archivieren]]) wird hierbei beachtet.<br />
|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 '''' (siehe [[w:User:MiszaBot/Archive ]]) erreichen. In diesem Fall ist es auch nicht mehr nötig, diese Vorlage und zusätzlich <code><>{{User:MiszaBot/config}}</></code> einzubinden, die von zwei verschiedenen Bots abgearbeitet werden, sondern nur noch {{t| resolved section}} für [User:SpBot|
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 {{}} -->
}}<!-- END {{TemplateBox}} -->


== {{Anchor|Archive variables}}{{ |de=Variablen für den „Archive“-Parameter |en=“Archive” parameter variables}} ==
== {{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
|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}}
|en=You can use the following variables in the <code>archive</code> parameter}}{{colon}}
{| class=""
{| class="wikitable"
! {{ |de=Variable |en=variable}} || {{ |de=Bedeutung |en=meaning}}
! {{LangSwitch |de=Variable |en=variable}} || {{LangSwitch |de=Bedeutung |en=meaning}}
|-
|-
|((year)) || {{
|((year)) || {{LangSwitch
|de=Jahr, z.&nbsp;B. ''{{}}''
|de=Jahr, z.&nbsp;B. ''{{LOCALYEAR}}''
|en=year, e.g. ''{{}}''
|en=year, e.g. ''{{LOCALYEAR}}''
}}
}}
|-
|-
|((month:long)) || {{
|((month:long)) || {{LangSwitch
|de=vollständiger , z.&nbsp;B. ''February''
|de=vollständiger Monatsname, z.&nbsp;B. ''February''
|en=full , e.g. ''February''
|en=full monthname, e.g. ''February''
}}
}}
|-
|-
|((month:short)) || {{
|((month:short)) || {{LangSwitch
|de= , z.&nbsp;B. ''Feb''
|de=abgekürzter Monatsname, z.&nbsp;B. ''Feb''
|en=short , e.g. ''Feb''
|en=short monthname, e.g. ''Feb''
}}
}}
|-
|-
|((month:##)) || {{
|((month:##)) || {{LangSwitch
|de=zweistellige , z.&nbsp;B. ''02''
|de=zweistellige Monatszahl, z.&nbsp;B. ''02''
|en=month as two digits, e.g. ''02''
|en=month as two digits, e.g. ''02''
}}
}}
|-
|-
|((week)) || {{
|((week)) || {{LangSwitch
|de=Woche des Jahres als Zahl, z.&nbsp;B. ''4'' oder ''15'' (entsprechend [[:de:ISO 8601|ISO 8601]])
|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]])
|en=week date as a number, e.g. ''4'' or ''15'' (per [[:en:ISO8601#Week dates|ISO 8601]])
}}
}}
|-
|-
|((week:##)) || {{
|((week:##)) || {{LangSwitch
|de=Woche des Jahres als zweistellige Zahl, z.&nbsp;B. ''04'' oder ''15'' (entsprechend [[:de:ISO 8601|ISO 8601]])
|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]])
|en=week date as a two digits, e.g. ''04'' or ''15'' (per [[:en:ISO8601#Week dates|ISO 8601]])
}}
}}
|-
|-
|((day:##)) || {{
|((day:##)) || {{LangSwitch
|de=Tag des Monats als zweistellige Zahl, z.&nbsp;B. ''07'' oder ''31''
|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''
|en=day of month as two digits, e.g. ''07'' or ''31''
}}
}}
|-
|-
|((quarter)) || {{
|((quarter)) || {{LangSwitch
|de=Quartal, z.&nbsp;B. ''3''
|de=Quartal, z.&nbsp;B. ''3''
|en=quarter, e.g. ''3''
|en=quarter, e.g. ''3''
}}
}}
|-
|-
|((quarter:##)) || {{
|((quarter:##)) || {{LangSwitch
|de=Quartal als zweistellige Zahl, z.&nbsp;B. ''03''
|de=Quartal als zweistellige Zahl, z.&nbsp;B. ''03''
|en=quarter as two digits, e.g. ''03''
|en=quarter as two digits, e.g. ''03''
}}
}}
|-
|-
|((quarter:i)) || {{
|((quarter:i)) || {{LangSwitch
|de=Quartal als römische Zahl in , z.&nbsp;B. '''' oder ''iv''
|de=Quartal als römische Zahl in Minuskeln, z.&nbsp;B. ''iii'' oder ''iv''
|en=quarter as lowercase Roman numerals, e.g. '''' or ''iv''
|en=quarter as lowercase Roman numerals, e.g. ''iii'' or ''iv''
}}
}}
|-
|-
|((quarter:I)) || {{
|((quarter:I)) || {{LangSwitch
|de=Quartal als römische Zahl in , z.&nbsp;B. ''III'' oder ''IV''
|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''
|en=quarter as uppercase Roman numerals, e.g. ''III'' or ''IV''
}}
}}
|-
|-
|((half-year)) || {{
|((half-year)) || {{LangSwitch
|de=, z.&nbsp;B. ''2''
|de=Halbjahr, z.&nbsp;B. ''2''
|en=half-year, e.g. ''2''
|en=half-year, e.g. ''2''
}}
}}
|-
|-
|((half-year:i)) || {{
|((half-year:i)) || {{LangSwitch
|de= als römische Zahl in , z.&nbsp;B. ''ii''
|de=Halbjahr als römische Zahl in Minuskeln, z.&nbsp;B. ''ii''
|en=half-year as lowercase Roman numeral, e.g. ''ii''
|en=half-year as lowercase Roman numeral, e.g. ''ii''
}}
}}
|-
|-
|((half-year:I)) || {{
|((half-year:I)) || {{LangSwitch
|de= als römische Zahl in , z.&nbsp;B. ''II''
|de=Halbjahr als römische Zahl in Majuskeln, z.&nbsp;B. ''II''
|en=half-year as uppercase Roman numeral, e.g. ''II''
|en=half-year as uppercase Roman numeral, e.g. ''II''
}}
}}
|-
|-
|(()) || {{
|((FULLPAGENAME)) || {{LangSwitch
|de=Voller der aktuellen Seite ( + eigentlicher ). Dasselbe wie <code>[[:de:Hilfe:Variablen# Variablen|<>{{</><>}}</>]]</code>, aber mit runden Klammern. Verwende diese Variable, anstatt den fest einzutragen.
|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|<>{{</><>}}</>]]</code>, but with normal brackets. Use this instead of hard coding your page name.
|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.
}}
}}
|}
|}


{{ |de=''Beispiele'' |en=''Examples''}}{{colon}}
{{Langswitch |de=''Beispiele'' |en=''Examples''}}{{colon}}
archive=(())/Archive/((year))/((month:short))
archive=((FULLPAGENAME))/Archive/((year))/((month:short))
archive=Commons:Village pump/Archive/((year))/((month:##))
archive=Commons:Village pump/Archive/((year))/((month:##))


== {{Anchor|Example}}{{|de=Beispiel|en=Example}} ==
== {{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 2 (also alle mit <code>==</code>) werden sieben Tage nach Setzen des {{t|Section resolved}}- ins Archiv verschoben. Das Archiv befindet sich unter [[:de:Wikipedia:Redaktion Chemie/Archiv|Wikipedia:Redaktion Chemie/Archiv]]. Eine Archivierung erfolgt also nach [[:de:Wikipedia:Redaktion Chemie/Archiv/2007/Januar|Wikipedia:Redaktion Chemie/Archiv/2007/Januar]], sofern der '''erste''' Beitrag im Abschnitt im ''Januar'' erstellt wurde.
|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''.
|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''.
}}
}}
<>{{</> resolved section
<nowiki>{{</nowiki>Autoarchive resolved section
|age=7
|age=7
|archive='(())/Archive/((year))'
|archive='((FULLPAGENAME))/Archive/((year))'
|overview=<>[[{{}}/Archive|Archive]]</>
|overview=<nowiki>[[{{FULLPAGENAME}}/Archive|Archive]]</nowiki>
<>}}</>
<nowiki>}}</nowiki>
{{LangSwitch
{{
|de=Das sieht dann so aus
|de=Das sieht dann so aus
|en=That will look like this
|en=That will look like this
}}{{colon}}
}}{{colon}}
{{ resolved section
{{Autoarchive resolved section
|age=7
|age=7
|archive='(())/Archive/((year))'
|archive='((FULLPAGENAME))/Archive/((year))'
|overview=[[{{}}/Archive|Archive]]
|overview=[[{{FULLPAGENAME}}/Archive|Archive]]
}}
}}


== {{Anchor|Signature format}}{{ |de= |en=Signature format}} ==
== {{Anchor|Signature format}}{{LangSwitch |de=Unterschriftenformat |en=Signature format}} ==
{{Langswitch
{{
|de=Der Datums- und der Unterschrift ist wichtig, um den zu erkennen. Das , wie es von bei Eingabe von <code><>[[User:HuukOr|HuukOr]] ([[User talk:HuukOr|talk]]) 08:32, 16 October 2023 (UTC)</></code> oder <code><>08:32, 16 October 2023 (UTC)</></code> automatisch erzeugt wird, ist notwendig: ''{{}}, {{}} {{}} {{}} (UTC)'', auch mit abgekürztem : ''{{}}''. Das entspricht folgender Struktur mit [[:de:Hilfe:Variablen#Datums- und |]]: <code><>{{}}, {{}} {{}} {{}} (UTC)</></code> (: <code><>{{}}</></code>). Bei direkter Verwendung müssen diese [[:de:Hilfe:Vorlagen#Vorlagen verwenden|substituiert]] werden (die <code><>{{LOCAL…}}</></code>-Varianten können ebenfalls genutzt werden).
|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.
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 and automatically created, when <code><>[[User:HuukOr|HuukOr]] ([[User talk:HuukOr|talk]]) 08:32, 16 October 2023 (UTC)</></code> or <code><>08:32, 16 October 2023 (UTC)</></code> is entered, is sufficient: (UTC)'', also with abbreviated month: ''{{}}''. This corresponds to the following structure with [[:en:Help:Magic words#Other variables by type| variables]]: <code>< (UTC)</></code> (short month name: <code><>{{}}</></code>. When directly entered these variables must be [[:en:Wikipedia:Substitution|substituted]] (the according <code><>{{LOCAL…}}</></code> variants can be used, as well).
|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.
}
}}


== {{Anchor|Error lists}{ |de= |en=Error lists}
== {{Anchor|Error lists}}{{Langswitch |de=Fehlerlisten |en=Error lists}} ==
{{LangSwitch
|de=
|de=
, die Fehler in der Anwendung der oder in {{t|Section resolved}} aufweisen, werden in folgenden Listen und auf den entsprechenden angezeigt:
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 ] – bitte die letzte Zeile entfernen, wenn das Problem gelöst ist
* [[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| in {Section resolved}
* [[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 <>age</>)]]
* [[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 gesetzt (Parameter <>archive</>)]]
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/no archive set|kein Archivpfad gesetzt (Parameter <kbd>archive</kbd>)]]


;Infolisten
;
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/parameter set to 'resolved'|Parameter <></> auf „resolved“ gesetzt]
* [[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 <>timeout</> gesetzt]]
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/parameter timeout set|Parameter <kbd>timeout</kbd> gesetzt]]


|en=
|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.
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/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 {|Section resolved}
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/parameter error|parameter error in {{tlf|Section resolved}}]]
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/no age set|no <>age</> set]]
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/no age set|no <kbd>age</kbd> set]]
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/no archive set|no <>archive</> set]]
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/no archive set|no <kbd>archive</kbd> set]]


;Informational lists
;Informational lists
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/parameter set to 'resolved'|parameter </> set to “resolved”]]
* [[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 <>timeout< set]
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/parameter timeout set|parameter <kbd>timeout</kbd> set]]
}}

<includeonly>
Archivize templates
command templates
[[Category:Archive templates|{{PAGENAME}}]]
[[Category:Bot command templates|{{PAGENAME}}]]
</includeonly>

Revision as of 10:02, 16 October 2023

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 MiszaBot).

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

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 start-Archive box-end.
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 start-Section resolved-end 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 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.
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 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:04, 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.

Informational lists