The DijonStock Digital Home Recording Support Forum

*** USER REGISTRATION DISABLED! FOR ACCESS TO THE BOARD, MAIL TO registration AT dijonstock DOT com. THANK YOU ***
It is currently Tue Apr 16, 2024 6:20 am

All times are UTC + 1 hour [ DST ]


Forum rules


This is an announcements section. Only the moderator team can start new topics here. However you can respond to topics so you can always ask more specific questions about things that are being announced.

If you have a new question or suggestion, please create a new topic in the comments&suggestions section.

Thank you!



Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Using tags in your posts
PostPosted: Wed Apr 15, 2009 9:38 pm 
Offline
Robbie The Botkiller
User avatar

Joined: Sat Jun 19, 2004 12:46 pm
Posts: 5610
Location: Netherlands
Favourite food: Ria's cheesecake
Machine type: AW16G
Tags provide more flexibility for how text is presented. At the top of your post editing screen you will find many of them. The format is as follows:

[tagname]text[/tagname]

or sometimes

[tagname=parameter(s)]text[/tagname].


In this post I'll explain 'em all.



The b tag: makes text bold.
Code:
[b]This is the b tag[/b]

Result:
This is the b tag



The i tag: makes text italic.
Code:
[i]This is the i tag[/i]

Result:
This is the i tag



The u tag: makes text underlined.
Code:
[u]This is the u tag[/u]

Result:
This is the u tag



The quote tag: puts a quote in a post, quotes someone else's text.
Code:
[quote="someone"]This is the quote tag[/quote]

Result:
someone wrote:
This is the quote tag

The quote tag is automatically applied when the quote button of someone's post is clicked, his/her username included in the tag.



The list tag can be used in three ways: bullets, numbers or letters.

The list tag for lists using bullets:
Code:
[list][*]This is the list tag without parameter
[*]second line
[*]third line[/list]

Result:
  • This is the list tag without parameter
  • second line
  • third line

The list tag for lists using letters:
Code:
[list=A][*]This is the list tag with parameter A
[*]second line
[*]third line[/list]

Result:
  1. This is the list tag with parameter A
  2. second line
  3. third line

The list tag for lists using numbers:
Code:
[list=1][*]This is the list tag with parameter 1
[*]second line
[*]third line[/list]

Result:
  1. This is the list tag with parameter 1
  2. second line
  3. third line



The img tag: puts an image into your post. The image has to be accessible through the internet.
Code:
[img]http://www.dijonstock.com/forum%20logo.jpg[/img]

Result:
Image



The url tag can be used in two ways: a hyperlink to any web addres in your post showing the url or a hyperlink to any web address showing a different text.

The url tag showing the url itself:
Code:
[url]http://www.wikipedia.org[/url]

Result:
http://www.wikipedia.org

