Template:Fix: Difference between revisions
Jump to navigation
Jump to search
Fix: {{{1}}}
Code Fix: {{{1}}}
(Created separate "Fix" template, as opposed to the hybrid Template:Bugfix) |
(Added "code fix" variant) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
[[Category:Notice templates|{{PAGENAME}}]] | [[Category:Notice templates|{{PAGENAME}}]] | ||
<!--Don't remove the div! It prevents multiple tranclusions of the template from fusing together into one single table row.--></noinclude><div><span style="color:#71e354;display:table-cell;white-space:nowrap;padding-left:1em">[[File:Note.png|link=|alt=]] '''Fix:''' </span><span style="display:table-cell;">{{{1}}}</span></div> | This template is for marking a fix for a given issue. | ||
<!--Don't remove the div! It prevents multiple tranclusions of the template from fusing together into one single table row.--></noinclude>{{#ifeq: {{{2|}}} | code | | |||
<div><span style="color:#5ba5eb;display:table-cell;white-space:nowrap;padding-left:1em">[[File:Cpp.png|link=|alt=]] '''Code Fix:''' </span><span style="display:table-cell;">{{{1}}}</span></div> | | |||
<div><span style="color:#71e354;display:table-cell;white-space:nowrap;padding-left:1em">[[File:Note.png|link=|alt=]] '''Fix:''' </span><span style="display:table-cell;">{{{1}}}</span></div> }} | |||
<noinclude> | |||
Passing a 2nd parameter with the text <code>code</code> marks this as a "code fix" in particular. | |||
{{fix|{{{1}}}|code}} | |||
</noinclude> |
Revision as of 10:57, 19 September 2019
This template is for marking a fix for a given issue.

Passing a 2nd parameter with the text code
marks this as a "code fix" in particular.
