Difference between revisions of "Template:Archives"

From FlightGear wiki
Jump to navigation Jump to search
m (cat: Templates, Undocumented templates)
Line 1: Line 1:
<!-- Template:Archives begins -->{| class="{{talk other |tmbox tmbox-notice |ombox ombox-notice |demospace={{{demospace|}}}}} mbox-small {{#ifeq:{{{collapsed|}}}|yes|collapsible collapsed|{{#ifeq:{{{collapsible|}}}|yes|collapsible}}}}" style="float:right; text-align: center; {{#if:{{{box-width|}}}|width:{{{box-width}}};}} {{{style|}}}"
+
<div style="float: right; clear: right;">
 +
{| style="text-align: center; font-size: 85%; background-color: #f9f9f9; border: 1px solid #aaa; padding: 5px; margin: 1em 0;"
 +
| [[File:Replacement filing cabinet.png|40px|alt=|link=]]<br>'''[[Help:Archiving a talk page|Archives]]'''
 
|-
 
|-
! {{#ifeq:{{{image|Replacement filing cabinet.png}}}|Replacement filing cabinet.png|[[File:Replacement filing cabinet.png|{{{image-size|40px}}}|alt=|link=]]<br />|{{Image|alt={{{alt|}}}{{#if:{{#ifeq:{{{link|::none::}}}|::none::|{{{alt|}}}}}||{{!}}link={{{link|}}}}}|{{{image|Replacement filing cabinet.png}}}|{{{image-size|40px}}}|postfix=<br />}}}}{{{title|[[Help:Archiving a talk page|Archives]]}}} {{#if:{{{index|}}}|([[{{#rel2abs: {{{index}}} }}|Index]])}}
+
| {{{1|{{error|Please add at<br>least one parameter}}}}}{{#if: {{{2|}}} | , {{{2}}} }}
 
|-
 
|-
| style="text-align:left;" | {{{list| {{#switch:{{{auto|¬}}} |no= |long={{Archive list long|{{#if:{{{root|}}}|root}}={{{root}}} }} |¬={{#ifexist:{{#rel2abs:{{{archivelist|./archivelist}}}}} |{{ {{#rel2abs:{{{archivelist|./archivelist}}} }} }} |{{Archive list long|{{#if:{{{root|}}}|root}}={{{root}}} }} }} |#default=<div style="text-align:center;">{{Archive list|{{#if:{{{root|}}}|root}}={{{root}}} }}</div>}} }}}<!--Parameter content MUST be on newline in code or some wikimarkup will fail:-->
+
{{#if: {{{3|}}} | {{!}} {{{3}}}{{#if: {{{4|}}} | , {{{4}}} }} }}
{{{1|}}}
 
 
|-
 
|-
{{#ifeq:{{{search|no}}}|no||
+
{{#if: {{{5|}}} | {{!}} {{{5}}}{{#if: {{{6|}}} | , {{{6}}} }} }}
{{!}} {{#tag:inputbox|
+
|-
bgcolor=transparent
+
{{#if: {{{7|}}} | {{!}} {{{7}}}{{#if: {{{8|}}} | , {{{8}}} }} }}
type=fulltext
+
|-
prefix={{#if:{{{prefix|}}}|{{{prefix}}}|{{#if:{{{root|}}}|{{{root}}}|{{FULLPAGENAME}}}}/}}
+
{{#if: {{{9|}}} | {{!}} {{{9}}}{{#if: {{{10|}}} | , {{{10}}} }} }}
break={{#if:{{{search-break|}}}|{{{search-break}}}|no}}
+
|}
width={{#if:{{{search-width|}}}|{{{search-width}}}|22}}
+
</div>
searchbuttonlabel={{#if:{{{search-button-label|}}}|{{{search-button-label}}}|Search}}
+
<noinclude>
}}
+
{{-}}
{{!}}-
+
{{Informative template|1=
}}
+
__NOTOC__
{{#if:{{{bot|}}}{{{age|}}}{{{target|}}}|{{!}} {{#if: {{{age|}}}|{{#if:{{{botnotesmall|}}}|<small>}}Threads older than {{{age}}}{{#ifeq:{{{units|}}}|h||&nbsp;}}{{{units|day{{#ifeq:{{{age|}}}|1||s}}}}} {{#if:{{{minthreadszero|}}}|are|may be}}|This page is}} archived{{#if:{{{target|}}}|{{#ifexist:{{#rel2abs:{{{target}}}}}|&#32;to [[{{#rel2abs:{{{target}}}}}]]}}}}{{#if:{{{bot|}}}|&#32;by <span class="nowraplinks">[[User:{{{bot}}}|{{{bot}}}]]</span>}}.
+
== Usage ==
{{!}}-
+
This template is for containing links to [[Help:Archiving a talk page|archives of talk pages]].
}}
+
 
{{#ifeq: {{{auto|}}}-{{{editbox|yes}}} | no-yes | {{!}} <small class="plainlinks">[{{fullurl:{{#rel2abs:{{{archivelist|./archivelist}}}}}|action=edit&preload=Template:Archives/Preload}} Edit this box]</small>
+
== Goal ==
{{!}}-
+
{{obr}}'''Archives'''{{!}}archive{{!}}''archive 2''{{!}}''archive 3''{{!}}''archive 4''{{!}}''archive 5''{{!}}''archive 6''{{!}}''archive 7''{{!}}''archive 8''{{!}}''archive 9''{{!}}''archive 10''{{cbr}}
}}
+
 
|}{{#if:{{{box-width|}}}|[[Category:Archive boxes with unusual parameters|β{{PAGENAME}}]]}}<!-- Template:Archives ends --><!--
+
; archive (''1-10'') : Link to archive. Only the first one is mandatory.
 +
 
 +
== Examples ==
 +
<nowiki>{{Archives|[[/Archive 2014|2014]]}}</nowiki>
 +
{{Archives|[[/Archive 2014|2014]]}}{{-}}
  
Building up for eventual documentation:
+
<nowiki>{{Archives|[[/Archive 2012|2012]]|[[/Archive 2013|2013]]|[[/Archive 2014|2014]]}}</nowiki>
 +
{{Archives|[[/Archive 2012|2012]]|[[/Archive 2013|2013]]|[[/Archive 2014|2014]]}}{{-}}
  
Parameters (in order of appearance):
+
}}
* demospace=
 
* collapsed=
 
* collapsible=
 
* box-width=
 
* style=
 
* image=
 
** image-size=
 
** alt=
 
** link=
 
* title=
 
* index=
 
* list=
 
* auto=
 
* no=
 
* long=
 
* root=
 
* archivelist=
 
* prefix=
 
* search-break=
 
* search-width=
 
* search-button-label=
 
* bot=
 
* age=
 
* target=
 
* botnotesmall=
 
* units=
 
* minthreadszero=
 
* editbox=
 
  
--><noinclude>
 
 
[[Category:Templates]]
 
[[Category:Templates]]
[[Category:Undocumented templates]]
+
 
 
</noinclude>
 
</noinclude>

Revision as of 17:02, 31 October 2015


Archives
Please add at
least one parameter


The following template description is not displayed when the template is inserted in an article.

Usage

This template is for containing links to archives of talk pages.

Goal

{{Archives|archive|archive 2|archive 3|archive 4|archive 5|archive 6|archive 7|archive 8|archive 9|archive 10}}
archive (1-10)
Link to archive. Only the first one is mandatory.

Examples

{{Archives|[[/Archive 2014|2014]]}}


{{Archives|[[/Archive 2012|2012]]|[[/Archive 2013|2013]]|[[/Archive 2014|2014]]}}