The url tag showing a different text:
Code:
[url=http://www.wikipedia.org]Click here![/url]

Result:
Click here!



The flash tag: embeds a flash file (*.swf):
Code:
[flash=480,360]http://www.ianai.net/jokes/bubble.swf[/flash]

The 480 and 360 in the example are width and height. You can adjust that.
Result:




The size tag: adjusts the size of your text.
Code:
[size=200]This is bigger[/size]
[size=60]This is smaller[/size]

Result:
This is bigger
This is smaller
The size can be selected from the Font size pull down menu next to the tag buttons. The specified size can be adjusted to anything in a range from 1 to 999 in % of normal text, so 100 is normal, 200 is twice the size and 50 is half the size.



The bgcolor tag: gives text a background color in #RGB format. The brightness of each primary color is specified in a hexadecimal number between 00 and ff.
The first two digits are red, the next two digits are green, the last two digits are blue.

Code:
[bgcolor=#FF0000]This is text[/bgcolor]

result:
This is text

Code:
[bgcolor=#00FF00]This is text[/bgcolor]

result:
This is text

Code:
[bgcolor=#0000FF]This is text[/bgcolor]

result:
This is text

You can mix them as you want:
Code:
[bgcolor=#80FF40]This is text[/bgcolor]

result:
This is text



The color tag: presents your text in any color. The color is specified in the #RGB format which is explained at the bgcolor tag. The color can be picked from the colored grid at the right of your editing screen. It can be adjusted to any value you like.
Code:
[color=#FF0000]This is red[/color]

Result:
This is red

Code:
[color=#00FF00]This is green[/color]

Result:
This is green

Code:
[color=#0000FF]This is blue[/color]

Result:
This is blue



The border tag: puts a border around your text.
Code:
[border]This is a text[/border]

result:
This is a text




The center tag: centers your text.
Code:
[center]This text is put in the middle of a line.[/center]

Result:
This text is put in the middle of a line.




The hr tag: puts a horizontal line in your post. Don't put anything between the tags.
Code:
[hr][/hr]

The results are the horizontal lines shown between the tag explanations.



The left tag: aligns your text to the left.
Code:
[left]This text is put on the left of a line.[/left]

Result:
This text is put on the left of a line.




The map tag: Presents a google map at the specified lattitude and longitude.
Code:
[map=51.6548,4.8691,15][/map]

The first parameter is the lattitude in decimal degrees, the second is the longitude in decimal degrees and the third is a zoom factor ranging from 1 to 18.
Result:

Grotere kaart weergeven



The marquee tag: presents your text as a color adjustable ticker tape.
Code:
[marquee=#00FF00]This is your text[/marquee]

The parameter in the marquee tag (#00FF00 in this example, which is pure green) is the color code which is explained at the bgcolor tag. When the mouse is positioned on the line the text will not scroll.
Result:
This is your text



The marqspeed tag: presents your text as a speed adjustable ticker tape.
Code:
[marqspeed=4]This is your text[/marqspeed]
[marqspeed=5]This is a slightly faster text[/marqspeed]

The parameter in the marqspeed tag (4 in the first line, 5 in the second of this example) is the ticker tape speed. The higher the number the faster the text goes. When the mouse is positioned on the line the text will not scroll.
Result:
This is your text
This is a slightly faster text



The play tag: plays an mp3 or wav file.
Code:
[play]url to an mp3 or wav file[/play]

Result:
You'll hear the music. An actual example is not included in this post. Note that forum readers will not expect music to start automatically when loading a page. The tag will not show anything.



The rainbow tag: puts all separate letters of a text in random colors.
Code:
[rainbow]This is a text[/rainbow]

Result:

Refreshing the page will change the colors.



The resizeimg tag: Resizes you image to the percentage you specify in the tag. A nice one to have real big images fit the screen.
Code:
[resizeimg=25]http://the12stepbuddhist.com/wp-content/uploads/2010/02/cheese2hq.jpg[/resizeimg]

Code:
[resizeimg=50]http://the12stepbuddhist.com/wp-content/uploads/2010/02/cheese2hq.jpg[/resizeimg]

Result:
image
image
You can use any percentage you like, also bigger than 100%.



The right tag: aligns your text to the right.
Code:
[right]This text is put on the right of a line.[/right]

Result:
This text is put on the right of a line.




The spoiler tag: Does not display a part of the post until a button is clicked.
Code:
[spoiler]You can read this after clicking a button.[/spoiler]

Result:
Show the message:
You can read this after clicking a button.

Note: this tag can also contain links, images, flash files etc. You can't "hide" playing an mp3 or wav file using the play within the spoiler tags. It'll start playing anyhow, the fact that it's not shown doesn't mean it isn't there.



The sub tag: shows text as subscript.
Code:
This is [sub]sub[/sub]script, n[sub]1[/sub] + n[sub]2[/sub] + ... + n[sub]n[/sub]

Result:
This is subscript, n1 + n2 + ... + nn.



The sup tag: shows text as superscript.
Code:
This is [sup]super[/sup]script, Y = ¾X[sup]4[/sup] + 17X[sup]3[/sup] - 2X[sup]2[/sup]

Result:
This is superscript, Y = ¾X4 + 17X3 - 2X2



The youtube tag: embeds a youtube video from the .com domain.
Code:
[youtube]http://www.youtube.com/watch?v=_d3QDdXpP0g[/youtube]

Result:

Link

When you find a suitable youtube movie from the youtube.com domain, use copy & paste to get the url from the address bar between the youtube tags.



The youtube-de tag: works exactly the same as the youtube tag, but it is for movies from the german youtube.de domain. If you need to be able to put up youtube links from different domains, such as .org, .ca, .whatever, send one of the mods a pm and we'll fix it for you.



The 4shared tag:for embedding 4shared files.
Code:
[4shared]http://www.4shared.com/embed/224201050/c47a99d3[/4shared]

Result:

Copy&paste the 4shared url and put it between the 4shared tags.



The table tag: Makes html tables in bbcode. It's probably not going to be used much but it was the challenge to get it working.

You need three tags to make a table:

Code:
1) [table][/table]
2) [tr][/tr]
3) [td][/td]


Before you can make a table, you have to decide what the number of rows and the number of columns is going to be. Also, you have to decide the width of the total table in pixels (about 500 is usually good).

Let's assume you want to make a table of 5 columns and 3 rows, the table must be 500 pixels wide.

First, you have to tell the bbcode processor that you want to make a table, 500 pixels wide:

Code:
[table=500][/table]


Next, you need to specify 3 times that you want to have a row. You do this between the table tags:

Code:
[table=500]
[tr][/tr]
[tr][/tr]
[tr][/tr]
[/table]


Then, in each tr - /tr line you need to say you want a row divided in 5 columns. You have to put the td tags between the tr and /tr tag. Each line is going to be:

Code:
[tr][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]


So, thusfar the whole thing looks like:

Code:
[table=500]
[tr][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]
[tr][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]
[tr][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]
[/table]


And last, you put your data between the td and /td tags:

Code:
[table=500]
[tr][td]col1row1[/td][td]col2row1[/td][td]col3row1[/td][td]col4row1[/td][td]col5row1[/td][/tr]
[tr][td]col1row2[/td][td]col2row2[/td][td]col3row2[/td][td]col4row2[/td][td]col5row2[/td][/tr]
[tr][td]col1row3[/td][td]col2row3[/td][td]col3row3[/td][td]col4row3[/td][td]col5row3[/td][/tr]
[/table]


And the whole thing looks like this:

col1row1 col2row1 col3row1 col4row1 col5row1
col1row2 col2row2 col3row2 col4row2 col5row2
col1row3 col2row3 col3row3 col4row3 col5row3


Changing the width to 400 by replacing the table=500 to table=400 tag:

col1row1 col2row1 col3row1 col4row1 col5row1
col1row2 col2row2 col3row2 col4row2 col5row2
col1row3 col2row3 col3row3 col4row3 col5row3


It looks like a lot of work, but it's OK really. More so when you're a copy & paste handyman. However you can generate a table template. Run this little tool.

TABLE.EXE

Put in anywhere on your local machine and run it. You can also run it directly on download. It'll open a dos box (yep - that's me). It'll ask you for 4 parameters:

  • Width in pixels: width of the whole table. A typical screen is 1000-1200 pixels wide, so 500 to 800 will be good. Smaller if you have a small number of columns with little data.
  • Number of columns: how many cells next to each other.
  • Number of rows: height of the table in cells.
  • Default cell data: text that will be put in every cell. This makes it easy/easier to find where to type your data.

The program will write a text file in the root of your C: disk, having the name ROWCOL.TXT. You can open it using any word processor, like notepad, wordpad or word. Copy and paste the contents into your post.

Code:

    How wide, in pixels? 600

    How many columns?    6

    How many rows?       3

    Default cell data?   **



Will result in:

Code:
[table=600]
[tr][td]**[/td][td]**[/td][td]**[/td][td]**[/td][td]**[/td][td]**[/td][/tr]
[tr][td]**[/td][td]**[/td][td]**[/td][td]**[/td][td]**[/td][td]**[/td][/tr]
[tr][td]**[/td][td]**[/td][td]**[/td][td]**[/td][td]**[/td][td]**[/td][/tr]
[/table]


Showing as

** ** ** ** ** **
** ** ** ** ** **
** ** ** ** ** **


OK back to doing something useful.



I'm also implementing some tags for calculation. More to follow.

The calc-addsound tag: Calculates the sound level when two sounds at specified levels are added.
Code:
[calc-addsound=90,90][/calc-addsound]

Result:

Two sources that are both 90 dB produce a level of dB.



Combining tags

In a lot of cases, tags can be combined. If you want to know how, experimenting is the way to go. Sometimes the result is obvious, sometimes it is downright unpredictable. After all, tags are nothing but a translation to html.

Examples:
Code:
[center][bgcolor=#000040][color=#FF0000]This is text.[/color][/bgcolor][/center]

Result:
This is text.


Code:
[spoiler][marquee=#000000][img]http://www.dijonstock.com/dijon6.gif[/img][/marquee][/spoiler]

Result:
Show the message:
Image


Code:
[border][size=800][rainbow]HUGE[/rainbow][/size][/border]

Result:




If you have any further questions, do not hesitate to ask.

Happy tagging!

_________________

Don't judge the coffee by its cup.
The proof of the cheese is in the eating


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group