Template:Bbc/doc: Difference between revisions From Online Manual

Jump to: navigation, search
(clarify documentation)
(don't want it this way any more.)
 
Line 1: Line 1:
<!--{{Documentation subpage}}-->


This template can be used to standardize the appearance of a single Bbc item on a page.
It uses 3 unnamed parameters and sets them in a table.
Parameter 1 is the "raw" BB code sample (set on the left)
Parameter 2 is the Description of the BB code (set in the middle)
Parameter 3 should display the result (set on the right)
If any of the parameters should contain HTML, then they must be written as though they are named parameters.
In the example below, the first and second parameters are plain text, and are simply entered in order. But the third parameter needs to have HTML, so the parameter must be introduced with '''3='''.
<nowiki>{{Bbc</nowiki><br/>
|BB code sample<br/>
|Description<br />
|3=<nowiki><span style="color: blue; ">result</span></nowiki><br />
<nowiki>}}</nowiki>
This template can also accept the third parameter as plain text, and then wrap it in an optional tag, with an optional style attribute, as shown below:
<nowiki>{{Bbc</nowiki><br/>
|BB code sample<br/>
|Description<br />
|result<br />
|tag=span<br />
|style=color: blue;<nowiki>}}</nowiki>

Latest revision as of 21:00, 17 February 2011



Advertisement: