Template:Code:Output/doc


 * Purpose:
 * The template is written to link a prefixed snippet of software coding then display it's output effect both in & out framed in a window with prefixed explanatory text or additional commentary.

Usage
This template was undocumented. It's internal code after some named parameters were added to allow other skins to better generalize it's uses is at page bottom.
 * It uses upper case mnemonic letter codes for passing optional styling overrides, B for border, P for padding and so forth like many general box templates (e.g. LeftBox). These are apparent in the below but currently consist of the set { B, TA, P, CLR, BG & WBG } plus an auxiliary 'style2' style-pass-parameter that can take a list of HTML inside the style quotes.
 * BG and WBG (window background) most effect the appearance. A pre-template using an alternative color scheme with this as a sub-template call is easy to write.
 * Since the original had no margin controls, I left that to anyone wanting such and the use of the 'style2' pass parameter.

Output example using this input:
 * (Lorem and LoremS are standard text-sourcing test templates)


 * One input via placeholder parameter

This is NOT the second param:, nor is it being five! But just a measly one which generates: This is NOT the second param:, nor is it being five! But just a measly one


 * TWO inputs via placeholder parameters

But soone forsooth... Let there be five! 2... which generates: But soone forsooth... Let there be five!


 * Three inputs via placeholder parameters
 * Throwing in the below stuff.... but not quite the kitchen sink

|B=5px groove silver|BG=Wheat|WBG=lightyellow|style2=color:green This is NOT the third param: 3... which generates: This is NOT the third param:

Blah 1 Blah 4... which generates: Blah 1 Blah
 * Four inputs via placeholder parameters:(five really)

Internal code

 * For other templates of this kind see the Category:Code templates:

Working guts of the template 