Template:BugNotice: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Use {{autolang}} and add Esperanto translation.)
(Will move doc content into it's own page.)
Line 970: Line 970:
       }}
       }}
   }}</includeonly></onlyinclude>
   }}</includeonly></onlyinclude>
{{doc|content={{Note/doc
{{doc}}
|otherparams=
The following parameters are used to categorize the bug by affected Source games. Parameter {{para|only}} cannot be used together with {{para|since}} and/or {{para|fixed}}.
 
* {{param|only}} - Abbreviation of the game or game series that has this bug. If blank, defaults to 'no game'. Do this to move pages with tool related or non-Source game bugs from [[:Category:Pages with uncategorized bugs]] to [[:Category:Pages with other bugs]].
* {{param|since}} - Since which game (abbreviation) does this bug exist? If blank or undefined, defaults to <code>css</code> (Counter-Strike: Source).
* {{param|fixed}} - Since which game (abbreviation) is this bug fixed? If blank or undefined, defaults to 'none' which means that the bug was never fixed in Source.
 
|otherexamples=
{{!}}-
{{!}} <code><nowiki>{{Bug|A Hammer bug.|only=}}</nowiki></code>
{{!}} &rarr;
{{!}} {{Bug|A Hammer bug.|only=}}
{{!}}-
{{!}} <code><nowiki>{{Bug|Nasty Witch bug.|only=l4ds}}</nowiki></code>
{{!}} &rarr;
{{!}} {{Bug|Nasty Witch bug.|only=l4ds}}
{{!}}-
{{!}} <code><nowiki>{{Bug|Bug that affects all Source games.|since=}}</nowiki></code>
{{!}} &rarr;
{{!}} {{Bug|Bug that affects all Source games.|since=}}
{{!}}-
{{!}} <code><nowiki>{{Bug|Issue patched in {{hl2ep1}}.|fixed=hl2ep1}}</nowiki></code>
{{!}} &rarr;
{{!}} {{Bug|Issue patched in {{hl2ep1}}.|fixed=hl2ep1}}
{{!}}-
{{!}} <code><nowiki>{{Bug|Affected {{as}} and {{portal2}}.|since=as|fixed=csgo}}</nowiki></code>
{{!}} &rarr;
{{!}} {{Bug|Affected {{as}} and {{portal2}}.|since=as|fixed=csgo}}
 
|othersections=
== Tracking categories ==
* {{clc|Pages with game bugs|pages}}
* {{clc|Pages with other bugs}}
* {{clc|Pages with uncategorized bugs}}
}}}}
== See Also ==
== See Also ==
*[[Template:ModernBug]] - A modern design version of this template.
*[[Template:ModernBug]] - A modern design version of this template.

Revision as of 06:21, 22 April 2023


English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history
Inline note templates
Template Pages using it
28 August 2024
{{note}} 6,436
{{warning}} 1,253
{{bug}} 1,192
{{tip}} 1,516
{{todo}} 1,628
{{inline note}} 2,188
{{confirm}} 672
{{question}} 11
{{fix}} 170
{{important}} 459
{{clarify}} 169
{{elaborate}} 18
{{main}} 143
{{distinguish}} 85
{{workaround}} 122
{{seealso}} 145
{{when}} 1
{{where}} 0
{{which}} 2
{{why}} 38
{{idea}} 21
{{placementTip}} 13
{{codenote}} 21
{{altnames}} 35
{{deprecated}} 109
{{how}} 23
{{example}} 16
{{confusion}} 53
{{thanks}} 7
{{code Fix}} 9 + 7 (16)
{{vote}} 4

Translations

Some translations are located in Template:Dictionary/notices strings subpage.

For the [todo tested in ?], see this strings subpage.

Usage

Parameters

  • {{{1}}} – The text to show on the right. The characters = and | can break this template because they are special characters in template calls. Use {{=}} and {{!}} instead; See Category:Templates for within templates.
  • {{{tested}}} – Provide what game/software was the bug observed in. If this is a bug known to be present everywhere or it's a bug on a page about single game/software you can use {{{hidetested}}} (shortcut for hidetested param use: {{Bug*}}). The purpose of this being required parameter is to make it easier verifying/replicating noted bugs.


