Plantilla:Fòrum/Encapçalament: diferència entre les revisions

Mpuj (discussió | contribucions)
Correcció de codis
Mpuj (discussió | contribucions)
Correcció de codis
Línia 1: Línia 1:
<div class="forumheader">'''Forums:'''&nbsp;[[Forum:Index|Index]]&nbsp;&nbsp;{{#if: {{{1|}}}|
__NEWSECTIONLINK__<div class="forumheader" style="margin-bottom: .25em; ">
[[Forum:{{{1}}}{{!}}{{{1}}}]]&nbsp;→&nbsp;{{#if: {{{2|}}}
{| cellpadding="0" cellspacing="0" style="background-color:inherit;"
                                    |[[Forum:{{{2}}}{{!}}{{{2}}}]]&nbsp;→}}
|'''{{ns:Forum}}:''' [[{{:MediaWiki:Forum-url}}|Índex]] '''&rarr;&nbsp; '''
}}&nbsp;{{PAGENAME}}</div>
|
<includeonly>{{#if: {{{stickied|}}}
{| cellpadding="0" cellspacing="0" style="background-color:inherit;"
|<noinclude><!-- if it's stickied, the thread won't be archived --></noinclude>
|[[{{ns:Forum}}:{{{1}}}|{{{1}}}]] {{#ifeq:{{NAMESPACE}}|{{ns:Forum}}|[[Categoria:{{{1}}}|{{PAGENAME}}]]|}}
|{{#switch: {{{closed|autolock}}}
{{#if:{{{incluso|}}}|{{!}}-
  |NO|No|no=<noinclude><!-- if "no" the thread won't be archived --></noinclude>
{{!}}style="border-top:1px solid gray;"{{!}}[[{{ns:Forum}}:{{{incluso}}}|{{{incluso}}}]] {{#ifeq:{{NAMESPACE}}|{{ns:Forum}}|[[Categoria:{{{incluso}}}|{{PAGENAME}}]]|}} }}
  |autolock=<!-- auto lock-->{{#ifexpr:{{#expr:{{#time: U}} - {{#time: U | {{REVISIONTIMESTAMP}}}} }} > ({{Forumheader/days}} * 86400)
|}
|<div id="old-forum-warning" style="margin: 0.8em 0; padding: 0.5em 12px; border: 2px solid red; background-color: #FFF7F7; color: black; text-align: center;">'''<span style="color: red">Note</span>:''' This topic has been unedited for '''{{#expr:({{#time: U}} - {{#time: U | {{REVISIONTIMESTAMP}}}}) / 86400 round 0}} days'''. It is considered '''archived''' - the discussion is over.<br/>Do not add to unless it ''really'' needs a response.</div>__NOEDITSECTION__
| '''&nbsp;&rarr;''' {{PAGENAME}}
|}}
{{#if:{{{aleatorio|}}}|{{!}}'''&nbsp;&rarr;''' {{{aleatorio}}}|}}
  |#default=<!-- manual lock --><div id="old-forum-warning" style="margin: 0.8em 0; padding: 0.5em 12px; border: 2px solid red; background-color: #FFF7F7; color: black; text-align: center;">'''<span style="color: red">Note</span>:''' This topic has been '''archived''' because the discussion is considered '''solved'''.<br/>Do not add to unless it ''really'' needs a response. This topic has been closed for '''{{#expr:({{#time: U}} - {{#time: U | {{REVISIONTIMESTAMP}}}}) / 86400 round 0}} days.'''</div>__NOEDITSECTION__
|}</div>
}}
----
}}<!-- adding thread categories
<includeonly>{{#ifexpr:{{#expr:{{#time: U}} - {{#time: U | {{REVISIONTIMESTAMP}}}} }} > 2592000|<div id="old-forum-warning" style="margin: 0.8em 0; padding: 0.5em 12px; border: 2px solid #F66; background-color: whitesmoke; color: black">'''<span style="color: maroon">Atenció</span>''': Aquest tema no ha estat editat durant '''{{#expr:({{#time: U}} - {{#time: U | {{REVISIONTIMESTAMP}}}}) / 86400 round 0}} dies'''. Aquest tema es considera '''arxivat''' - la discussió, per tant, es dóna per finalitzada. No afegeixes res més a no ser que sigui '''realment''' necessari.</div>__NOEDITSECTION__|__NEWSECTIONLINK__}}</includeonly><noinclude>[[Categoria:Fòrums]]
-->{{#if:{{{1|}}}
|{{#if:{{{2|}}}
|[[Categoria:{{{1}}}{{!}}{{PAGENAME}}]][[Categoria:{{{2}}}{{!}}{{PAGENAME}}]]
|[[Categoria:{{{1}}}{{!}}{{PAGENAME}}]]}}
|}}<!--
adding stickied category
-->{{#if: {{{stickied|}}}|[[Categoria:{{{stickied}}}|{{PAGENAME}}]]}}</includeonly>{{-}}<noinclude>


== Ús ==
== Ús ==