- 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.
Difference between revisions of "Template:Bug/doc"
m (add "workaround in comments" description) |
(Update bug tracker URL) |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | Used for linking to bugs on the [ | + | Used for linking to bugs on the [https://dwarffortressbugtracker.com/ Bug Tracker] |
− | |||
+ | See also [[:Category:References to fixed bugs]] | ||
==Usage== | ==Usage== | ||
Line 7: | Line 7: | ||
The first parameter is the number of the bug on the bug tracker. Leading 0's aren't necessary. | The first parameter is the number of the bug on the bug tracker. Leading 0's aren't necessary. | ||
<pre>{{bug|296}}</pre> | <pre>{{bug|296}}</pre> | ||
− | {{bug|296}} | + | {{bug|296|cat=nocat}} |
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. ([[Dwarf fortress wiki:Community Portal#T|Rule T]]) | 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. ([[Dwarf fortress wiki:Community Portal#T|Rule T]]) | ||
Line 13: | Line 13: | ||
Note that this parameter is '''named'''. You need to use <code><nowiki>workaround=http://...</nowiki></code>, not just the link as the second parameter. | Note that this parameter is '''named'''. You need to use <code><nowiki>workaround=http://...</nowiki></code>, not just the link as the second parameter. | ||
<pre>{{bug|6290|workaround=http://www.bay12forums.com/smf/index.php?topic=122782.0}}</pre> | <pre>{{bug|6290|workaround=http://www.bay12forums.com/smf/index.php?topic=122782.0}}</pre> | ||
− | {{bug|6290|workaround=http://www.bay12forums.com/smf/index.php?topic=122782.0}} | + | {{bug|6290|workaround=http://www.bay12forums.com/smf/index.php?topic=122782.0|cat=nocat}} |
If the workaround is listed in the comments of the bug report, use <pre>{{bug|number|workaround=comments}}</pre> | If the workaround is listed in the comments of the bug report, use <pre>{{bug|number|workaround=comments}}</pre> | ||
− | {{bug|1|workaround=comments}} | + | {{bug|1|workaround=comments|cat=nocat}} |
===Linking to an article's "bugs" section=== | ===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, <pre>{{bug}}</pre> produces this: {{bug}} | + | Some articles have a separate section for bugs. Using this template without a bug number will link to that section. For example, <pre>{{bug}}</pre> produces this: {{bug|cat=nocat}} |
− | If the section title containing bugs is something other than "Bugs", specify this in the <code>section</code> parameter. <pre>{{bug|section=Usage}}</pre> produces this: {{bug|section=Usage}} (this should jump to the Usage section of this documentation, which does not actually contain bugs). | + | If the section title containing bugs is something other than "Bugs", specify this in the <code>section</code> parameter. <pre>{{bug|section=Usage}}</pre> produces this: {{bug|section=Usage|cat=nocat}} (this should jump to the Usage section of this documentation, which does not actually contain bugs). |
==Bugs== | ==Bugs== | ||
− | This is a sample section, which would | + | 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. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | <includeonly>[[Category:Inline formatting templates]]</includeonly> | |
+ | <includeonly>[[Category:Link processing templates]]</includeonly> | ||
+ | <noinclude>[[Category:Template Documentation]]</noinclude> |
Latest revision as of 10:43, 21 November 2023
Used for linking to bugs on the Bug Tracker
See also Category:References to fixed bugs
Usage[edit]
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[edit]
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[edit]
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.