Help: Bootstrap 3
|
DCCWiki uses the Tweeki skin, when utilizes Bootstrap 3.3 In plain English, this means that there are advanced web page layouts readily available to any page. Below are specific examples as it applies to this website. For additional features and uses, please see theBootstrap Documentation. Please note that not all features may be compatible with the wiki as some markup has been deemed too dangerous to use within the wiki.
Examples
Here's some basic examples for use within the DCCWiki.
Accordions
See: Vendor documentation - Accordions
Hide or show content based on what button is selected.
Code
<div class="panel-group" id="accordion"> <accordion parent="accordion" heading="SECTION1" class="in"> Lorem ipsum... </accordion> <accordion parent="accordion" heading="SECTION2"> Lorem ipsum... </accordion> </div>
Output
Lorem ipsum...
Lorem ipsum...
Buttons
See: Vendor documentation - Buttons
Use a button to visit a different DCCWiki page.
Standard buttons
Code | Output |
---|---|
<btn>Simple Button</btn> |
|
<btn size="lg">Large Button</btn> <btn size="sm">Small Button</btn> |
|
<btn> Grouped Buttons </btn> |
|
<btn> Button Tool Bar </btn> |
|
<btn class="btn-primary"> Classy Buttons </btn> |
|
<btn class=""> Button without any class </btn> |
|
<btn> Classy||btn-primary Non-classy Very Classy||btn-success </btn> |
|
<btn> Standard Button Some Page Title|Internal Target http://some.where|External Target </btn> |
Dropdown buttons
Code | Output |
---|---|
<btn> Dropdown-Menu * Some Menu Item * *: Some Heading * Some Other Menu Item </btn> |
|
<btn> Target|Split Dropdown * Some Menu Item </btn> |
|
<btn class=""> Non-Button Dropdown * Some Menu Item </btn> |
|
<btn> Semantic Dropdown * {{#ask:[[Category:Components]]}} </btn> |
Wrappers
Code | Output |
---|---|
<btn wrapperclass="btn-group dropup"> Dropup * Some Menu Item </btn> |
|
<btn wrapperclass="btn-group-vertical"> Explicit Wrapper Setting </btn> |
|
<btn wrapper=""> Explicit Wrapper Unsetting </btn> |
ExplicitWrapperUnsetting |
Styling
Code | Output |
---|---|
<btn> Target|<i>Italic Tag</i> </btn> |
|
<btn> Target|''Italic Wiki Markup'' </btn> |
|
''<btn> Surrounding Italic Wiki Markup </btn>'' |
Icons
See also: Help:Font awesome for additional icon usage.
Code | Output |
---|---|
<btn> Target|<span class="fa fa-cog"></span> icon with span </btn> |
|
<btn icon="cog"> icon attribute </btn> |
|
<btn fa="cog"> fa attribute </btn> |
Parsing
Code | Output |
---|---|
<btn> {{fullurl:{{PAGENAME}}}}|{{ucfirst:magic words}} </btn> |
|
<btn> mainpage </btn> |
|
Info: if a system message by that name exists, the text will be replaced by it's content |
Specifications
The general structure for the code of a single button is "target|text|class", where "text" and "class" are optional. If "text" is omitted it is assumed to be the same as "target". "target" and "text" are parsed after the following algorithm.
- Check for semantic queries.
- If there is an existing or default interface message with that name, use the content of that message instead.
- Parse it.
- If it is a valid URL (beginning with http:// or other URL protocol), the link will point to that URL.
- Else, it will be treated as a wikilink.