Permanently protected template

Difference between revisions of "Template:Forum/header"

From Yugipedia
Jump to: navigation, search
({{{index}}} should not be used on non-forum index pages, so check for it)
(convert to raw HTML table so I can steal a very good idea from w:c:inheritance:Template:Forumheader)
Line 1: Line 1:
{{Ombox
+
<table class="plainlinks ombox ombox-notice" style="height: 3.5em; width: 100%; margin: 0;">
| style = height: 3.5em; width: 100%; margin: 0;
+
<tr>
| image = '''Forums:'''
+
<td class="mbox-image">'''Forums:'''</td>
| imageright = {{
+
<td class="mbox-text">[[Forum:Index|Index]] '''''→''''' {{
 +
    #if: {{{index|}}}
 +
    || {{
 +
      #ifeq: {{{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}}
 +
  }}</td>
 +
<td class="mbox-imageright" rowspan="2">{{
 
     #ifexpr: {{
 
     #ifexpr: {{
 
       #if: {{{sticky|}}}{{{demo|}}}<!-- bypass time check for stickied and demo uses -->
 
       #if: {{{sticky|}}}{{{demo|}}}<!-- bypass time check for stickied and demo uses -->
Line 12: Line 23:
 
       || <span 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>
 
       || <span 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>
 
     }}
 
     }}
   }}
+
   }}</td>
| text  = [[Forum:Index|Index]] '''''→''''' {{
+
</tr>
    #if: {{{index|}}}
+
<tr>
    || {{
+
<td class="mbox-text" style="padding-top: 0;" colspan="2"><span style="font-size: 10px;">Please sign your comments with <nowiki>~~~~</nowiki>. See [[w:c:help:Help:Signature|Help:Signature]] and [[w:c:help:Help:Talk pages|Help:Talk pages]] for further information.</span></td>
      #ifeq: {{{1}}} | Yu-Gi-Oh! Wiki Discussion
+
</tr>
      | [[Forum:General Yu-Gi-Oh! Discussion|General Yu-Gi-Oh! Discussion]]
+
</table><includeonly>{{<!-- topic cats -->
      | [[Forum:{{{1}}}|{{{1}}}]]
 
    }} '''''→'''''
 
  }} {{PAGENAME}}{{
 
    #if: {{{2|}}}
 
    | <br />[[Forum:Index|Index]] '''''→''''' [[Forum:{{{2}}}|{{{2}}}]] '''''→''''' {{PAGENAME}}
 
  }}
 
}}<includeonly>{{<!-- topic cats -->
 
 
   #if: {{{demo|}}}
 
   #if: {{{demo|}}}
 
   | <!-- no categories for demo uses -->
 
   | <!-- no categories for demo uses -->

Revision as of 04:40, 16 May 2011