Difference between revisions of "Template:BugzillaFileBug"

From SME Server
Jump to navigationJump to search
m (Aligning the parser function with recent bugzilla changes)
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<noinclude>=BugzillaFileBug=
 
<noinclude>=BugzillaFileBug=
This template can create a link to create a link to automatically report a bug in the correct category in the [http://bugs.contribs.org Bugtracker]. It can even specify a Summary and a Description if you would prefer that.
+
This template can create a link to create a link to automatically report a bug in the correct category in the [[http://bugs.contribs.org | Bugtracker]]. It can even specify a Summary and a Description if you would prefer that.
  
 
==Usage==
 
==Usage==
<nowiki>{{</nowiki>BugzillaFileBug|product=?|component=?|title=link title<nowiki>}}</nowiki>
+
{{Tip box|When you want to call the BugzillaFileBug template then use it in the bottom of a page to raise a bug under bugzilla in the wiki documentation.  
{{Tip box|As the template generates a link spaces in variables need to be escaped using %20, with the exception of the link title.}}
+
By example <nowiki>{{BugzillaFileBug|product=SME%20Contribs|component=smeserver-openvpn-bridge|title=this link}}</nowiki>.
Not all parameters need to be supplied, but a link title is required.
+
You have to choose a valid contrib name in the smecontribs repo}}
==Example==
+
So this is what it done :
<nowiki>{{</nowiki>BugzillaFileBug|product=contribs.org%20web%20site|component=MediaWiki|summary=This%20would%20go%20into%20the%20summary%20field|comment=And%20this%20would%20go%20into%20the%20comment%20field|title=Open a bug against the MediaWiki package in the contribs.org website bugtracker<nowiki>}}</nowiki>
+
 
will look like this:
+
Please raise bugs under the SME-Contribs section in [http://bugs.contribs.org/enter_bug.cgi bugzilla]
{{BugzillaFileBug|product=contribs.org%20web%20site|component=MediaWiki|summary=This%20would%20go%20into%20the%20summary%20field|comment=And%20this%20would%20go%20into%20the%20comment%20field|title=Open a bug against the MediaWiki package in the contribs.org website bugtracker}}  
+
and select the smeserver-openvpn-bridge component or use {{BugzillaFileBug|product=SME%20Contribs|component=smeserver-openvpn-bridge|title=this link}}</noinclude>
and will open the form to create a bug against the wiki in the contribs.org website tracker.</noinclude><includeonly>
+
<includeonly>[http://bugs.koozali.org/enter_bug.cgi?product={{{product|}}}&component={{{component|}}}&short_desc={{{summary|}}}&comment={{{comment|}}} {{{title|Specify a link title}}}]</includeonly>
{{#switch: product
+
<noinclude>[[Category:Template]]</noinclude>
| contribs.org%20web%20site = SME%20Web%20site
 
| default = {{{product}}}
 
}}[http://bugs.contribs.org/enter_bug.cgi?product={{{product|}}}&component={{{component|}}}&short_desc={{{summary|}}}&comment={{{comment|}}} {{{title|Specify a link title}}}]</includeonly>
 
<noinclude>----
 
[[Category:Template]]</noinclude>
 

Latest revision as of 22:58, 17 April 2021

BugzillaFileBug

This template can create a link to create a link to automatically report a bug in the correct category in the [| Bugtracker]. It can even specify a Summary and a Description if you would prefer that.

Usage

Information.png Tip:
When you want to call the BugzillaFileBug template then use it in the bottom of a page to raise a bug under bugzilla in the wiki documentation.

By example {{BugzillaFileBug|product=SME%20Contribs|component=smeserver-openvpn-bridge|title=this link}}. You have to choose a valid contrib name in the smecontribs repo


So this is what it done :

Please raise bugs under the SME-Contribs section in bugzilla and select the smeserver-openvpn-bridge component or use this link