Template:Bugfix: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Template:Bugfix prototype/experiment)
 
(Now a shortcut to the two templates)
Line 1: Line 1:
<noinclude>
<noinclude>
[[Category:Notice templates|{{PAGENAME}}]]
[[Category:Notice templates|{{PAGENAME}}]]
This variant of [[Template:Bug]] is for documenting bugs with their own "fixes" attached to them, created in an attempt to encourage listing how to fix given bugs. Formatting is identical to Template:Bug, but there is an additional parameter for talking about how to fix the bug. This means applying this to an existing Template:Bug will just involve changing it to Template:Bug''fix'' and adding another parameter.
This was created as a variant of [[Template:Bug]] for documenting bugs with their own "fixes" attached to them, created in an attempt to encourage listing how to fix given bugs. Formatting is identical to Template:Bug, but there is an additional parameter for talking about how to fix the bug, meaning applying this to an existing Template:Bug will just involve changing it to Template:Bug''fix'' and adding another parameter. The [[Template:Fix]] template was created to allow for the "Fix" text to be displayed without accompanying a bug, so this template can now be considered a shortcut for using Template:Bug with its own Template:Fix.
<!--Don't remove the div! It prevents multiple tranclusions of the template from fusing together into one single table row.--></noinclude>
</noinclude>
<div><span style="color:#b03434;display:table-cell;white-space:nowrap;padding-left:1em">[[File:Bug.png|link=|alt=]] '''Bug:'''&nbsp;</span><span style="display:table-cell;">{{{1}}}</span></div>
{{bug|{{{1}}}}}
: <div><span style="color:#71e354;display:table-cell;white-space:nowrap;padding-left:1em">[[File:Note.png|link=|alt=]] '''Fix:'''&nbsp;</span><span style="display:table-cell;">{{{2}}}</span></div>
: {{fix|{{{2}}}}}

Revision as of 13:59, 18 September 2019

This was created as a variant of Template:Bug for documenting bugs with their own "fixes" attached to them, created in an attempt to encourage listing how to fix given bugs. Formatting is identical to Template:Bug, but there is an additional parameter for talking about how to fix the bug, meaning applying this to an existing Template:Bug will just involve changing it to Template:Bugfix and adding another parameter. The Template:Fix template was created to allow for the "Fix" text to be displayed without accompanying a bug, so this template can now be considered a shortcut for using Template:Bug with its own Template:Fix.

Icon-Bug.pngBug:{{{1}}}  [todo tested in ?]
Note.pngFix:{{{2}}}