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

Jump to: navigation, search
(How to use this template)
(clarify documentation)
Line 1: Line 1:
<!--{{Documentation subpage}}-->
<!--{{Documentation subpage}}-->
This Bbc template is designed to create a standard template for all the bbc pages


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/>
<nowiki>{{Bbc</nowiki><br/>
|BB code sample<br/>
|BB code sample<br/>

Revision as of 02:15, 13 December 2010


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: