Difference between revisions of "Template:Forum/header"
(Rm. the post button for old threads.) |
Dinoguy1000 (talk | contribs) (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 | + | | 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§ion=new}} http://images.wikia.com/anime/en/images/4/4e/Forum_new.gif] [{{fullurl:{{FULLPAGENAMEE}}|action=edit§ion=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 = | + | | Yu-Gi-Oh! Wiki Discussion = [[Category:General Yu-Gi-Oh! Discussion|{{PAGENAME}}]] |
− | | [[Category:{{{1}}}|{{PAGENAME}}]] | + | | [[Category:{{{1}}}|{{PAGENAME}}]] |
}} | }} | ||
}}{{ | }}{{ | ||
Line 27: | Line 30: | ||
#if: {{{sticky|}}} | [[Category:Sticky threads|{{PAGENAME}}]] | #if: {{{sticky|}}} | [[Category:Sticky threads|{{PAGENAME}}]] | ||
}}</includeonly>{{ | }}</includeonly>{{ | ||
− | # | + | #ifeq: {{ #titleparts: {{FULLPAGENAME}} | 1 | 1 }} |
− | + | | 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 | ||
#switch: {{PAGENAME}} | #switch: {{PAGENAME}} | ||
− | | | + | | 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 --> |
− | }}{{<!-- | + | }}{{ |
− | + | #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 | + | | <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
Forums: | Index → [[Forum:{{{1}}}|{{{1}}}]] → Forum/header |