Template:Autoarchive resolved section/doc: Difference between revisions
m Reverted changes by 106.210.33.103 (talk) to last version by Tegel Tag: Rollback |
update: MiszaBot inactive for years, ArchiverBot does the job; some template switches; partly translation changes |
||
Line 4: | Line 4: | ||
|desc= {{Langswitch |
|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: |
|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: |
|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<!-- talks + queue --> |
|namespace=talks<!-- talks + queue --> |
||
Line 15: | Line 15: | ||
|usage-notes= |
|usage-notes= |
||
{{Langswitch |
{{Langswitch |
||
⚫ | |||
⚫ | |||
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>). |
|||
⚫ | |||
⚫ | |||
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]]. |
Die Vorlage ist auf ein bestimmtes Format des Zeitstempels angewiesen, mehr dazu in [[#Signature format|Unterschriftenformat]]. |
||
Line 27: | Line 33: | ||
* [[Vorlage:Archiv-Liste Quartale]] |
* [[Vorlage:Archiv-Liste Quartale]] |
||
--> |
--> |
||
⚫ | |||
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>). |
|||
⚫ | |||
}}<!-- end of usage notes --> |
}}<!-- end of usage notes --> |
||
Line 38: | Line 38: | ||
|1stat=required |
|1stat=required |
||
|1d = {{LangSwitch |
|1d = {{LangSwitch |
||
|en=The parameter ''<code>age</code>'' defines the required age of the template block |
|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. |
||
|de=Der Parameter ''<code>age</code>'' gibt das Alter des Bausteins |
|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. |
||
}} |
}} |
||
Line 52: | Line 52: | ||
|3stat=optional- |
|3stat=optional- |
||
|3d = {{LangSwitch |
|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 {{ |
|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> |
||
|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 {{ |
|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> |
||
}} |
}} |
||
Line 97: | Line 97: | ||
|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 ''archive'' you can use variables referring to the date. ''<code>timecompare</code>'' defines which timestamp is used for archiving. |
|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. |
||
* <code>timecompare = resolved</code>: timestamp given by {{ |
* <code>timecompare = resolved</code>: timestamp given by {{tlf|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>timecompare</code>'' gibt an, nach welchem Zeitstempel der Bot die Einsortierung in Archive vornehmen soll. Im Parameter ''< |
|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 {{ |
* <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. |
* bei anderen Werten oder Weglassen: Zeitstempel des jüngsten Beitrags des Abschnitts wird benutzt. |
||
Vergleiche die Vorlagenverwendung in [[Commons:Graphic Lab/Illustration workshop]]. |
Vergleiche die Vorlagenverwendung in [[Commons:Graphic Lab/Illustration workshop]]. |
||
Line 110: | Line 110: | ||
|8stat=optional |
|8stat=optional |
||
|8d = {{LangSwitch |
|8d = {{LangSwitch |
||
|en=The parameter ''<code>timeout</code>'' specifies |
|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 |
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 {{ |
|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 '' |
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}} --> |
||
Line 207: | Line 207: | ||
{{Langswitch |
{{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 {{ |
|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 {{ |
|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 |
||
Line 237: | Line 237: | ||
== {{Anchor|Error lists}}{{Langswitch |de=Fehlerlisten |en=Error lists}} == |
== {{Anchor|Error lists}}{{Langswitch |de=Fehlerlisten |en=Error lists}} == |
||
{{LangSwitch |
{{LangSwitch |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
|en= |
|en= |
||
Talk pages containing errors in their main template usage or in {{ |
''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/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 {{tlf|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 < |
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/no age set|no <code>age</code> set]] |
||
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/no archive set|no < |
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/no archive set|no <code>archive</code> set]] |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/parameter timecompare set to 'resolved'| |
* [[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| |
* [[Special:WhatLinksHere/Template:Autoarchive resolved section/parameter timeout set|Parameter <code>timeout</code> gesetzt]] |
||
}} |
}} |
||
<includeonly> |
<includeonly> |
Latest revision as of 00:59, 24 April 2024
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 {{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
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 {{Archive box}}. | 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 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. | 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 {{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: 19:25, 16 July 2024 (UTC), also with abbreviated month: Jul. 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.
- 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: