From Fedora Project Wiki

(Using #tag:ref instead of <ref> allows for proper handling of the optional bugzilla parameters)
m (Try span instead?)
Line 1: Line 1:
{{#switch: {{{1}}}
{{#switch: {{{1}}}
  | pass = <div style{{=}}"border: solid 0px #CCCCCC; padding: 0px;  background-color: green; font-weight: bold;">
  | pass = <span style{{=}}"border: solid 0px #CCCCCC; padding: 0px;  background-color: green; font-weight: bold;">
  | fail = <div style{{=}}"border: solid 0px #CCCCCC; padding: 0px;  background-color: red; font-weight: bold;">
  | fail = <span style{{=}}"border: solid 0px #CCCCCC; padding: 0px;  background-color: red; font-weight: bold;">
  | inprogress = <div style{{=}}"border: solid 0px #CCCCCC; padding: 0px;  background-color: orange; font-weight: bold;">  
  | inprogress = <span style{{=}}"border: solid 0px #CCCCCC; padding: 0px;  background-color: orange; font-weight: bold;">  
  | warn = <div style{{=}}"border: solid 0px #CCCCCC; padding: 0px;  background-color: yellow; font-weight: bold;">  
  | warn = <span style{{=}}"border: solid 0px #CCCCCC; padding: 0px;  background-color: yellow; font-weight: bold;">  
  | <div>
  | <span>
}} {{#switch: {{{1}}}
}} {{#switch: {{{1}}}
  | pass
  | pass
Line 10: Line 10:
  | warn
  | warn
  | inprogress = {{#if: {{{2|}}} |[[User:{{{2}}}|{{{2}}}]]}}
  | inprogress = {{#if: {{{2|}}} |[[User:{{{2}}}|{{{2}}}]]}}
}} {{#if: {{{3|}}} |{{#tag:ref|{{bz|{{{3|}}}}}}}}} {{#if: {{{4|}}} |{{#tag:ref|{{bz|{{{4}}}}}}}}} {{#if: {{{5|}}} |{{#tag:ref|{{bz|{{{5}}}}}}}}} {{#if: {{{6|}}} |{{#tag:ref|{{bz|{{{6}}}}}}}}} {{#if: {{{7|}}} |{{#tag:ref|{{bz|{{{7}}}}}}}}} </div> <noinclude>{{tempdoc}}</noinclude>
}} </span> {{#if: {{{3|}}} |{{#tag:ref|{{bz|{{{3|}}}}}}}}} {{#if: {{{4|}}} |{{#tag:ref|{{bz|{{{4}}}}}}}}} {{#if: {{{5|}}} |{{#tag:ref|{{bz|{{{5}}}}}}}}} {{#if: {{{6|}}} |{{#tag:ref|{{bz|{{{6}}}}}}}}} {{#if: {{{7|}}} |{{#tag:ref|{{bz|{{{7}}}}}}}}} </div> <noinclude>{{tempdoc}}</noinclude>

Revision as of 17:40, 21 December 2009

Template documentation [edit]

This documentation is transcluded from Template:Result/doc. It will not be transcluded on pages that use this template.

You'll want to use this template as follows:

{{result
| Must be either pass, fail, warn or none
| FAS Name of tester
| ''(optional)'' one or more bugzilla ID's seperated by the '|' (PIPE) character
}}

Some examples include:

Wiki syntax Display
{{result|none}}
{{result|pass|liam}} liam
{{result|pass|coconut|bot=true}} coconut
{{result|inprogress|adamwill}} adamwill
{{result|fail|jlaska|12345|54321}} jlaska [1] [2]
{{result|warn|rhe}} <ref>Brief description about the warning status</ref> rhe [3]
{{result|unknown}}

Any bug numbers or reference tags (<ref>) used will need to be displayed somewhere on your page using the <references/> syntax. The following list demonstrates how the above results display when using the <references/> syntax.

  1. RHBZ #12345
  2. RHBZ #54321
  3. Brief description about the warning status