Permanently protected template

Difference between revisions of "Template:Forum/header"

From Yugipedia
Jump to: navigation, search
m (Protected "Template:Forum/header": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(17 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 = {{ #ifexpr: {{ #if:{{{sticky|}}}{{{demo|}}}|1<0|{{ #time: U }} - {{ #time: U | {{REVISIONTIMESTAMP}} }} > 3456000 }}
+
     | Yu-Gi-Oh! Wiki Discussion = General Yu-Gi-Oh! Discussion
     | <!-- no post button in old threads -->
+
     | #default                  = {{{1|}}}
     | <span class="{{ #if: {{{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>
 
 
   }}
 
   }}
| text  = [[Forum:Index|Index]] '''''→''''' {{
+
| 2        = {{
     #if: {{{index|}}}
+
     #switch: {{{2}}}<!-- #switch in the event we ever rename or split more forums -->
    || {{
+
    | Yu-Gi-Oh! Wiki Discussion = General Yu-Gi-Oh! Discussion
      #ifeq: {{{1}}} | Yu-Gi-Oh! Wiki Discussion
+
    | #default                  = {{{2|}}}
      | [[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}}
 
 
   }}
 
   }}
}}<includeonly>{{<!-- topic cats -->
+
| index    = {{
  #if: {{{demo|}}}
+
    #switch: {{FULLPAGENAME}}
  | <!-- No categories for demonstration usage -->
+
    | Forum:Help desk                          | Forum:General Yu-Gi-Oh! Discussion
  | [[Category:{{
+
    | Forum:Yu-Gi-Oh! Wiki Community Discussion | Forum:Yu-Gi-Oh! Deck Help
     #if: {{{index|}}}
+
     | Forum:Yu-Gi-Oh! Ruling Queries            | Forum:Yu-Gi-Oh! Lists Discussion
    | Forums
+
     | Forum:Duel Terminal                      | Forum:Weekly Deck Competition
    | {{
+
     | Template:Forum                            = {{PAGENAME}}
      #ifeq: {{{1}}} | Yu-Gi-Oh! Wiki Discussion
 
      | General Yu-Gi-Oh! Discussion
 
      | {{{1}}}
 
     }}
 
  }}|{{PAGENAME}}]]{{
 
    #if: {{{2|}}} | [[Category:{{{2}}}|{{PAGENAME}}]]
 
  }}{{
 
     #if: {{{sticky|}}} | [[Category:Sticky threads|{{PAGENAME}}]]
 
 
   }}
 
   }}
}}</includeonly>{{
+
| sticky   = {{{sticky|}}}
   #ifeq: {{ #titleparts: {{FULLPAGENAME}} | 1 | 1 }} | Template:Forum
+
| demo    = {{{demo|}}}
    | <!-- no maintenance cats for Template:Forum or any subtemplates, though we are going to do a bit else here -->{{
+
| archived = {{
 
     #switch: {{PAGENAME}}
 
     #switch: {{PAGENAME}}
     | Forum/header  | Forum/header/doc  | Forum/header/sandbox  | Forum/header/testcases | Forum =
+
     | 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;">{{Forum/header/move notice}}</div><!-- page is not in the Forum: namespace -->
+
      #if: {{{archived|}}}{{{last edit|}}}{{ #ifeq: {{PROTECTIONLEVEL:edit}} | sysop | 1 }}<!-- manually archiving overrides everything else -->
  }}{{
+
      | 1
    #if: {{{index|}}}{{{sticky|}}}{{{demo|}}} <!-- no necro check on forum indexes, sticky threads and demonstrations -->
+
      | {{
    | | {{ <!-- stop necrobumping on threads unedited for 40+ days -->
+
        #if: {{{sticky|}}}{{{demo|}}}<!-- sticky threads and demos don't auto-archive -->
      #ifexpr: {{ #time: U }} - {{ #time: U | {{REVISIONTIMESTAMP}} }} > 3456000
+
        || {{
      | <div id="archived-edit-link"></div>{{Forum/header/archived notice}}__NOEDITSECTION__ __NONEWSECTIONLINK__
+
          #switch: Yu-Gi-Oh! Wiki Community Discussion<!-- wiki discussions don't auto-archive -->
      | __NEWSECTIONLINK__<!-- new section link for non-ancient threads -->
+
          | {{{1}}} | {{{2}}} =  
    }}
+
           | #default         = {{
  }}{{
+
            #ifexpr: {{ #time: U }} - {{ #time: U | {{REVISIONTIMESTAMP}} }} < 3456000<!-- everything else auto-archives after 40 days -->
    #if: {{{3|}}}{{{4|}}}{{{5|}}}
+
            || 1
    | [[Category:Forumheader transclusions to be checked|P]]<!-- see if {{{3}}}-{{{5}}} are used anywhere and if so how -->
+
           }}
  }}{{
+
        }}
    #if: {{{index|}}}{{{demo|}}}
+
       }}
    | <!-- forum index or demonstration page; no further parameter checking necessary -->
 
    | {{
 
      #switch: {{{1}}}
 
      | ¬ = [[Category:Forumheader transclusions to be checked|U]]<!-- {{{1}}} not used (bad for obvious reasons) -->
 
      |  = [[Category:Forumheader transclusions to be checked|E]]<!-- {{{1}}} 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           = <!-- valid value -->
 
      | #default                           = [[Category:Forumheader transclusions to be checked|I]]<!-- invalid value -->
 
    }}{{
 
      #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           = <!-- 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>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 08:02, 4 June 2019