Template:Archives: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Amalthea (talk | contribs)
Added a title parameter: Some pages, like WT:Twinkle, transclude subpages with their own archives. Being able to lable the archive is helpful there.
lose the dot
(3 intermediate revisions by 2 users not shown)
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="text-align: center; {{#if:{{{box-width|}}}|width:{{{box-width}}};}} {{{style|}}}"
<!-- 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="text-align: center; {{#if:{{{box-width|}}}|width:{{{box-width}}};}} {{{style|}}}"
|-
|-
! {{#if:{{{image|}}}|{{{image}}}|[[Image:Replacement filing cabinet.svg|40px|]]}}<br />{{{title|[[Help:Archiving a talk page|Archives]]}}} {{#if:{{{index|}}}|([[{{#rel2abs: {{{index}}} }}|Index]])}}
! class="mbox-text" | <div style="clear:both;">
{{#if:{{{image|}}}|{{{image}}}|[[Image:Replacement filing cabinet.svg|40px|]]}}

{{{title|Archives}}} {{#if:{{{index|}}}|([[{{#rel2abs: {{{index}}} }}|Index]])}}
</div>
|-
|-
| class="mbox-text" 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>}} }}}{{{1|}}}
| 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>}} }}}{{{1|}}}
|-
|-
{{#ifeq:{{{search|no}}}|no||
{{#ifeq:{{{search|no}}}|no||
{{!}} class="mbox-text" {{!}} {{#tag:inputbox|
{{!}} {{#tag:inputbox|
bgcolor=transparent
bgcolor=transparent
type=fulltext
type=fulltext
Line 20: Line 16:
}}
}}
|-
|-
| class="mbox-text" | <small>[[Help:Archiving a talk page|About archives]]{{#if:{{{auto|}}}|<!-- NO LINK -->|{{·}} <span class="plainlinks"> [{{fullurl:{{#rel2abs:{{{archivelist|./archivelist}}}}}|action=edit&preload=Template:Archives/Preload}} Edit this box] </span> }}</small>
| <small>{{#if:{{{auto|}}}|<!-- NO LINK -->|<span class="plainlinks"> [{{fullurl:{{#rel2abs:{{{archivelist|./archivelist}}}}}|action=edit&preload=Template:Archives/Preload}} Edit this box] </span> }}</small>
|}{{#if:{{{box-width|}}}|[[Category:Archive boxes with unusual parameters|β{{PAGENAME}}]]}}<!-- Template:Archives ends --><noinclude>{{pp-semi-template}}{{Documentation}}<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --></noinclude>
|}{{#if:{{{box-width|}}}|[[Category:Archive boxes with unusual parameters|β{{PAGENAME}}]]}}<!-- Template:Archives ends --><noinclude>{{pp-semi-template}}{{Documentation}}<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --></noinclude>

Revision as of 12:52, 30 March 2009


Archives
1, 2
Edit this box