Vai al contenuto

Template:Archivio lista

Da Wikipedia, l'enciclopedia libera.
Info Istruzioni per l'uso
Le istruzioni che seguono sono contenute nella sottopagina Template:Archivio lista/man (modifica · cronologia)
Sandbox: Template:Archivio lista/Sandbox (modifica · cronologia) · TemplateStyles: Template:Archivio lista/styles.css (modifica · cronologia) · Tutte le sottopagine: lista

Questo template può essere aggiunto a quasiasi pagina di discussione o archivio di discussioni passate, e produce un'elenco di tutti i collegamenti alle pagine di archivio numerate su suddetta pagina o quella genitrice.

Di default il template usa le convenzioni di nomenclatura specificate in Aiuto:Archiviazione, Discussione:PAGENAME/Archivio 1, con la lettera A maiuscola, uno spazio prima del numero e senza zeri iniziali.

Questo template non va normalmente substato – in questo modo la lista dei collegamenti si aggiornerà automaticamente quando un nuovo archivio numerato viene creato.

Uso

(legenda colori)

{{Archivio lista
|root =
|links =
|nobr =
|prefix =
|prefixspace =
|linkprefix =
|linkprefixspace =
|sep =
|linesep =
|start =
|max =
|auto =
|leavefirstcellblank =
}}

  • root = <root> - use this to specify a root other than that of the page from which the template is transcluded.
  • links = # - the number of links to display per line. The default is 10.
  • nobr = yes - set this to yes to remove all line breaks. This parameter cannot be used in conjunction with |links=.
  • prefix = <prefix> - a custom prefix for the archives, without the number. The default is "Archive ".
  • prefixspace = yes - adds a space between the prefix and the archive number for prefixes specified with |prefix=.
  • linkprefix = <linkprefix> - a custom prefix for the display links, without the number. The default is blank. If auto=long, use 'none' to have it blank.
  • linkprefixspace = yes - adds a space between the link prefix and the archive number for prefixes specified with |linkprefix=.
  • sep = <sep> - the separator for archive links. The default value is the comma separator for the language set in your preferences: ", ". If this is set to either dot (⧼dot-separator⧽), pipe ( | ), comma (, ), or tpt-languages (⧼tpt-languages-separator⧽), then it uses that separator as specified for your default language. If it is any other value, that value is used as it is. Whitespace is stripped from the values, but this can be worked around by using &#32; (for spaces) and <br /> (for new lines). It is also possible to work around the whitespace limitation by calling Modulo:Archivio lista directly from another Lua module.
  • linesep = <linesep> - the separator for lines of archive links. The possible input values are the same as for the |sep= parameter, and the default separator text is <br />. How often the value is displayed depends on the value of |links=.
  • start = # - the archive number to start listing archives from. This must be smaller than the largest archive number, or |max= if it is specified.
  • max = # - the largest archive number to list. This overrides the automatic detection of archive page numbers.
  • auto = long - outputs as a table. Changes default value of links to 3 and linkprefix to 'Archive '.
  • leavefirstcellblank = yes - leave the first cell of the first row empty, so that each row starts on a multiple of the number of links per line. In other words, this aligns the first column to contain round numbers (multiples of the links param). This can make long archive lists easier to read. This option is off by default for compatibility.

Limitazioni

Con un alto numero di pagine di archivio il template potrebbe raggiungere il limite di chiamate a funzione onerose. Su una pagina dove non ci sono altri template che effettuano chiamate onerose, questo template dovrebbe essere il grado di restituire più di 400 000 collegamenti a pagine di archivio. Nelle pagine dove però ci sono altri template che fanno chiamate a funzione onerose il template potrebbe fallire prima.

Pagine correlate