Difference between revisions of "Template:Forum/header"

From Yugipedia
Jump to: navigation, search
m (WikiSwitch Page clone from w:c:ghostintheshell:Template:Forumheader.)
 
(merge in code from w:c:starter:Template:Forumheader and w:c:anime:Template:Forumheader + some (more) code cleanup/spinning of my own)
Line 1: Line 1:
<noinclude>{{AutoTemplate}}
+
<noinclude>
</noinclude>{| class="forumheader fill-horiz"
+
{{AutoTemplate}}
|-
+
</noinclude><div class="forumheader">'''Forums:''' [[Forum:Index|Index]] '''''→''''' [[Forum:{{{1}}}|{{{1}}}]] '''''→''''' {{PAGENAME}}
| class="fill-horiz" | '''Forums:''' [[Forum:Index|Index]] '''''→''''' <span style="display: inline-table;">{{#switch:{{{1|}}}|index={{PAGENAME}}|[[Forum:{{{1}}}|{{{1}}}]]{{#if:{{{2|}}}|<br/>[[Forum:{{{2}}}|{{{2}}}]]|}}{{#if:{{{3|}}}|<br/>[[Forum:{{{3}}}|{{{3}}}]]|}}{{#if:{{{4|}}}|<br/>[[Forum:{{{4}}}|{{{4}}}]]|}}{{#if:{{{5|}}}|<br/>[[Forum:{{{5}}}|{{{5}}}]]|}}}}{{
+
  <div class="forumnewpost {{#ifeq:{{{1}}}|index|hide}}" style="float: right;">[{{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]</div>
#switch:{{{1|}}}|index=| <nowiki/> '''''→''''' {{PAGENAME}}}}</span>
+
</div><includeonly>{{
| style="width: 65px;" class="plainlinks right nowrap{{#switch:{{{1|}}}|index=<nowiki/> hide| }}" | [{{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]
+
  #ifeq: {{{1}}} | index | [[Category:Forums]] | [[Category:{{{1}}}]]__NEWSECTIONLINK__
|}<br />
+
}}{{<!-- maintenance cats -->
 
+
  #ifeq: {{NAMESPACE}} | {{NS:110}}
{{#switch:{{{1|}}}|index=[[Category:Forums]]|[[Category:{{{1}}}|{{PAGENAME}}]]{{#if:{{{2|}}}|[[Category:{{{2}}}|{{PAGENAME}}]]|}}{{#if:{{{3|}}}|[[Category:{{{3}}}|{{PAGENAME}}]]|}}{{#if:{{{4|}}}|[[Category:{{{4}}}|{{PAGENAME}}]]|}}{{#if:{{{5|}}}|[[Category:{{{5}}}|{{PAGENAME}}]]|}}}}
+
  | <!-- page is in the Forum: namespace -->
<noinclude>[[Category:Forums]]</noinclude>
+
  | [[Category:Forumheader transclusions to be checked|N]]<!-- page is not in the Forum: namespace -->
{{#switch:{{{1|}}}|index=|__NEWSECTIONLINK__}}
+
}}{{
 +
  #if: {{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}
 +
  | [[Category:Forumheader transclusions to be checked|P]]<!-- see if {{{2}}}-{{{5}}} are used anywhere and if so how -->
 +
}}{{
 +
  #ifeq: {{{1|¬}}} | ¬
 +
  | [[Category:Forumheader transclusions to be checked|U]]<!-- {{{1}}} not used (bad for obvious reasons) -->
 +
  | {{
 +
    #if: {{{1|}}}
 +
    | <!-- {{{1}}} not empty (may add a check later for nonstandard values, but for now we'll assume any value is fine) -->
 +
    | [[Category:Forumheader transclusions to be checked|E]]<!-- {{{1}}} empty -->
 +
  }}
 +
}}</includeonly><noinclude>
 +
[[Category:Forums]]
 +
</noinclude>

Revision as of 06:57, 11 May 2010

Template:AutoTemplate

Forums: Index [[Forum:{{{1}}}|{{{1}}}]] Forum/header