Permanently protected template

Difference between revisions of "Template:Forum/header"

From Yugipedia
Jump to: navigation, search
(oh hey look {{Ombox}} means less code here)
m (Protected "Template:Forum/header": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(47 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Ombox
+
{{Forum/header/core
| style = height: 3.5em; width: 100%; margin: 0;
+
| 1        = {{
| image = '''Forums:'''
+
    #switch: {{{1}}}<!-- #switch in the event we ever rename or split more forums -->
| imageright = <span class="{{#ifeq:{{lc:{{{1}}}}}|index|hide}}" style="white-space: nowrap;">[{{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]</span>
+
    | Yu-Gi-Oh! Wiki Discussion = General Yu-Gi-Oh! Discussion
| text  = [[Forum:Index|Index]] '''''→''''' {{#switch:{{{1}}}|index=|Yu-Gi-Oh! Wiki Discussion=[[Forum:General Yu-Gi-Oh! Discussion|General Yu-Gi-Oh! Discussion]] '''''→'''''|[[Forum:{{{1}}}|{{{1}}}]] '''''→'''''}} {{PAGENAME}}{{#if:{{{2|}}}|<br />[[Forum:Index|Index]] '''''→''''' [[Forum:{{{2}}}|{{{2}}}]] '''''→''''' {{PAGENAME}}}}
+
    | #default                  = {{{1|}}}
}}<includeonly>{{<!-- topic cats -->
+
  }}
  #switch: {{{1}}} | index = [[Category:Forums|{{PAGENAME}}]] | Yu-Gi-Oh! Wiki Discussion =  [[Category:General Yu-Gi-Oh! Discussion|{{PAGENAME}}]]__NEWSECTIONLINK__ | [[Category:{{{1}}}|{{PAGENAME}}]]__NEWSECTIONLINK__
+
| 2        = {{
}}{{
+
    #switch: {{{2}}}<!-- #switch in the event we ever rename or split more forums -->
  #if: {{{2|}}} | [[Category:{{{2}}}|{{PAGENAME}}]]
+
    | Yu-Gi-Oh! Wiki Discussion = General Yu-Gi-Oh! Discussion
}}{{
+
    | #default                  = {{{2|}}}
   #if: {{{sticky|}}} | [[Category:Sticky threads|{{PAGENAME}}]]
+
  }}
}}</includeonly>{{
+
| index    = {{
  #ifeq: {{#titleparts:{{FULLPAGENAME}}|1|1}} | Template:Forumheader
+
    #switch: {{FULLPAGENAME}}
  | <!-- no maintenance cats for Template:Forumheader or any subtemplates, though we are going to do a bit else here -->{{
+
    | 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}}
 
     #switch: {{PAGENAME}}
    | Forumheader  | Forumheader/doc  | Forumheader/sandbox  | Forumheader/testcases =
+
     | Help desk                           | General Yu-Gi-Oh! Discussion
    | #default = [[Category:Forumheader preload templates|{{SUBPAGENAME}}]]<!-- keep track of the preload templates -->
+
    | Yu-Gi-Oh! Wiki Community Discussion | Yu-Gi-Oh! Deck Help
  }}
+
    | Yu-Gi-Oh! Ruling Queries           | Yu-Gi-Oh! Lists Discussion
  | {{<!-- maintenance cats -->
+
    | Duel Terminal                       | Weekly Deck Competition
    #ifeq: {{NAMESPACE}} | {{NS:110}}
+
    | Yu-Gi-Oh! Wiki Discussion           = <!-- forum indexes *never* get archived -->
    | <!-- page is in the Forum: namespace -->
+
     | #default                           = {{
    | [[Category:Forumheader transclusions to be checked|N]]<div class="sysop-show" style="display: none;">{{Ombox|type=content|text='''Administrators:''' This page is in the wrong namespace. [{{fullurl:Special:MovePage/{{FULLPAGENAMEE}}|wpNewTitle=Forum:{{PAGENAMEE}}&wpReason=move+to+forum&wpLeaveRedirect=0}} Move to the Forum: namespace]}}</div><!-- page is not in the Forum: namespace -->
+
      #if: {{{archived|}}}{{{last edit|}}}{{ #ifeq: {{PROTECTIONLEVEL:edit}} | sysop | 1 }}<!-- manually archiving overrides everything else -->
  }}{{
+
      | 1
    #if: {{{3|}}}{{{4|}}}{{{5|}}}
+
      | {{
    | [[Category:Forumheader transclusions to be checked|P]]<!-- see if {{{3}}}-{{{5}}} are used anywhere and if so how -->
+
        #if: {{{sticky|}}}{{{demo|}}}<!-- sticky threads and demos don't auto-archive -->
  }}{{
+
        || {{
    #switch: {{{1|¬}}}
+
          #switch: Yu-Gi-Oh! Wiki Community Discussion<!-- wiki discussions don't auto-archive -->
    | ¬ = [[Category:Forumheader transclusions to be checked|U]]<!-- {{{1}}} not used (bad for obvious reasons) -->
+
          | {{{1}}} | {{{2}}} =  
    |  = [[Category:Forumheader transclusions to be checked|E]]<!-- {{{1}}} empty -->
+
          | #default         = {{
     | 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 | index = <!-- valid value -->
+
            #ifexpr: {{ #time: U }} - {{ #time: U | {{REVISIONTIMESTAMP}} }} < 3456000<!-- everything else auto-archives after 40 days -->
     | #default = [[Category:Forumheader transclusions to be checked|I]]<!-- invalid value -->
+
            || 1
  }}{{
+
          }}
    #switch: {{{2|¬}}}
+
        }}
    |  = [[Category:Forumheader transclusions to be checked|E]]<!-- {{{2}}} empty -->
+
      }}
    | ¬ | 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 | index = <!-- valid value or unused -->
+
    }}
    | #default = [[Category:Forumheader transclusions to be checked|I]]<!-- invalid value -->
 
 
   }}
 
   }}
 +
| last edit = {{ #if: {{{last edit|}}} | {{ #replace: {{{last edit}}} | ‎ }} | {{ #if: {{{archived|}}}{{ #ifeq: {{PROTECTIONLEVEL:edit}} | sysop | 1 }} | archived-without-date | {{REVISIONTIMESTAMP}} }} }}
 
}}<noinclude>
 
}}<noinclude>
[[Category:Forums|{{PAGENAME}}]]
+
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 08:02, 4 June 2019