Template:Enterbug/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Documentation subpage}} __NOTOC__ ==Usage== {{tl|enterbug}} provides a link to enter a new bug. To use the template, type <code><nowiki>{{enterbug|product|component}}</nowi...") |
No edit summary |
||
| (9 intermediate revisions by the same user not shown) | |||
| Line 7: | Line 7: | ||
==Parameter== | ==Parameter== | ||
There are | There are three unnamed parameters (below called <code>1</code>, <code>2</code>, and <code>3</code>). | ||
===Product=== | ===Product=== | ||
| Line 15: | Line 15: | ||
===Component=== | ===Component=== | ||
'''<code> | '''<code>2</code>''': Component | ||
This parameter is used for the component to open the bug against. | This parameter is used for the component to open the bug against. | ||
===Text=== | |||
'''<code>3</code>''': Text | |||
This parameter is used for the text of the link. Optional, defaults to <code>product::component</code>. | |||
'''Usage:''' | '''Usage:''' | ||
| Line 27: | Line 32: | ||
! Example case !! What you write !! What you see | ! Example case !! What you write !! What you see | ||
|- | |- | ||
| | | Testing::General || <code><nowiki>{{enterbug|Testing|General}}</nowiki></code> || {{enterbug|Testing|General}} | ||
|- | |||
| Tree Management::Treeherder || <code><nowiki>{{enterbug|Tree Management|Treeherder}}</nowiki></code> || {{enterbug|Tree Management|Treeherder}} | |||
|- | |||
| Tree Management::Treeherder || <code><nowiki>{{enterbug|Tree Management|Treeherder|File a new bug}}</nowiki></code> || {{enterbug|Tree Management|Treeherder|File a new bug}} | |||
|} | |} | ||
Latest revision as of 15:41, 12 August 2019
Usage
{{enterbug}} provides a link to enter a new bug.
To use the template, type {{enterbug|product|component}}.
Parameter
There are three unnamed parameters (below called 1, 2, and 3).
Product
1: Product
This parameter is used for the product to open the bug against.
Component
2: Component
This parameter is used for the component to open the bug against.
Text
3: Text
This parameter is used for the text of the link. Optional, defaults to product::component.
Usage:
{{enterbug|product|component}}
Examples
| Example case | What you write | What you see |
|---|---|---|
| Testing::General | {{enterbug|Testing|General}} |
Testing::General |
| Tree Management::Treeherder | {{enterbug|Tree Management|Treeherder}} |
Tree Management::Treeherder |
| Tree Management::Treeherder | {{enterbug|Tree Management|Treeherder|File a new bug}} |
File a new bug |