Template:Enterbug/doc: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 7: Line 7:


==Parameter==
==Parameter==
There are three parameters (below called <code>product</code>, <code>component</code>, and <code>text</code>).
There are three unnamed parameters (below called <code>1</code>, <code>2</code>, and <code>3</code>).


===Product===
===Product===
'''<code>product</code>''': Product
'''<code>1</code>''': Product


This parameter is used for the product to open the bug against.
This parameter is used for the product to open the bug against.


===Component===
===Component===
'''<code>component</code>''': Component
'''<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===
===Text===
'''<code>text</code>''': Text
'''<code>3</code>''': Text


Text to use for the link. Optional (defaults to product::component).
This parameter is used for the text of the link. Optional, defaults to <code>product::component</code>.


'''Usage:'''
'''Usage:'''
* <code><nowiki>{{</nowiki>enterbug|'''product'''|'''component'''|'''text'''<nowiki>}}</nowiki></code>
* <code><nowiki>{{</nowiki>enterbug|'''product'''|'''component'''<nowiki>}}</nowiki></code>


==Examples==
==Examples==
Line 34: Line 34:
| Testing::General || <code><nowiki>{{enterbug|Testing|General}}</nowiki></code> || {{enterbug|Testing|General}}
| Testing::General || <code><nowiki>{{enterbug|Testing|General}}</nowiki></code> || {{enterbug|Testing|General}}
|-
|-
| Tree Management::Treeherder || <code><nowiki>{{enterbug|Testing|General}}</nowiki></code> || {{enterbug|Tree Management|Treeherder}}
| Tree Management::Treeherder || <code><nowiki>{{enterbug|Tree Management|Treeherder}}</nowiki></code> || {{enterbug|Tree Management|Treeherder}}
|-
|-
| Infrastructure & Operations|RelOps: General || <code><nowiki>{{enterbug|Infrastructure & Operations|RelOps: General|enter bug}}</nowiki></code> || {{enterbug|Infrastructure & Operations|RelOps: General|enter bug}}
| 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

Edit-copy green.svg
This is a documentation subpage for Template:Enterbug.
It contains usage information, categories and other content that is not part of the original template page.

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