Hyena's guide to basic PHP, HTML, and Wiki code

From OLSEncyclopedia

Jump to: navigation, search
At least one user facepalmed when they saw this article.
Feel free to read anyway, and laugh at how factually inaccurate it is.

For those of you new to Outlaw Star.Net's Message board and to the wiki, I have designed a very basic guide to using PHP, HTML, and Wiki code for newbies. In the old days of Outlaw Star.Net, the message board was hosted on ezboard, which used HTML. It it's current version, Outlaw Star.Net uses PHP code and the wiki uses it's own code for editing pages.
Some of them share the same codes, but sometimes have different ones or have their own exclusive ones.
Also, this can be used as a reference for other members as well, not just for newbies.
You probably want me to break down to it already, so here I go:

Contents

Formatting Text

Bold text

HTML: <B>Bold</b> = Bold
PHP: [B]Bold[/B] = Bold
WIKI: '''Bold''' = Bold

Italic text

HTML: <i>Italic</i> = Italic
PHP: [i]Italic[/i] = Italic
WIKI: ''Italic'' = Italic

Underline

HTML: <u>underline</u> = underline
PHP: [u]underline[/u] = underline
WIKI: <u>underline</u> or <ins>inserted material</ins> = underline

Strikethrough

HTML: <s>strike out</s> = strike out
PHP: [s]strike out[/s] = strike out
WIKI: <s>strike out</s> or <del>Deleted material</del> = strike out

Small text

HTML: <small>Small text</small> = Small text
PHP: [small]Small text[/small] = Small text
WIKI: <small>Small text</small> = Small text

Big text

HTML: <big>big text</big> = big text
PHP: [big]big text[/big] = big text
WIKI: <big>big text</big> = big text

Right aligned text

HTML: <P ALIGN="RIGHT">Hello!</p> =

Hello!


PHP: [right]Right Aligned Text[/right] =
Wiki:

Left aligned text

HTML: <P ALIGN="LEFT">Hello!</p> =

Hello!


PHP: [left]Left Aligned Text[/left] =
Wiki:

Center aligned text

HTML: <P ALIGN="Center">Hello!</p> =

Hello!


PHP: [center]Centered Text[/center] =
WIKI:

Quote

Note: We do not have a Quote Template up yet, so you can't see the effects of the code on the wiki. But at least blockquote works on the wiki.

HTML: <q>Quote</q> =

HTML2: <blockquote>Quote</blockquote> =
Quote

PHP: [quote]Quote[/quote] =
WIKI = {{Quotation|Quote|Whoeversaidit|Source}} = Template:Quotation

Typewriter Text

WIKI: <tt>monospace text</tt> = monospace text
WIKI: <code>computer code: int main()</code> = computer code: int main()

Spoiler

PHP: [spoiler]spoiler[/spoiler] =

WIKI: {{spoiler}} =
Spoiler warning: Plot and/or ending details follow.

WIKI2: {{endspoiler}} =
Spoilers end here.


Linking

Linking to a website

Note: Wiki and HTML must have the Http:// part of the web address added.
HTML: <a href="http://www.outlawstar.net">outlawstar.net</a> = outlaw star.net
PHP: [url=http://www.outlawstar.net]outlaw star.net[/url] = outlaw star.net
WIKI: [http://www.outlawstar.net outlaw star.net] = outlaw star.net
WIKI2: [http://www.outlawstar.net] = [1]

Linking e-mail

HTML: <a herf="mailto:emailaddress@emailaddress.com">Contact</a> = emailaddress@emailaddress.com
PHP: [email]email@email.com[/email] = email@email.com
WIKI: [mailto:email@email.com email@email.com] = email@email.com
WIKI 2: [mailto:emailaddress@emailaddress.com] = [2]

Linking/Creating a Wiki page

Note: Do not edit the new created page link (In red), it's there to be a example.
WIKI Link: [[Gene Starwind]] = Gene Starwind
WIKI Create new page: [[Page created to edit]] = Page created to edit

Redirecting

To redirect a Wiki page, say XGP to XGP15A-II, first create the page XGP. Edit the XGP page and put in #REDIRECT [[XGP15A-II]]. You can also redirect sections of a page. #REDIRECT XGP15A-II#history. However, if the section name changes, the redirect will lead to the top page instead.
Also do not use double redirects as they will not work.

Making lists

HTML and WIKI: <li> Gene Starwind =
  • Gene Starwind
    WIKI: * Gene Starwind =
    • Gene Starwind

    Numbered list: <ol></ol>
    Letters list: <ol type="A"></ol>
    Lowercase letters list: <ol type="a"></ol>
    Roman numbers list: <ol type="I"></ol>
    Lowercase Roman numbers list: <ol type="i"></ol>

    Images

    Please read the rules about images.

    Posting a image

    HTML: <img src="website address"></img>
    PHP: [img]website address[/img]
    WIKI: [[Image:wiki.png]]

    Giving the image alternative text

    HTML: <img src="website address" alt="Spots"></img>
    WIKI: [[Image:wiki.png|jigsaw globe]]

    Sound

    No uploading of entire songs on the board or wiki. At best, you can upload with samples. You can link to uploading sites using the website link code above that has the song as these are usually temporary and no one might try to come after us. Warnings will be sent out for the usual stuff.

    HTML:
    WIKI: [[media:outlawstarnet.ogg|Sound]]

    Symbols

    Note: It seems our wiki does not translate the codes/tags for symbols right now (Wiki and HTML codes/tags for symbols are the same). Once this is fixed, I will add to this.

    How are you making the code/tags show on the wiki?

    In wiki, there are tags for this. To make code show, type in 'nowiki' with the HTML brackets <>. To end it, type /nowiki with the HTML brackets <>.

  • Personal tools