Difference between revisions of "Template:Forum/header"

From Yugipedia
Jump to: navigation, search
(Rm. the post button for old threads.)
(IIRC, multiple IDs on the same element is invalid HTML (oh, and here's some more cleanup/tweaking))
Line 2: Line 2:
 
| style = height: 3.5em; width: 100%; margin: 0;
 
| style = height: 3.5em; width: 100%; margin: 0;
 
| image = '''Forums:'''
 
| image = '''Forums:'''
| imageright = {{#ifexpr:{{#expr:{{#time: U}} - {{#time: U | {{REVISIONTIMESTAMP}}}} }} > 3456000 |<!--no post button in old threads-->|<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>}}
+
| imageright = {{ #ifexpr: {{ #time: U }} - {{ #time: U | {{REVISIONTIMESTAMP}} }} > 3456000
 +
    | <!-- no post button in old threads -->
 +
    | <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]] '''''→''''' {{
 
| text  = [[Forum:Index|Index]] '''''→''''' {{
 
     #if: {{{index|}}}
 
     #if: {{{index|}}}
Line 19: Line 22:
 
   | {{
 
   | {{
 
     #switch: {{{1}}}
 
     #switch: {{{1}}}
     | Yu-Gi-Oh! Wiki Discussion = [[Category:General Yu-Gi-Oh! Discussion|{{PAGENAME}}]]__NEWSECTIONLINK__
+
     | Yu-Gi-Oh! Wiki Discussion = [[Category:General Yu-Gi-Oh! Discussion|{{PAGENAME}}]]
     | [[Category:{{{1}}}|{{PAGENAME}}]]__NEWSECTIONLINK__
+
     | [[Category:{{{1}}}|{{PAGENAME}}]]
 
   }}
 
   }}
 
}}{{
 
}}{{
Line 27: Line 30:
 
   #if: {{{sticky|}}} | [[Category:Sticky threads|{{PAGENAME}}]]
 
   #if: {{{sticky|}}} | [[Category:Sticky threads|{{PAGENAME}}]]
 
}}</includeonly>{{
 
}}</includeonly>{{
   #switch: {{ #titleparts: {{FULLPAGENAME}} | 1 | 1 }}
+
   #ifeq: {{ #titleparts: {{FULLPAGENAME}} | 1 | 1 }}
  | Template:Forumheader
+
   | Template:Forum = <!-- no maintenance cats for Template:Forum or any subtemplates, though we are going to do a bit else here -->{{
   | 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 =  
+
     | Forum/header   | Forum/header/doc  | Forum/header/sandbox  | Forum/header/testcases | Forum =  
 
     | #default = [[Category:Forumheader preload templates|{{SUBPAGENAME}}]]<!-- keep track of the preload templates -->
 
     | #default = [[Category:Forumheader preload templates|{{SUBPAGENAME}}]]<!-- keep track of the preload templates -->
 
   }}
 
   }}
Line 38: Line 40:
 
     | <!-- page is in the Forum: namespace -->
 
     | <!-- page is in the Forum: namespace -->
 
     | [[Category:Forumheader transclusions to be checked|N]]<div class="sysop-show" style="display: none;">{{Ombox
 
     | [[Category:Forumheader transclusions to be checked|N]]<div class="sysop-show" style="display: none;">{{Ombox
| type = move
+
      | type = move
| 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]].
+
      | 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 -->
+
    }}</div><!-- page is not in the Forum: namespace -->
   }}{{<!--Stop necrobumping-->
+
   }}{{
  #ifexpr:{{#expr:{{#time: U}} - {{#time: U | {{REVISIONTIMESTAMP}}}} }} > 3456000 |<div id="archived-edit-link"></div><div id="archived-addsection-link"></div>
+
    #if: {{{index|}}} <!-- no necro check on forum index pages -->
{{ombox
+
    | | {{
| type = speedy
+
      #ifexpr: {{ #time: U }} - {{ #time: U | {{REVISIONTIMESTAMP}} }} > 3456000 <!-- stop necrobumping on threads unedited for 40+ days -->
| 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.
+
      | <div id="archived-edit-link"></div><div id="archived-addsection-link"></div>
}}__NOEDITSECTION__ __NEWSECTIONLINK__
+
      {{ombox
 +
        | type = speedy
 +
        | text = This forum thread has been unedited for '''{{ #expr: ( {{ #time: U }} - {{ #time: U | {{REVISIONTIMESTAMP}} }} ) / 86400 round 0 }} days''' and is considered archived. Please don't add to the discussion, unless necessary.
 +
      }}__NOEDITSECTION__ __NONEWSECTIONLINK__
 +
      | __NEWSECTIONLINK__<!-- new section link for non-ancient threads -->
 +
    }}
 
   }}{{
 
   }}{{
 
     #if: {{{3|}}}{{{4|}}}{{{5|}}}
 
     #if: {{{3|}}}{{{4|}}}{{{5|}}}

Revision as of 20:13, 28 February 2011