Template:Bbc/doc From Online Manual

< Template:Bbc
Revision as of 02:15, 13 December 2010 by AngelinaBelle (talk | contribs) (clarify documentation)
Jump to: navigation, search


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=. {{Bbc
|BB code sample
|Description
|3=<span style="color: blue; ">result</span>
}}


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: {{Bbc
|BB code sample
|Description
|result
|tag=span
|style=color: blue;}}



Advertisement: