Another BB Code Suggestion

D7D7 Regular
edited January 2011 in Help and Suggestions
I know I already post a BBCode suggestion thread but some are left unimplemented

I repost this thread with the most common BBCode that ever being used in most forum. Most of it are purely aesthetics but it doesn't mean it's entirely useless.

[anchor]up[/anchor]
[goanchor=Spoiler]1. Spoiler[/goanchor]
[goanchor=BGColor]2. BGColor[/goanchor]
[goanchor=Super]3. Superscript[/goanchor]
[goanchor=Sub]4. Subscript[/goanchor]
[goanchor=Strike]5. Strikethrough[/goanchor]
[goanchor=Comment]6. Comment[/goanchor]
[goanchor=Line]7. Line[/goanchor]
[goanchor=Table]8. Table[/goanchor]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


[anchor]Spoiler[/anchor]1. Spoiler Tag [Inconsistent Parameter]

Title: Spoiler
Tag: Spoiler
Replacement:
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>Spoiler </b>: <input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';		this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
{param}
</div>
</div>
</div>
Description: Use this to hide important information which might spoil a movie, program, etc for other users.
[Highlight]Example:[/highlight] [noparse]
This contains spoiler
[/noparse]
Use {option}: No

I know we already have the spoiler BBCode but the current one has one problem, the {Example} is filled with spoiler a + b = c
http://totse.info/bbs/misc.php?do=bbcode#spoiler
It should be filled properly with [noparse]
This contains spoiler
[/noparse]

[goanchor=up]Back to Up[/goanchor]


[anchor]BGColor[/anchor]2. BGColor Tag

Title: BGColor
Tag: BGColor
Replacement:
<span style="background-color: {option}">{param}</span>
Description: Highlights Text
Example: [bgcolor=yellow]It's a light! It's a light![/bgcolor]
stabilov.jpg
Use {option}: Yes

[goanchor=up]Back to Up[/goanchor]


[anchor]Super[/anchor]3. Superscript

Title: Superscript
Tag: sup
Replacement:
<sup>{param}</sup>
Example: superscript
scriptc.jpg
Description: Makes text superscripted, such as with mathematical exponents.
Use Option: No

[goanchor=up]Back to Up[/goanchor]


[anchor]Sub[/anchor]4. Subscript

Title: Subscript
Tag: sub
Replacement:
<sub>{param}</sub>
Example: subscript
scriptc.jpg
Description: Makes text subscripted.
Use Option: No

[goanchor=up]Back to Up[/goanchor]


[anchor]Strike[/anchor]5. Strikethrough

Title: Strikethrough
Tag: s
Replacement:
<del>{param}</del>
Example: This Text Has a Strikethrough
Description: Adds a line through text.
Use Option: No

[goanchor=up]Back to Up[/goanchor]


[anchor]Comment[/anchor]6. Comment

Title: Comment
Tag: comment
Replacement:
<span title="{option}" style="border-bottom: 1px dotted; cursor: help;">{param}</span>
Example: [comment=Temple of the Screaming Electron]Totse[/comment]
abbrs.jpg
Use {option}: Yes
Description: To give a a message when your mouse hover it

[goanchor=up]Back to Up[/goanchor]


[anchor]Line[/anchor]7. Line

Title: Line
Tag: hr
Replacement:
<hr size="2">
Example:Use {option}: No
Description: To create a horizontal line

[goanchor=up]Back to Up[/goanchor]


[anchor]Table[/anchor]8. Table

This BBCOde requires an add-on
http://www.vbulletin.org/forum/showthread.php?t=107985

[goanchor=up]Back to Up[/goanchor]

Comments

Sign In or Register to comment.