Template:Bug

Từ Valve Developer Community
Bước tới: chuyển hướng, tìm kiếm
English (en)Català (ca)Čeština (cs)Deutsch (de)Esperanto (eo)Español (es)Magyar (hu)Italiano (it)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Svenska (sv)Türkçe (tr)Tiếng Việt (vi)中文 (zh)中文(台灣)‎ (zh-tw)한국어 (ko)ქართული (ka)עברית (he)
Blank image.pngCần làm: Fix template loop when {{doc}} is used.
Curly brackets white.pngTemplate Documentation
Icon-translate.png
Info.png
The Template:Bug/doc/vi documentation page does not exist.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.


Inline note templates
Template Pages using it
2023-08-29
{{Note}} 5,964
{{Warning}} 2,331
{{Bug}} 1,550
{{Tip}} 1,485
{{Todo}} 1,551
{{Inline note}} 955
{{Confirm}}
{{ClassicConfirm}}
691 + 324
{{Question}} 4
{{ModernConfirm}} 97
{{Fix}}
{{ClassicFix}}
174 + 33
{{ModernFix}} 489
{{Important}} 240 + 106
{{ModernImportant}} 308
{{Clarify}}
{{ClassicClarify}}
154 + 105
{{Elaborate}}
{{ClassicElaborate}}
10
{{Main}} 121
{{Distinguish}} 75
{{Workaround}} 96
{{Seealso}} 62
{{Why}}
{{ClassicWhy}}
21
{{Idea}}
{{ClassicIdea}}
11
{{Placement Tip}}
{{ClassicPlacementTip}}
6 + 2
{{Codenote}}
{{Codenote}}
10
{{Altnames}} 13
{{Deprecated}}
{{ClassicDeprecated}}
34 + 25
{{How}}
{{ClassicHow}}
18 + 15
{{Notice}} 15 + 10
{{Example}} 3
{{Confusion}} 3 + 1
{{Special thanks}} 1
{{Thanks}} (Modern) N/A

Translations

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

Usage

Parameters

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.pngGhi chú: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.pngGhi chú: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.pngGhi chú:Currently has experimental support for engine branches.


Examples

Wikitext Mô tả / Ghi chú Result
{{Bug}}
Icon-Bug.pngLỗi:
{{Bug|This is an example text.}}
Icon-Bug.pngLỗi:This is an example text.
{{Bug|
Enumeration
# Enum
# Eration
}}
Icon-Bug.pngLỗi:Enumeration
  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.
Icon-Bug.pngLỗi: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=}}
Icon-Bug.pngLỗi:A Hammer bug.
{{Bug|Nasty Witch bug.|only=l4ds}}
Icon-Bug.pngLỗi: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[kiểm tra], if there's a bug in all Source engine games.
Icon-Bug.pngLỗi: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: Tập Một Half-Life 2: Tập Một have this bug fixed, Category:Pages with Half-Life 2: Episode One bugs won't be added.
Icon-Bug.pngLỗi:Issue patched in Half-Life 2: Tập Một.
{{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.
Icon-Bug.pngLỗi:Affected Alien Swarm and Portal 2.