The following parameters are used to categorize the bug by affected Source games. Parameter |only= cannot be used together with |since= and/or |fixed=.

  • {{{only}}} - Abbreviation of the game or game series that has this bug. If blank, defaults to 'no game'. Do this to move pages with tool related or non-Source game bugs from Category:Pages with uncategorized bugs to Category:Pages with other bugs.
    • Note.pngNote:Currently has experimental support for engine branches.
  • {{{since}}} - Since which game (abbreviation) does this bug exist? If blank or undefined, defaults to css (Counter-Strike: Source).
    • Note.pngNote:Currently has experimental support for engine branches.
  • {{{fixed}}} - Since which game (abbreviation) is this bug fixed? If blank or undefined, defaults to 'none' which means that the bug was never fixed in Source.
    • Note.pngNote:Currently has experimental support for engine branches.


Examples

Wikitext Description / Note Result
{{Bug|This is an example text.}}
Bug.png 
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
‎}}
 This is an example text.
{{Bug| hidetested=1 |
# Enum
# Eration
}}
Bug.png 
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
‎}}
 
  1. Enum
  2. Eration
<text here>
{{Bug|<text here>}}
<text here>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Bug.png 
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
‎}}
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

{{Bug|A Hammer bug.|only=|tested=Hammer 3.5}}
Bug.png 
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
‎}}
 A Hammer bug.
{{Bug|Nasty Witch bug.|only=l4ds|tested=l4d2}}
Bug.png 
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
‎}}
 Nasty Witch bug.
{{Bug|Bug that affects all Source games.|since=}} With {{{since}}} parameters specified as nothing, adds page to all "Pages with (game name) bugs" category[confirm], if there's a bug in all Source engine games.
Bug.png 
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
‎}}
 Bug that affects all Source games.
{{Bug|Issue patched in {{hl2ep1}}.|fixed=hl2ep1}} With {{{fixed}}} parameters specified, the page will be added into a category.
This example shown here, will add the page from previous affected titles (such as Half-Life 2 Half-Life 2, or Source 2004 Source 2004, which goes to Category:Pages with Half-Life 2 bugs), if Half-Life 2: Episode One Half-Life 2: Episode One have this bug fixed, Category:Pages with Half-Life 2: Episode One bugs won't be added.
Bug.png 
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
‎}}
 Issue patched in Half-Life 2: Episode One.
{{Bug|Affected {{as}} and {{portal2}}.|since=as|fixed=csgo}} With both {{{as}}} and {{{fixed}}} specified, the page will be added into a category.
This example shown here, will add the page to Category:Pages with Alien Swarm bugs and Category:Pages with Portal 2 bugs.
Bug.png 
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
‎}}
 Affected Alien Swarm and Portal 2.


Issue

When trying to use {{ExpandBox}} inside bug that's indented using : stuff breaks. (This issue applies to all the other notices too)

:{{Bug|{{ExpandBox|}}}}
Bug.png 
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
‎}}
 

as workaround you can use dd tag

<dd>{{Bug|{{ExpandBox|}}}}</dd>
Bug.png 
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
‎}}
 

{{Expand}} doesn't work in notice templates. Example:

:{{Bug|{{Expand|lorem}}}}
Bug.png 
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
‎}}
  {| class="mw-collapsible mw-collapsed" style="background:rgba(0,0,0,0.05) ;float:no;margin-bottom:1em;margin-left:0;padding-right:0.5em;border:1px solid rgba(255,255,255,0.1); border-left:solid 1px #8bb9e0; padding-left:1em;"

|+ style="text-align:left; white-space:nowrap; font-weight:bold; color:#ddd; " | | lorem

|}
{{Bug|{{Expand|lorem}}}}
Bug.png 
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
‎}}
  {| class="mw-collapsible mw-collapsed" style="background:rgba(0,0,0,0.05) ;float:no;margin-bottom:1em;margin-left:0;padding-right:0.5em;border:1px solid rgba(255,255,255,0.1); border-left:solid 1px #8bb9e0; padding-left:1em;"

|+ style="text-align:left; white-space:nowrap; font-weight:bold; color:#ddd; " | | lorem

|}

See Also