Permanently protected template

Difference between revisions of "Template:Forum/header"

From Yugipedia
Jump to: navigation, search
(fix for the actual forum pages (was displaying/linking to "index" twice))
m (Protected "Template:Forum/header": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(56 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
+
{{Forum/header/core
{{AutoTemplate}}
+
| 1       = {{
</noinclude><div class="forumheader">
+
    #switch: {{{1}}}<!-- #switch in the event we ever rename or split more forums -->
  <div style="float:left;">'''Forums:'''</div>
+
    | Yu-Gi-Oh! Wiki Discussion = General Yu-Gi-Oh! Discussion
  <div class="forumnewpost {{#ifeq:{{lc:{{{1}}}}}|index|hide}}" style="float: right;">[{{fullurl:{{FULLPAGENAMEE}}|action=edit&section=new}} http://images.wikia.com/anime/en/images/4/4e/Forum_new.gif] [{{fullurl:{{FULLPAGENAMEE}}|action=edit&section=new}} Post]</div>
+
    | #default                  = {{{1|}}}
  <div style="margin-left:5em;">[[Forum:Index|Index]] '''''→''''' {{#ifeq:{{lc:{{{1}}}}}|index||[[Forum:{{{1}}}|{{{1}}}]] '''''→'''''}} {{PAGENAME}}{{#if:{{{2|}}}|<br />[[Forum:Index|Index]] '''''→''''' [[Forum:{{{2}}}|{{{2}}}]] '''''→''''' {{PAGENAME}}}}</div>
 
</div><includeonly>{{
 
  #ifeq: {{{1}}} | index | [[Category:Forums]] | [[Category:{{{1}}}]]__NEWSECTIONLINK__
 
}}{{<!-- maintenance cats -->
 
  #ifeq: {{NAMESPACE}} | {{NS:110}}
 
  | <!-- page is in the Forum: namespace -->
 
  | [[Category:Forumheader transclusions to be checked|N]]<!-- page is not in the Forum: namespace -->
 
}}{{
 
  #if: {{{3|}}}{{{4|}}}{{{5|}}}
 
  | [[Category:Forumheader transclusions to be checked|P]]<!-- see if {{{3}}}-{{{5}}} are used anywhere and if so how -->
 
}}{{
 
  #ifeq: {{{1|¬}}} | ¬
 
  | [[Category:Forumheader transclusions to be checked|U]]<!-- {{{1}}} not used (bad for obvious reasons) -->
 
  | {{
 
    #if: {{{1|}}}
 
    | <!-- {{{1}}} not empty (may add a check later for nonstandard values, but for now we'll assume any value is fine) -->
 
    | [[Category:Forumheader transclusions to be checked|E]]<!-- {{{1}}} empty -->
 
 
   }}
 
   }}
}}</includeonly><noinclude>
+
| 2        = {{
[[Category:Forums]]
+
    #switch: {{{2}}}<!-- #switch in the event we ever rename or split more forums -->
 +
    | Yu-Gi-Oh! Wiki Discussion = General Yu-Gi-Oh! Discussion
 +
    | #default                  = {{{2|}}}
 +
  }}
 +
| index    = {{
 +
    #switch: {{FULLPAGENAME}}
 +
    | Forum:Help desk                          | Forum:General Yu-Gi-Oh! Discussion
 +
    | Forum:Yu-Gi-Oh! Wiki Community Discussion | Forum:Yu-Gi-Oh! Deck Help
 +
    | Forum:Yu-Gi-Oh! Ruling Queries            | Forum:Yu-Gi-Oh! Lists Discussion
 +
    | Forum:Duel Terminal                      | Forum:Weekly Deck Competition
 +
    | Template:Forum                            = {{PAGENAME}}
 +
  }}
 +
| sticky  = {{{sticky|}}}
 +
| demo    = {{{demo|}}}
 +
| archived = {{
 +
    #switch: {{PAGENAME}}
 +
    | Help desk                          | General Yu-Gi-Oh! Discussion
 +
    | Yu-Gi-Oh! Wiki Community Discussion | Yu-Gi-Oh! Deck Help
 +
    | Yu-Gi-Oh! Ruling Queries            | Yu-Gi-Oh! Lists Discussion
 +
    | Duel Terminal                      | Weekly Deck Competition
 +
    | Yu-Gi-Oh! Wiki Discussion          = <!-- forum indexes *never* get archived -->
 +
    | #default                            = {{
 +
      #if: {{{archived|}}}{{{last edit|}}}{{ #ifeq: {{PROTECTIONLEVEL:edit}} | sysop | 1 }}<!-- manually archiving overrides everything else -->
 +
      | 1
 +
      | {{
 +
        #if: {{{sticky|}}}{{{demo|}}}<!-- sticky threads and demos don't auto-archive -->
 +
        || {{
 +
          #switch: Yu-Gi-Oh! Wiki Community Discussion<!-- wiki discussions don't auto-archive -->
 +
          | {{{1}}} | {{{2}}} =
 +
          | #default          = {{
 +
            #ifexpr: {{ #time: U }} - {{ #time: U | {{REVISIONTIMESTAMP}} }} < 3456000<!-- everything else auto-archives after 40 days -->
 +
            || 1
 +
          }}
 +
        }}
 +
      }}
 +
    }}
 +
  }}
 +
| last edit = {{ #if: {{{last edit|}}} | {{ #replace: {{{last edit}}} | ‎ }} | {{ #if: {{{archived|}}}{{ #ifeq: {{PROTECTIONLEVEL:edit}} | sysop | 1 }} | archived-without-date | {{REVISIONTIMESTAMP}} }} }}
 +
}}<noinclude>
 +
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 08:02, 4 June 2019