Permanently protected template

Difference between revisions of "Template:Forum/header"

From Yugipedia
Jump to: navigation, search
(Is it possible to give multiple ids to the same div?)
m (Protected "Template:Forum/header": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(36 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="{{ #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>
+
    | Yu-Gi-Oh! Wiki Discussion = General Yu-Gi-Oh! Discussion
| text  = [[Forum:Index|Index]] '''''→''''' {{
+
    | #default                  = {{{1|}}}
     #if: {{{index|}}}
+
  }}
    || {{
+
| 2        = {{
      #switch: {{{1}}}
+
     #switch: {{{2}}}<!-- #switch in the event we ever rename or split more forums -->
      | Yu-Gi-Oh! Wiki Discussion = [[Forum:General Yu-Gi-Oh! Discussion|General Yu-Gi-Oh! Discussion]] '''''→'''''
+
     | Yu-Gi-Oh! Wiki Discussion = General Yu-Gi-Oh! Discussion
      | [[Forum:{{{1}}}|{{{1}}}]] '''''→'''''
+
    | #default                  = {{{2|}}}
    }}
 
  }} {{PAGENAME}}{{
 
     #if: {{{2|}}}
 
     | <br />[[Forum:Index|Index]] '''''→''''' [[Forum:{{{2}}}|{{{2}}}]] '''''→''''' {{PAGENAME}}
 
 
   }}
 
   }}
}}<includeonly>{{<!-- topic cats -->
+
| index    = {{
  #if: {{{index|}}}
+
    #switch: {{FULLPAGENAME}}
  | [[Category:Forums|{{PAGENAME}}]]
+
    | Forum:Help desk                          | Forum:General Yu-Gi-Oh! Discussion
  | {{
+
    | Forum:Yu-Gi-Oh! Wiki Community Discussion | Forum:Yu-Gi-Oh! Deck Help
    #switch: {{{1}}}
+
     | Forum:Yu-Gi-Oh! Ruling Queries            | Forum:Yu-Gi-Oh! Lists Discussion
     | Yu-Gi-Oh! Wiki Discussion =  [[Category:General Yu-Gi-Oh! Discussion|{{PAGENAME}}]]__NEWSECTIONLINK__
+
    | Forum:Duel Terminal                      | Forum:Weekly Deck Competition
     | [[Category:{{{1}}}|{{PAGENAME}}]]__NEWSECTIONLINK__
+
     | Template:Forum                            = {{PAGENAME}}
 
   }}
 
   }}
}}{{
+
| sticky   = {{{sticky|}}}
  #if: {{{2|}}} | [[Category:{{{2}}}|{{PAGENAME}}]]
+
| demo    = {{{demo|}}}
}}{{
+
| archived = {{
   #if: {{{sticky|}}} | [[Category:Sticky threads|{{PAGENAME}}]]
 
}}</includeonly>{{
 
  #switch: {{ #titleparts: {{FULLPAGENAME}} | 1 | 1 }}
 
  | Template:Forumheader
 
  | Template:Forum = <!-- no maintenance cats for Template:Forumheader, Template:Forum, or any subtemplates, though we are going to do a bit else here -->{{
 
 
     #switch: {{PAGENAME}}
 
     #switch: {{PAGENAME}}
     | Forumheader  | Forumheader/doc  | Forumheader/sandbox  | Forumheader/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;">{{Ombox
+
      #if: {{{archived|}}}{{{last edit|}}}{{ #ifeq: {{PROTECTIONLEVEL:edit}} | sysop | 1 }}<!-- manually archiving overrides everything else -->
| type = move
+
      | 1
| 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], and then [{{fullurl:{{FULLPAGENAMEE}}|action=edit}} null edit] the page to remove it from the [[:Category:Forumheader transclusions to be checked|maintenance category]].
+
      | {{
}}</div><!-- page is not in the Forum: namespace -->
+
        #if: {{{sticky|}}}{{{demo|}}}<!-- sticky threads and demos don't auto-archive -->
  }}{{<!--Stop necrobumping-->
+
        || {{
  #ifexpr:{{#expr:{{#time: U}} - {{#time: U | {{REVISIONTIMESTAMP}}}} }} > 3456000 |<div id="archived-edit-link"></div><div id="archived-addsection-link"></div>
+
          #switch: Yu-Gi-Oh! Wiki Community Discussion<!-- wiki discussions don't auto-archive -->
{{ombox
+
          | {{{1}}} | {{{2}}} =  
| type = speedy
+
           | #default         = {{
| text = This topic has been unedited for '''{{#expr:({{#time: U}} - {{#time: U | {{REVISIONTIMESTAMP}}}}) / 86400 round 0}} days''' and is considered to be archived. Please don't add to the discussion, unless necessary.
+
            #ifexpr: {{ #time: U }} - {{ #time: U | {{REVISIONTIMESTAMP}} }} < 3456000<!-- everything else auto-archives after 40 days -->
}}__NOEDITSECTION__ __NEWSECTIONLINK__
+
            || 1
  }}{{
+
           }}
    #if: {{{3|}}}{{{4|}}}{{{5|}}}
+
        }}
    | [[Category:Forumheader transclusions to be checked|P]]<!-- see if {{{3}}}-{{{5}}} are used anywhere and if so how -->
+
       }}
  }}{{
 
    #if: {{{index|}}}
 
    | <!-- forum index 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>
[[Category:Forums|{{PAGENAME}}]]
+
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 08:02, 4 June 2019