Template:Wordy bbc: Difference between revisions From Online Manual

Jump to: navigation, search
(updated page)
(Undo revision 31446 by Illori (talk))
Tag: Undo
 
Line 1: Line 1:
<div style="overflow:auto">
{{#if: {{{tag|}}}|{{DISPLAYTITLE:{{{tag|}}}}}|}}<!--
-->{{#if: {{{tag|}}}|{{#if: {{{wikiheader|}}}|{{
#switch: {{{wikiheader}}}
|1=={{ucfirst:{{{tag}}}}}=
|2==={{ucfirst:{{{tag}}}}}==
|3===={{ucfirst:{{{tag}}}}}===
|4===== {{ucfirst:{{{tag}}}}}====
|#default
}}
__NOEDITSECTION__ }}
{{#if: {{{button|}}}|<p>'''button''': [[File:{{{button}}}]]</p>|}}<!--
-->{{#if: {{{type|}}}|<p>'''type''': {{
#switch: {{{type}}}
|unparsed_equals= <nowiki>[</nowiki>{{{tag}}}<nowiki>=xyz]parsed content[/</nowiki>{{{tag}}}<nowiki>]</nowiki>
|empty= <nowiki>[</nowiki>{{{tag}}}<nowiki>]</nowiki>
|parsed_equals= <nowiki>[</nowiki>{{{tag}}}<nowiki>=parsed data]parsed content[/</nowiki>{{{tag}}}<nowiki>]</nowiki>
|unparsed_content= <nowiki>[</nowiki>{{{tag}}}<nowiki>]unparsed content[/</nowiki>{{{tag}}}<nowiki>]</nowiki>
|closed= <nowiki>[</nowiki>{{{tag}}}<nowiki>]</nowiki>, <nowiki>[</nowiki>{{{tag}}}<nowiki>/]</nowiki>, <nowiki>[</nowiki>{{{tag}}}<nowiki> /]</nowiki>
|unparsed_commas= <nowiki>[</nowiki>{{{tag}}}<nowiki>=1,2,3]parsed content[/</nowiki>{{{tag}}}<nowiki>]</nowiki>
|unparsed_commas_content= <nowiki>[</nowiki>{{{tag}}}<nowiki>=1,2,3]unparsed content[/</nowiki>{{{tag}}}<nowiki>]</nowiki>
|unparsed_equals_content= <nowiki>[</nowiki>{{{tag}}}<nowiki>=...]unparsed content[/</nowiki>{{{tag}}}<nowiki>]</nowiki>
|parsedcontent
|parsed content= <nowiki>[</nowiki>{{{tag}}}<nowiki>]parsed content[/</nowiki>{{{tag}}}<nowiki>]</nowiki>
|#default=}}</p>|}}<!-- end if type-->{{
#if: {{{description|}}}|


{|
<p>
!width="25%"| tag
!width="25%"| button
!width="25%"| example
!width="25%"| result
|-
| [https://wiki.simplemachines.org/smf/Abbr Abbr]
|


| [abbr="a.k.a. [Unknown]"]Unknown W. Brackets[/abbr]
'''description''': {{{description}}}</p>|}}<!--
| Unknown W. Brackets;
-->{{#if: {{{parameters|}}}|<p>'''parameters''':</p>{{{parameters}}}|}}<!--
|-
-->{{#if: {{{example|}}}|<p>'''example''': {{{example}}}</p>|}}<!--
| [https://wiki.simplemachines.org/smf/Acronym Acronym]
-->{{#if: {{{result|}}}|<p>'''result''': {{{result}}} </p>|}}<!--
|


| [acronym=Simple Machines Forum]SMF[/acronym]
-->|'''Template must be given a tag}}
| SMF
<noinclude>{{documentation}}</noinclude>
|-
| [https://wiki.simplemachines.org/smf/Anchor Anchor]
|
 
| [anchor=id]text or more BB Code[/anchor];
| <span id="post_id">text or more BB Code</span>
|-
| [https://wiki.simplemachines.org/smf/B B]
| [[File:Bold.gif|23x22px|class=thumbborder|Bold.gif]]
| [b]text or more BB Code[/b]
| '''text or more BB Code'''
|-
| [https://wiki.simplemachines.org/smf/Bdo Bdo]
|
 
| Here is some text in the default direction and [bdo=rtl]Here is some right-to-left text[/bdo]
| Here is some text in the default direction and <span style="direction:rtl; unicode-bidi:bidi-override;">Here is some right-to-left text</span>
|-
| [https://wiki.simplemachines.org/smf/Black Black]
|
 
| [black]text or more BB Code[/black]
| <span style="color: black;">text or more BB Code</span>
|-
| [https://wiki.simplemachines.org/smf/Blue Blue]
|
 
| [blue]text or more BB Code[/blue]
| <span style="color: blue;">text or more BB Code</span>
|-
| [https://wiki.simplemachines.org/smf/Br Br]
|
 
| text[br]text
| text<br />
text
|-
| [https://wiki.simplemachines.org/smf/Center Center]
| [[File:Center.gif|23x22px|class=thumbborder|Center.gif]]
| [center]blocks, text or more BB Code[/center]
| blocks, text or more BB Code
|-
| [https://wiki.simplemachines.org/smf/Code Code]
| [[File:Code.gif|23x22px|class=thumbborder|Code.gif]]
|
[code]<br />
 
if (node.attributes[i].nodeValue != null)<br />
str += ' ' + node.attributes[i].nodeName + '="' + node.attributes[i].nodeValue + '"';<br />
 
 
[/code]
|
<div class="code">
 
<pre>if (node.attributes[i].nodeValue != null)
str += ' ' + node.attributes[i].nodeName + '="' + node.attributes[i].nodeValue + '"';</pre>
 
</div>
|-
| [https://wiki.simplemachines.org/smf/Color Color]
|
 
| [color=fuchsia]text or more BB Code[/color]
| <span style="color: fuchsia;">text or more BB Code</span>
|-
| [https://wiki.simplemachines.org/smf/Email Email]
| [[File:Email.gif|23x22px|class=thumbborder|Email.gif]]
| [email][email protected][/email]
|-
| [https://wiki.simplemachines.org/smf/Flash Flash]
| [[File:Flash.gif|23x22px|class=thumbborder|Flash.gif]]
| [flash=200, 200]http://somefile.swf[/flash]
|
 
|-
| [https://wiki.simplemachines.org/smf/Font Font]
|
 
| [font=Times, Times New Roman, serif]text or more BB Code[/font]
| <span class="bbc_font" style="font-family: Times, Times New Roman, serif;">text or more BB Code</span>
|-
| [https://wiki.simplemachines.org/smf/Ftp Ftp]
| [[File:Ftp.gif|23x22px|class=thumbborder|Ftp.gif]]
| [ftp=ftp://somedomain.com]text or more BB Code[/ftp], [ftp]ftp://somedomain.com[/ftp]
| [ftp://somedomain.com/ text or more BB Code], [ftp://somedomain.com/ ftp://somedomain.com]
|-
| [https://wiki.simplemachines.org/smf/Glow Glow]
| [[File:Glow.gif|23x22px|class=thumbborder|Glow.gif]]
| [glow=orange,2]text or more BB Code[/glow]
| <span style="text-shadow: orange 1px 1px 1px">text or more BB Code</span>
|-
| [https://wiki.simplemachines.org/smf/Green Green]
|
 
| [green]text or more BB Code[/green]
| <span style="color: green;">text or more BB Code</span>
|-
| [https://wiki.simplemachines.org/smf/HTML HTML]
|
 
| [html]<em>Direct <del>html</del> <ins>HTML</ins> output</em>[/html]
|
Direct <s>html</s>
HTML
output
|-
| [https://wiki.simplemachines.org/smf/Hr Hr]
| [[File:Hr.gif|23x22px|class=thumbborder|Hr.gif]]
| [hr]
|
 
-----
|-
| [https://wiki.simplemachines.org/smf/I I]
| [[File:Italicize.gif|23x22px|class=thumbborder|Italicize.gif]]
| [i]text or more BB Code[/i]
| ''text or more BB Code''
|-
| [https://wiki.simplemachines.org/smf/Img Img]
| [[File:Img.gif|23x22px|class=thumbborder|Img.gif]]
| [img width=30px][http://wiki.simplemachines.org/skins/common/images/button_media.png http://wiki.simplemachines.org/skins/common/images/button_media.png][/img]
| [[File:Button_media.png|30x29px|Button media.png]]
|-
| [https://wiki.simplemachines.org/smf/Iurl Iurl]
|
 
| [iurl]http://simplemachines.org[/iurl]
| [http://simplemachines.org/ http://simplemachines.org]
|-
| [https://wiki.simplemachines.org/smf/Left Left]
| [[File:Left.gif|23x22px|class=thumbborder|Left.gif]]
| [left]blocks, text or more BB Code[/left]
|
<div style="text-align: left;">
 
blocks, text or more BB Code
 
</div>
|-
| [https://wiki.simplemachines.org/smf/Li Li]
|
 
| [li]text or bbc code of a list item[/li]
|
* text or bbc code of a list item
|-
| [https://wiki.simplemachines.org/smf/List List]
| [[File:List.gif|23x22px|class=thumbborder|List.gif]]
| [list type=lower-greek] [li]list item (see [https://wiki.simplemachines.org/smf/Li li])[/li] [li]another list item[/li] [/list]
|
# list item (see [https://wiki.simplemachines.org/smf/Li li])
# another list item
|-
| [https://wiki.simplemachines.org/smf/Ltr Ltr]
|
 
| [ltr]text or more BB Code[/ltr]
|
<div style="direction: ltr">
 
blocks, text or more BB Code
 
</div>
|-
| [https://wiki.simplemachines.org/smf/Me Me]
|
 
| [me=username]does an action[/me]
|
<div style="color:red">
 
* username does an action
 
</div>
|-
| [https://wiki.simplemachines.org/smf/Move Move]
| [[File:Move.gif|23x22px|class=thumbborder|Move.gif]]
| [move]text or BBc[/move]
| <marquee>text or BBc</marquee>
|-
| [https://wiki.simplemachines.org/smf/Nobbc Nobbc]
|
 
| [nobbc][b]BB Code[/b][/nobbc]
| [b]BB Code[/b]
|-
| [https://wiki.simplemachines.org/smf/Php Php]
|
 
| [php]<?php echo "Hello world!"; ?>[/php]
| <span class="phpcode"><span style="color: #000000"><span style="color: #0000BB"><?php </span><span style="color: #007700">echo </span><span style="color: #DD0000">"Hello world!"</span><span style="color: #007700">; </span><span style="color: #0000BB">?></span></span></span>
|-
| [https://wiki.simplemachines.org/smf/Pre Pre]
| [[File:Pre.gif|23x22px|class=thumbborder|Pre.gif]]
| [pre]example text[/pre]
|
<pre>example text</pre>
|-
| [https://wiki.simplemachines.org/smf/Quote Quote]
| [[File:Quote.gif|23x22px|class=thumbborder|Quote.gif]]
| [quote]blocks, text or more BB Code[/quote]
|
<div style="color:#666;font-size:x-small;font-weight:bold;padding:0 0.3em;">
 
Quote
 
</div>
<blockquote><div class="floatnone">
 
[https://wiki.simplemachines.org/smf/File:Quote.png [[File:Quote.png|20x16px]]]
 
</div>
blocks, text or more BB Code</blockquote>
|-
| [https://wiki.simplemachines.org/smf/Red Red]
|
 
| [red]text or more BB Code[/red]
| <span style="color: red;">text or more BB Code</span>
|-
| [https://wiki.simplemachines.org/smf/Right Right]
| [[File:Right.gif|23x22px|class=thumbborder|Right.gif]]
| [right]blocks, text or more BB Code[/right]
|
<div style="text-align: right;">
 
blocks, text or more BB Code
 
</div>
|-
| [https://wiki.simplemachines.org/smf/Rtl Rtl]
|
 
| [rtl]blocks, text or more BB Code![/rtl]
|
<div style="text-align:right;direction: rtl">
 
blocks, text or more BB Code!
 
</div>
|-
| [https://wiki.simplemachines.org/smf/S S]
| [[File:Strike.gif|23x22px|class=thumbborder|Strike.gif]]
| [s]text or more BB Code[/s]
| <s>text or more BB Code</s>
|-
| [https://wiki.simplemachines.org/smf/Shadow Shadow]
| [[File:Shadow.gif|23x22px|class=thumbborder|Shadow.gif]]
| [shadow=red,left]Hello[/shadow]
| <span style="text-shadow: red -2px 0 1px">Hello</span>
|-
| [https://wiki.simplemachines.org/smf/Size Size]
| [[File:Size.gif|23x22px|class=thumbborder|Size.gif]]
| [size=x-large]text or more BB Code[/size]
| <span class="bbc_size" style="font-size: x-large;">text or more BB Code</span>
|-
| [https://wiki.simplemachines.org/smf/Sub Sub]
| [[File:Sub.gif|23x22px|class=thumbborder|Sub.gif]]
| normal[sub]subscript[/sub]
| normal<sub>subscript</sub>
|-
| [https://wiki.simplemachines.org/smf/Sup Sup]
| [[File:Sup.gif|23x22px|class=thumbborder|Sup.gif]]
| normal[sup]superscript[/sup]
| normal<sup>superscript</sup>
|-
| [https://wiki.simplemachines.org/smf/Table Table]
| [[File:Table.gif|23x22px|class=thumbborder|Table.gif]]
| [table]<br />
[tr][td]text[/td][td]or more[/td][/tr]<br />
[tr][td]BB[/td][td]Code[/td][/tr]<br />
[/table]
|
{|
| text
| or more
|-
| BB
| Code
|}
|-
| [https://wiki.simplemachines.org/smf/Td Td]
| [[File:Td.gif|23x22px|class=thumbborder|Td.gif]]
| [table]<br />
[tr][td]text[/td][/tr]<br />
[/table]
|
{|
| text
|}
|-
| [https://wiki.simplemachines.org/smf/Time Time]
|
 
| [time]1132812640[/time]
| 24 November 2005, 07:10:40
|-
| [https://wiki.simplemachines.org/smf/Tr Tr]
| [[File:Tr.gif|23x22px|class=thumbborder|Tr.gif]]
| [table]<br />
[tr][td]text[/td][td]or more[/td][/tr]<br />
[/table]
|
{|
| text
| or more
|}
|-
| [https://wiki.simplemachines.org/smf/Tt Tt]
| [[File:Tele.gif|23x22px|class=thumbborder|Tele.gif]]
| [tt]text or more BB Code[/tt]
| <span style="font-family: dejavu sans mono,monaco,lucida console,courier new,monospace;">text text or more BB Code</span>
|-
| [https://wiki.simplemachines.org/smf/U U]
| [[File:Underline.gif|23x22px|class=thumbborder|Underline.gif]]
| [u]text or more BB Code[/u]
| text or more BB Code
|-
| [https://wiki.simplemachines.org/smf/URL URL]
| [[File:Url.gif|23x22px|class=thumbborder|Url.gif]]
| [url=[http://simplemachines.org/ http://simplemachines.org]]text or more BB Code[/url]
| <span class="pops">[http://simplemachines.org/ text or more BB Code]</span>
|-
| [https://wiki.simplemachines.org/smf/White White]
|
 
| [white][shadow=black,right]text or more BB Code[/shadow][/white]
| <span style="color: white;text-shadow: black 2px 0 1px">text or more BB Code</span>
|}
 
 
</div>

Latest revision as of 22:26, 10 January 2022

Template must be given a tag

[edit] [purge] Template documentation

This template formats articles on individual Bulletin Board Codes (BBC). At the same time, it stores the Semantic Mediawiki properties which are used to generate the Alphabetical list of all bulletin board codes Example:

{{Wordy bbc
|tag=list
|button=list.gif
|example=[list type=lower-greekl] [li]list item (see [[li]])[/li] [/list]
|result=<ol style="list-style-type: lower-greek;"><li>list item (see [[li]])</li></ol>
|description=The <tt>list</tt> tag encloses a list.  Each item in the list must be enclosed in [[li]] tags. The 
type property of the <tt>list</tt> tag lets you specify a few bullet formats, as well as several counting formats. 
Some of the list types might not work in some browsers.
|parameters={{Parmdesc
     |type|d1=(optional) one of the following:anone, disc, circle, square, decimal, decimal-leading-zero, 
lower-roman, upper-roman, lower-alpha, upper-alpha, lower-greek, lower-latin, upper-latin, hebrew, 
armenian, georgian, cjk-ideographic, hiragana, katakana, hiragana-iroha and katakana-iroha.}}
}}

In addition to the parameters shown above, this template can take the following parameters:



Advertisement: