Template talk:Archive box/Archive 2: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris day
No edit summary
 
imported>Chris day
No edit summary
Line 1: Line 1:
=== Automatic links ===
=== Automatic links ===


If all the archives of a talk page are numbered (<tt>/Archive 1</tt>, <tt>/Archive 2</tt> etc.), you can use the <tt>auto</tt> parameter to display links to them all automatically:
If all the archives of a talk page are numbered (<tt>/Archive 1</tt>, <tt>/Archive 2</tt> etc.), you can use the <tt>auto</tt> parameter to display links to them all automatically. Choosing the yes option will list the archives with numbers only:
{{archive box|auto=yes}}
{{archive box|auto=yes}}
<pre>{{archive box|auto=yes}}</pre>
<pre>{{archive box|auto=yes}}</pre>


The list will update itself when new archives are added. If there are also named archives, you can add links to these as well.
The list will update itself when new archives are added. If there are also named archives, you can add links to these as well. See the additional links shown in the archive box below:




Line 13: Line 13:




If there are less than 20 archive pages, and you prefer a larger two-column output, set the <tt>auto</tt> parameter to "long", all other parameter values will trigger the above format, so if you want longer and more visible links, try:
Alternatively, setting the <tt>auto</tt> parameter to "long" will give a prose version; all other parameter values will trigger the numerical format above, so if you want longer and more visible links, try:
{{archive box|auto=long}}
{{archive box|auto=long|
<pre>{{archive box|auto=long}}</pre>
[[{{BASEPAGENAME}}/Archive 3|December 2005 - January 2006]] and
[[{{BASEPAGENAME}}/Deletion discussion|Deletion discussion]]}}
<pre>{{archive box|auto=long|
[[{{BASEPAGENAME}}/Archive 3|December 2005 - January 2006]] and
[[{{BASEPAGENAME}}/Deletion discussion|Deletion discussion]]}}</pre>

Revision as of 01:31, 23 February 2007

Automatic links

If all the archives of a talk page are numbered (/Archive 1, /Archive 2 etc.), you can use the auto parameter to display links to them all automatically. Choosing the yes option will list the archives with numbers only:

{{archive box|auto=yes}}

The list will update itself when new archives are added. If there are also named archives, you can add links to these as well. See the additional links shown in the archive box below:




Alternatively, setting the auto parameter to "long" will give a prose version; all other parameter values will trigger the numerical format above, so if you want longer and more visible links, try:

{{archive box|auto=long|
[[{{BASEPAGENAME}}/Archive 3|December 2005 - January 2006]] and
[[{{BASEPAGENAME}}/Deletion discussion|Deletion discussion]]}}