Difference between revisions of "Template:Forum/header"
(Pass {{{last edit|}}} into {{Forum/header/core}}) |
Dinoguy1000 (talk | contribs) (allow threads to be manually archived simply by setting {{{last edit}}}) |
||
Line 28: | Line 28: | ||
| Yu-Gi-Oh! Wiki Discussion = <!-- forum indexes *never* get archived --> | | Yu-Gi-Oh! Wiki Discussion = <!-- forum indexes *never* get archived --> | ||
| #default = {{ | | #default = {{ | ||
− | #if: {{{archived|}}}<!-- manually archiving overrides everything else --> | + | #if: {{{archived|}}}{{{last edit|}}}<!-- manually archiving overrides everything else --> |
| 1 | | 1 | ||
| {{ | | {{ |
Revision as of 02:47, 21 October 2011
Forums: | Index → [[Forum:|]] → Forum/header Please sign your comments with ~~~~. See Help:Signatures and Help:Talk pages for further information. |
{{Forum/header}}
is a template used to organize forum threads. It appears at the top of forum pages and allows them to appear in forum indexes and categories. It also produces certain notices depending on the status of the forum thread.
Usage
In the vast majority of cases, it is not necessary to manually add or modify this template, as it is added automatically when a thread is created using the "new topic" box.
The first unnamed parameter is for the name of the forum section: {{Forum/header|Section of the forum}}
For example, {{Forum/header|General Yu-Gi-Oh! Discussion}}
produces:
Forums: | Index → General Yu-Gi-Oh! Discussion → Forum/header Please sign your comments with ~~~~. See Help:Signatures and Help:Talk pages for further information. |
A second unnamed parameter can be used to add the thread to another section. For example: {{Forum/header|Yu-Gi-Oh! Wiki Community Discussion|Yu-Gi-Oh! Ruling Queries}}
produces:
Forums: | Index → Yu-Gi-Oh! Wiki Community Discussion → Forum/header Index → Yu-Gi-Oh! Ruling Queries → Forum/header Please sign your comments with ~~~~. See Help:Signatures and Help:Talk pages for further information. |
To sticky a thread (i.e. add it to a separate section on index pages, so that it will remain near the top regardless of how long it has been since it was last edited), add |sticky=true to the template. For example: {{Forum/header|Yu-Gi-Oh! Deck help|sticky=true}}
produces:
Forums: | Index → Yu-Gi-Oh! Deck Help → Forum/header Please sign your comments with ~~~~. See Help:Signatures and Help:Talk pages for further information. |
To demonstrate how to use the template, add |demo=true to the template; this will prevent it from adding any categories or displaying the move or archive notices. For example: {{Forum/header|Yu-Gi-Oh! Lists Discussion|demo=true}}
(all the examples provided here use this).
Notices
Wrong namespace
If the thread is not in the forum namespace, a box instructing that the page be moved appears. By default, this box only shows for administrators, but other users can make it visible by adding the code div.sysop-show { display: block !important; }
to their wikia.css or monobook.css file.
Administrators: This page is in the wrong namespace.
|
Archived
If the thread was last edited more than 40 days ago, the edit and new topic links become unavailable and the following notice appears. The number of days increases the longer the thread goes unedited. This notice does not appear on sticky threads, index pages, or threads in the Wiki Discussion forum.
Wiki Discussion and sticky threads, as well as threads not old enough to be auto-archived, can be manually archived by adding |archived=true to the template. To avoid resetting the day count to 0 when manually archiving, |last edit=date can be used to get the counter to start from a specified date, which should usually be the date of the edit before the manual archive (for instance, to set the last date at 14:37, August 21, 2011, you would write |last edit=14:37, August 21, 2011). The time zone used should be UTC.
This forum thread has been unedited for 4681 days and is considered archived. |
Threads which have been full protected are automatically considered archived, regardless of how long it's been since the last edit or if the last edit
or archived
parameters have been used. All threads which have been full protected also omit the "Please don't add to the discussion, unless absolutely necessary." sentence, since non-admins cannot edit them.