Difference between revisions of "Template:Forum/header"

From Yugipedia
Jump to: navigation, search
(been switched over to {{{index}}} for several months now)
(don't be so afraid of whitespace (and fix bug I inadvertently/carelessly added in my previous edit))
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 = <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 = <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]] '''''→''''' {{#if:{{{index|}}}||{{#switch:{{{1}}}|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}}}}
+
| text  = [[Forum:Index|Index]] '''''→''''' {{
 +
    #if: {{{index|}}}
 +
    || {{
 +
      #switch: {{{1}}}
 +
      | 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}}
 +
  }}
 
}}<includeonly>{{<!-- topic cats -->
 
}}<includeonly>{{<!-- topic cats -->
 
   #if: {{{index|}}}
 
   #if: {{{index|}}}
 
   | [[Category:Forums|{{PAGENAME}}]]
 
   | [[Category:Forums|{{PAGENAME}}]]
 
   | {{
 
   | {{
     #switch: {{{1}}} | Yu-Gi-Oh! Wiki Discussion =  [[Category:General Yu-Gi-Oh! Discussion|{{PAGENAME}}]]__NEWSECTIONLINK__ | [[Category:{{{1}}}|{{PAGENAME}}]]__NEWSECTIONLINK__
+
     #switch: {{{1}}}
 +
    | Yu-Gi-Oh! Wiki Discussion =  [[Category:General Yu-Gi-Oh! Discussion|{{PAGENAME}}]]__NEWSECTIONLINK__
 +
    | [[Category:{{{1}}}|{{PAGENAME}}]]__NEWSECTIONLINK__
 
   }}
 
   }}
 
}}{{
 
}}{{
Line 15: Line 27:
 
   #if: {{{sticky|}}} | [[Category:Sticky threads|{{PAGENAME}}]]
 
   #if: {{{sticky|}}} | [[Category:Sticky threads|{{PAGENAME}}]]
 
}}</includeonly>{{
 
}}</includeonly>{{
   #switch: {{#titleparts:{{FULLPAGENAME}}|1|1}}
+
   #switch: {{ #titleparts: {{FULLPAGENAME}} | 1 | 1 }}
 
   | Template:Forumheader
 
   | 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 -->{{
 
   | Template:Forum = <!-- no maintenance cats for Template:Forumheader, Template:Forum, or any subtemplates, though we are going to do a bit else here -->{{
Line 25: Line 37:
 
     #ifeq: {{NAMESPACE}} | {{NS:110}}
 
     #ifeq: {{NAMESPACE}} | {{NS:110}}
 
     | <!-- 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|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]].}}</div><!-- page is not in the Forum: namespace -->
+
     | [[Category:Forumheader transclusions to be checked|N]]<div class="sysop-show" style="display: none;">{{Ombox
 +
| 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]].
 +
}}</div><!-- page is not in the Forum: namespace -->
 
   }}{{
 
   }}{{
 
     #if: {{{3|}}}{{{4|}}}{{{5|}}}
 
     #if: {{{3|}}}{{{4|}}}{{{5|}}}
Line 36: Line 51:
 
       | ¬ = [[Category:Forumheader transclusions to be checked|U]]<!-- {{{1}}} not used (bad for obvious reasons) -->
 
       | ¬ = [[Category:Forumheader transclusions to be checked|U]]<!-- {{{1}}} not used (bad for obvious reasons) -->
 
       |  = [[Category:Forumheader transclusions to be checked|E]]<!-- {{{1}}} empty -->
 
       |  = [[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 -->
+
       | Help desk                           | General Yu-Gi-Oh! Discussion
       | #default = [[Category:Forumheader transclusions to be checked|I]]<!-- invalid value -->
+
      | 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|¬}}}
 
       #switch: {{{2|¬}}}
 
       |  = [[Category:Forumheader transclusions to be checked|E]]<!-- {{{2}}} empty -->
 
       |  = [[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 -->
+
       | ¬                                   | Help desk           | General Yu-Gi-Oh! Discussion
       | #default = [[Category:Forumheader transclusions to be checked|I]]<!-- invalid value -->
+
      | 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 -->
 
     }}
 
     }}
 
   }}
 
   }}

Revision as of 05:13, 11 February 2011