Discovery Gaming Community
MyCode formatting (with examples) - Printable Version

+- Discovery Gaming Community (https://discoverygc.com/forums)
+-- Forum: The Community (https://discoverygc.com/forums/forumdisplay.php?fid=4)
+--- Forum: Media Center (https://discoverygc.com/forums/forumdisplay.php?fid=18)
+--- Thread: MyCode formatting (with examples) (/showthread.php?tid=124347)



MyCode formatting (with examples) - Outro - 01-05-2015

MyCode formatting

[Image: 9U5pl4J.png]

This forum uses MyCode to format posts. New editor with toolbar (above) reduces formatting to simple clicking but there is still code that has to be written manually (e.g. image floating). The aim of this post is to create a comprehensive list of most common tags used on this forum.

NOTE: Following tags are left out: quote, code, php, video and text direction. Feel free to try them out. Bulleted lists and tables are currently broken. I'll add them once they're fixed.


Font family

This text is in Arial (default).
This text is in Impact.
This text is in Courier.
This text is in Times New Roman.

Code:
[font=Arial]This text is in Arial (default).[/font]
[font=Impact]This text is in Impact.[/font]
[font=Courier]This text is in Courier.[/font]
[font=Times New Roman]This text is in Times New Roman.[/font]

Typeface

Bold text.
Italicized text.
Underlined text.
Strikethrough text.

Code:
[b]Bold text.[/b]
[i]Italicized text.[/i]
[u]Underlined text.[/u]
[s]Strikethrough text.[/s]

Text size

XX-Small
X-Small
Small
Medium
Large
X-Large
XX-Large

Code:
[size=xx-small]XX-Small[/size]
[size=x-small]X-Small[/size]
[size=small]Small[/size]
[size=medium]Medium[/size]
[size=large]Large[/size]
[size=x-large]X-Large[/size]
[size=xx-large]XX-Large[/size]

Text color

This text is red.
This text is green.
This text is cyan (given in hex form).

Code:
[color=red]This text is red.[/color]
[color=green]This text is green.[/color]
[color=#40E0D0]This text is cyan (given in hex form).[/color]

Text alignment

Left-aligned text.
Center-aligned text.
Right-aligned text.
Justified text (block alignment). This mode is more noticeable when there are large blocks of text.

Code:
[align=left]Left-aligned text.[/align]
[align=center]Center-aligned text.[/align]
[align=right]Right-aligned text.[/align]
[align=justify]Justified text (block alignment). This mode is more noticeable when there are large blocks of text.[/align]

Indenting

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean et est a dui semper facilisis. Pellentesque placerat elit a nunc.
Nullam tortor odio, rutrum quis, egestas ut, posuere sed, felis.

Code:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
[indent]Aenean et est a dui semper facilisis. Pellentesque placerat elit a nunc.
[indent]Nullam tortor odio, rutrum quis, egestas ut, posuere sed, felis.[/indent][/indent]

Numbered list
  1. List Item #1
  2. List Item #2
    1. Subitem a)
    2. Subitem b)
  3. List Item #3
Code:
[list=1]
[*]List Item #1
[*]List Item #2
[list=a]
[*]Subitem a)
[*]Subitem b)
[/list]
[*]List Item #3[/list]

Hyperlink

Hyperlink to myBB page

Code:
[url=http://docs.mybb.com/1.6/Custom-MyCode/]Hyperlink to myBB page[/url]

Superscript and subscript

This text requires external citation.[citation]
P1 and P2 are known Rogues.

Code:
This text requires external citation.[sup][url=http://en.wikipedia.org/wiki/Citation][citation][/url][/sup]
P[sub]1[/sub] and P[sub]2[/sub] are known Rogues.

Horizontal line



Code:
[hr]

Spoiler


Code:
[spoiler=Click on me!][align=center][img]http://i.imgur.com/gtA36t3.gif[/img][/align][/spoiler]

Image formatting

[Image: mZzRtYB.png]

Code:
[align=center][img size=100x100]http://i.imgur.com/mZzRtYB.png[/img][/align]


Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean et est a dui semper facilisis. Pellentesque placerat elit a nunc. Nullam tortor odio, rutrum quis, egestas ut, posuere sed, felis. Vestibulum placerat feugiat nisl. Suspendisse lacinia, odio non feugiat vestibulum, sem erat blandit metus, ac nonummy magna odio pharetra felis. Vivamus vehicula velit non metus faucibus auctor. Nam sed augue. Donec orci. Cras eget diam et dolor dapibus sollicitudin. In lacinia, tellus vitae laoreet ultrices, lectus ligula dictum dui, eget condimentum velit dui vitae ante. Nulla nonummy augue nec pede. Pellentesque ut nulla. Donec at libero. Pellentesque at nisl ac nisi fermentum viverra. Praesent odio. Phasellus tincidunt diam ut ipsum. Donec eget est.

Code:
[img float=right]http://i.imgur.com/mZzRtYB.png[/img][align=justify][hr]Lorem ipsum....[/align]



RE: MyCode formatting (with examples) - Venkman - 01-05-2015

Looks great mate. Plus it is very helpfull, good job.


RE: MyCode formatting (with examples) - Lythrilux - 01-05-2015

Good guide! I just wish you could use more than 8 [indent] tags :/


RE: MyCode formatting (with examples) - Corile - 01-05-2015

I'd rather wish the forum went to fixed width again.
Srsly.


RE: MyCode formatting (with examples) - Omi - 01-05-2015

I'd rather that using the quick edit function didn't delete all the empty lines in your post.


RE: MyCode formatting (with examples) - Ellie - 01-05-2015

(01-05-2015, 07:26 PM)Protégé Wrote: I'd rather wish the forum went to fixed width again.
Srsly.

Yes, please make this happen.