Template:Fix: Difference between revisions
Jump to navigation
Jump to search
1416006136 (talk | contribs) mNo edit summary |
(Added documentation.) |
||
Line 1: | Line 1: | ||
{{lang|Template:Fix}} | {{lang|Template:Fix}} | ||
[[ | <!--Don't remove the div! It prevents multiple tranclusions of the template from fusing together into one single table row.--><!-- | ||
--><onlyinclude><includeonly>{{#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> }}</includeonly></onlyinclude> | |||
This template is for marking a fix for a given issue. | This template is for marking a fix for a given issue. | ||
{{fix|{{{1}}}}} | The documentation does not show that passing a 2nd parameter with the text <code>code</code> marks this as a "code fix" in particular. | ||
< | {| style=background:none | ||
| <code><nowiki>{{fix|{{{1}}}}}</nowiki></code> || → || {{fix|{{{1}}}}} | |||
< | |- | ||
{{fix|{{{1}}}|code}} | | <code><nowiki>{{fix|{{{1}}}|code}}</nowiki></code> || → || {{fix|{{{1}}}|code}} | ||
|} | |||
{{documentation|Template:Note/doc}} |
Revision as of 04:08, 13 December 2021
This template is for marking a fix for a given issue.
The documentation does not show that passing a 2nd parameter with the text code
marks this as a "code fix" in particular.
{{fix|{{{1}}}}} |
→ | ![]() |
{{fix|{{{1}}}|code}} |
→ | ![]() |
The above documentation is transcluded from Template:Fix/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.