Template Documentation (sometimes hidden or invisible)
Template tools: purge • what links here • what transclude this • subpages |
- Description
This template is the header for every forum page.
- Dependencies
This template uses {{!}}
, the CSS class:
/*============================ 3. Forum Formatting ============================*/ /* Forum formatting - Algorithm & Splarka */ .forumheader { border: 1px solid #aaa; background-color: #f9f9f9; margin-top: 1em; padding: 12px; } .forumlist td span { display: block; padding-left: 10px; font-size: smaller } .forumlist td span a { text-decoration: none; } .forumlist td span.forum_author { padding-left: 30px; } .forumlist td.forum_edited a { text-decoration: none } .forumlist th.forum_title { padding-left: 20px; } .forumlist td.forum_title a { padding-left: 20px; } .forumlist td.forum_title span a { padding-left: 0px } .forumlist td.forum_title a.forum_new { font-weight: bold; padding-left: 20px; background: url(/images/4/4e/Forum_new.gif) center left no-repeat;} .forumlist td.forum_title a.forum_new:visited { font-weight: normal; background: none; padding-left: 20px; } /* remove talk link from forum namespace (Monobook/Monaco) - Splarka */ body.ns-110 #ca-talk, body.ns-110 #page_tabs li+li { display: none; }
And the Jave Script:
/** Archive edit tab disabling ************************************* * Disables the edit tab on old forum topic pages to stop new people bumping old topics. * Page can still be edited by going via the edit tab on the history etc, or by * typing the edit address manually. * By [[User:Spang|Spang]] * Monaco support by [[User:Uberfuzzy|Uberfuzzy]] * Oasis support by [[User:Uberfuzzy|Uberfuzzy]] */ if(wgNamespaceNumber == 110) { function disableOldForumEdit() { if( typeof( enableOldForumEdit ) != 'undefined' && enableOldForumEdit ) { return; } if( !document.getElementById('old-forum-warning') ) { return; } if( skin == 'oasis' ) { $("#WikiaPageHeader .wikia-menu-button li a:first").html('Archived').removeAttr('href' ); $('#WikiaPageHeader .wikia-button').html('Archived').removeAttr('href'); return; } if( !document.getElementById('ca-edit') ) { return; } var editLink = null; if( skin == 'monaco' ) { editLink = document.getElementById('ca-edit'); } else if( skin == 'monobook' ) { editLink = document.getElementById('ca-edit').firstChild; } else { return; } editLink.removeAttribute('href', 0); editLink.removeAttribute('title', 0); editLink.style.color = 'gray'; editLink.innerHTML = 'Archived'; $('span.editsection-upper').remove(); } addOnloadHook( disableOldForumEdit ); }
- Syntax
{{Forumheader|Category 1|Subcategory 2|closed=1|stickied=Stickied category}}
- Parameters
Category 1/1= the first free parameter define the main forum category - free, optional.
Subcategory 2/2= the second free parameter define the sub forum category - free, optional.
closed= with any not null value, it will lock the thread - optional.
stickied= the name of the stickied category to add - optional.
Archiving Threads
- Manual Lock
If you want to lock a forum add the parameter closed=1
(any value, but "no
" is ok, as long it's not null) to the template. You will get a message like this:
Do not add to unless it really needs a response.
- Automatic Lock
The template will automatically lock a forum after a set number of days, currently 60 days. To change it, replace the value in Template:Forumheader/days with the desired number of days. When the limit is reached, the template will produce a message like this:
Do not add to unless it really needs a response.
- Leave a Thread Opened
If closed=no
then the thread won't be closed.
- Stickied Category
Adding a stickied category will automatically add the forum page to that category, moreover the forum won't be archived.
- Note
A "locked" forum can still be edited using the links in the history page, the bottom user toolbar (if present) or by manually adding the ?action=edit
to the page url.
- All subpages
- Forumheader/Community Café
- Forumheader/Miscellaneous
- Forumheader/One Piece Anime
- Forumheader/One Piece Misc
- Forumheader/One Piece Music
- Forumheader/Site Changes
- Forumheader/Site Problems
- Forumheader/Spoilers
- Forumheader/The Forum
- Forumheader/Translation
- Forumheader/Users to Be Banned
- Forumheader/Wikia Appearance
- Forumheader/days
- Forumheader/doc
- See Also
Visit Template:Forumheader/doc to edit this text! (How does this work?) (Refresh this text - why?)