From Fedora Project Wiki

Revision as of 21:00, 3 October 2014 by Adamwill (talk | contribs) (explain some more template magic)

This template is designed to be substituted to create validation testing result pages. It will cause the page that substitutes it to transclude the Template:Release_validation_instructions template with parameter values that should be passed in at the point of creating a new results page, and substitute the appropriate test matrix template for the test type it was passed. Do not transclude this page! Always substitute it!

Usage: {{subst:Validation_results|testtype=Base|release=21|milestone=Beta|compose=RC3}}, for example, as the entire contents of a new page, would generate the Base validation results page for Fedora 21 Beta RC3.

It does some semi-clever mucking about with parameters to produce a nice clean result. Please don't mess about with it unless you understand how it works; the Mediawiki Transclusion and Substitution pages are a good starting point. Please contact Adam Williamson before touching this page if you are at all unsure what you're doing. Using it to generate new results pages is just fine, though - see above.

Attentive readers will note a dangling </onlyinclude> tag in this template. This is part of a dumb trick to allow for a results overview page. The matching <onlyinclude> tag lives in the test matrix templates. When an actual results page substitutes this template, it gets a <onlyinclude> tag above its results table from the matrix template, and a </onlyinclude> below its results table from this template. That means that when yet another page transcludes a results page, what it gets is the results table - which is what we want.