v50 Steam/Premium information for editors
- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.
Difference between revisions of "Template:Bug"
Jump to navigation
Jump to search
(Keep talk pages from being categorized) |
m (Protected "Template:Bug": High traffic page ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))) |
||
(11 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | <sup>{{#if:{{{1|}}}|Bug:[ | + | <span class="{{{class|}}}">{{#ifeq:{{{link|no}}}|no|<sup>{{#if:{{{1|}}}|[[#{{#var:bugsection|Bugs}}|Bug]]:[https://dwarffortressbugtracker.com/view.php?id={{{1}}} {{{1}}}] {{#switch:{{{workaround|none}}}|none=|comment|comments=<span style="color: #740;">(Workaround in comments)</span>|#default=([{{{workaround}}} Workaround])}}|[[#{{#var:bugsection|Bugs}}|Bug]]}}</sup>|{{#if:{{{1|}}}|[https://dwarffortressbugtracker.com/view.php?id={{{1}}} {{{title|{{{2|Bug {{{1}}}}}}}}}]|<span class="error">No bug ID provided</span>}}}}<includeonly>{{#ifeq:{{{cat|}}}|nocat||{{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}||{{Category|Bugs}}}}{{#ifeq:{{NAMESPACE}}|{{DF:Current}}|{{#ifeq:{{{link|no}}}|no|{{bug/check-fixed|{{{1}}}}}}}}}}}</span></includeonly><noinclude>{{documentation}}</noinclude> |
Latest revision as of 16:16, 30 November 2023
Bug
(view - edit - history - purge) Documentation
Used for linking to bugs on the Bug Tracker
See also Category:References to fixed bugs
Usage
The first parameter is the number of the bug on the bug tracker. Leading 0's aren't necessary.
{{bug|296}}
An optional parameter is a link to the workaround. This should be used temporarily, while the bug is not fixed. If the bug is fixed, remove it from the article. (Rule T)
Note that this parameter is named. You need to use workaround=http://...
, not just the link as the second parameter.
{{bug|6290|workaround=http://www.bay12forums.com/smf/index.php?topic=122782.0}}If the workaround is listed in the comments of the bug report, use
{{bug|number|workaround=comments}}
Bug:1 (Workaround in comments)
Linking to an article's "bugs" section
Some articles have a separate section for bugs. Using this template without a bug number will link to that section. For example,{{bug}}produces this: Bug If the section title containing bugs is something other than "Bugs", specify this in the
section
parameter. {{bug|section=Usage}}produces this: Bug (this should jump to the Usage section of this documentation, which does not actually contain bugs).
Bugs
This is a sample section, which would contain bugs in a real article. It is here to serve as an example for linking to the bugs section.