Facebook Nations Wiki
(Created page with "Wiki coding can be very confusing when you're first starting out, but it's simple enough once you've learned it. Those of you familiar with forum coding will probably instincti...")
 
Line 1: Line 1:
Wiki coding can be very confusing when you're first starting out, but it's simple enough once you've learned it.
+
Wiki coding can be very confusing when you're first starting out, but it's simple enough once you've learned it.
   
 
Those of you familiar with forum coding will probably instinctively try to use that here. This is a mistake. Most forums use brackets in their tags, but Wikia uses them, too, but for linking. Putting code in brackets will get you absolutely nothing.
 
Those of you familiar with forum coding will probably instinctively try to use that here. This is a mistake. Most forums use brackets in their tags, but Wikia uses them, too, but for linking. Putting code in brackets will get you absolutely nothing.
   
Once you've memorized these, the only other thing you have to remember is that you can ONLY use them when you're looking at the source code. When you edit a page, you have two tabs, '''Visual mode''' and '''Source mode'''. If you want to code, ''always'' hit the '''Source mode''' tab first. Otherwise it will not work.
+
Once you've memorized these, the only other thing you have to remember is that you can only edit existing tags when you're looking at the source code. When you edit a page, you have two tabs, '''Visual mode''' and '''Source mode'''. While you can add new tags in either mode, the next time you edit the page Visual mode will update to display the text as it appears on the page. Source mode will always display the code.
   
 
==Text formatting==
 
==Text formatting==
 
<big>'''BOLD'''</big>
 
<big>'''BOLD'''</big>
<br/>When you want to '''bold''' something, there are two ways to go about it (the same two ways that apply to all text formatting code on the Wiki); first, you can use plain HTML code.
+
<br />When you want to '''bold''' something, there are two ways to go about it (the same two ways that apply to all text formatting code on the Wiki); first, you can use plain HTML code.
   
 
<b>The lightsaber sliced through his head like it was soft butter</b> is written as:
 
<b>The lightsaber sliced through his head like it was soft butter</b> is written as:
 
<pre><nowiki><b>The lightsaber sliced through his head like it was soft butter</b></nowiki></pre>
 
<pre><nowiki><b>The lightsaber sliced through his head like it was soft butter</b></nowiki></pre>
   
<br/>Now if you want to write the same sentence using Wikia code, it's quite a bit different. Wikia uses apostrophes. In this case, three:
+
<br />Now if you want to write the same sentence using Wikia code, it's quite a bit different. Wikia uses apostrophes. In this case, three:
 
<pre><nowiki>'''The lightsaber sliced through his head like it was soft butter'''</nowiki></pre>
 
<pre><nowiki>'''The lightsaber sliced through his head like it was soft butter'''</nowiki></pre>
<br/>
+
<br />
 
<big>''ITALICS''</big>
 
<big>''ITALICS''</big>
<br/>''The lightsaber sliced through his head like it was soft butter'' is written as:
+
<br />''The lightsaber sliced through his head like it was soft butter'' is written as:
 
<pre><nowiki><i>The lightsaber sliced through his head like it was soft butter</i></nowiki></pre>
 
<pre><nowiki><i>The lightsaber sliced through his head like it was soft butter</i></nowiki></pre>
<br/>Or:
+
<br />Or:
 
<pre><nowiki>''The lightsaber sliced through his head like it was soft butter''</nowiki></pre>
 
<pre><nowiki>''The lightsaber sliced through his head like it was soft butter''</nowiki></pre>
<br/><big>'''''BOLD ITALICS'''''</big>
+
<br /><big>'''''BOLD ITALICS'''''</big>
<br/>This is just simple addition. You want something bold ''and'' italicized? Just combine 'em:
+
<br />This is just simple addition. You want something bold ''and'' italicized? Just combine 'em:
<br/>'''''The lightsaber sliced through his head like it was soft butter'''''
+
<br />'''''The lightsaber sliced through his head like it was soft butter'''''
<br/><pre><nowiki><i><b>The lightsaber sliced through his head like it was soft butter</i></b></nowiki></pre>
+
<br /><pre><nowiki><i><b>The lightsaber sliced through his head like it was soft butter</b></i></nowiki></pre>
  +
Note: When combining html tags, it is important to close tags in the opposite order to which they were opened; the first opened must be the last closed.
<br/>Or:
+
<br />Or:
<pre><nowiki>'''''The lightsaber sliced through his head like it was soft butter'''''</nowiki></pre>
+
<pre><nowiki>'''''The lightsaber sliced through his head like it was soft butter'''''</nowiki></pre>
   
 
==Inserting links and pictures==
 
==Inserting links and pictures==
Line 31: Line 32:
   
 
'''Linking to another page within the Wiki'''
 
'''Linking to another page within the Wiki'''
<br/>When writing an article, you will undoubtedly mention dozens of different things, all of which have their own articles. The best articles are linked everywhere they can be. Say you're writing an article and you make a reference to my character, Darth Taral/Emperor Walker. Here's how you do it:
+
<br />When writing an article, you will undoubtedly mention dozens of different things, all of which have their own articles. The best articles are linked everywhere they can be. Say you're writing an article and you make a reference to my character, Darth Taral/Emperor Walker. Here's how you do it:
<br/>To link to another page within the same Wiki, simply write the exact name of the article inside two pair of brackets:
+
<br />To link to another page within the same Wiki, simply write the exact name of the article inside two pair of brackets:
   
<br/>[[Darth Taral]]
+
<br />[[Darth Taral]]
<br/><pre><nowiki>[[Darth Taral]]</nowiki></pre>
+
<br /><pre><nowiki>[[Darth Taral]]</nowiki></pre>
<br/>Conveniently, as you're typing inside the brackets, several options will pop up predicting what it is you may be linking to. Simply click on the correct one (if applicable) and it will finish the code for you.
+
<br />Conveniently, as you're typing inside the brackets, several options will pop up predicting what it is you may be linking to. Simply click on the correct one (if applicable) and it will finish the code for you.
<br/>Now say you want to link to a page but you don't want to refer to it by its proper name. You can change the name quite easily by placing a vertical line after the article name (while still in the brackets) and typing the name you want displayed, like so:
+
<br />Now say you want to link to a page but you don't want to refer to it by its proper name. You can change the name quite easily by placing a vertical bar after the article name (while still in the brackets) and typing the name you want displayed, like so:
   
 
After escaping from the clutches of the Killik Hive, [[Darth Taral|Emperor Walker]] personally commanded the operation which ended the Killik War.
 
After escaping from the clutches of the Killik Hive, [[Darth Taral|Emperor Walker]] personally commanded the operation which ended the Killik War.
<br/><pre><nowiki>After escaping from the clutches of the Killik Hive, [[Darth Taral|Emperor Walker]] personally commanded the operation which ended the Killik War.</nowiki></pre>
+
<br /><pre><nowiki>After escaping from the clutches of the Killik Hive, [[Darth Taral|Emperor Walker]] personally commanded the operation which ended the Killik War.</nowiki></pre>
<br/>Just remember that the name of the article comes '''first''', followed by the text you want to appear as the link.
+
<br />Just remember that the name of the article comes '''first''', followed by the text you want to appear as the link.
   
 
'''Linking to a page ''outside'' the Wiki'''
 
'''Linking to a page ''outside'' the Wiki'''
<br/>There are times when you may want to link to a page somewhere outside the Wiki. To do that you enclose the full web URL followed by a space and the text you want acting as the link in a single pair of brackets.
+
<br />There are times when you may want to link to a page somewhere outside the Wiki. To do that you enclose the full web URL followed by a space and the text you want acting as the link in a single pair of brackets.
   
<br/>For further information on the Star Wars universe, please see [http://starwars.wiki.com/Main_Page Wookieepedia]
+
<br />For further information on the Star Wars universe, please see [http://starwars.wiki.com/Main_Page Wookieepedia]
<br/><pre><nowiki>For further information on the Star Wars universe, please see [http://starwars.wiki.com/Main_Page Wookieepedia]</nowiki></pre>
+
<br /><pre><nowiki>For further information on the Star Wars universe, please see [http://starwars.wiki.com/Main_Page Wookieepedia]</nowiki></pre>
   
 
'''Inserting photographs'''
 
'''Inserting photographs'''
<br/>There are a number of ways to insert photos. Most people just use the photo feature, which adds and formats the photo for you. But if you want to do it yourself with code, here's how. First you have to know the name of your photo, which will always be a file extension such as '''File:YourPhoto.jpg'''. When you know your photo's page name, you simply link to it as you would any other article within the Wiki. You have several photo options once you reach this point. You can leave it alone as just the file page name in brackets, which will insert your picture at its full size, or you can tinker with it. You can alter its size by specifying how many pixels wide you want it, you can make it a clickable thumbnail, you can align it to the left, right, or center of the page, and you can even add captions. Note that thumbnails are always formatted to the ''right'' side of the screen. You can change this, however.
+
<br />There are a number of ways to insert photos. Most people just use the photo feature, which adds and formats the photo for you. But if you want to do it yourself with code, here's how. First you have to know the name of your photo, which will always be a file extension such as '''File:YourPhoto.jpg'''. When you know your photo's page name, you simply link to it as you would any other article within the Wiki. You have several photo options once you reach this point. You can leave it alone as just the file page name in brackets, which will insert your picture at its full size, or you can tinker with it. You can alter its size by specifying how many pixels wide you want it, you can make it a clickable thumbnail, you can align it to the left, right, or center of the page, and you can even add captions. Note that thumbnails are always formatted to the ''right'' side of the screen. You can change this, however.
 
{{Scroll box|
 
{{Scroll box|
 
<br/>Full-sized photo:
 
<br/>Full-sized photo:

Revision as of 18:01, 8 March 2012

Wiki coding can be very confusing when you're first starting out, but it's simple enough once you've learned it.

Those of you familiar with forum coding will probably instinctively try to use that here. This is a mistake. Most forums use brackets in their tags, but Wikia uses them, too, but for linking. Putting code in brackets will get you absolutely nothing.

Once you've memorized these, the only other thing you have to remember is that you can only edit existing tags when you're looking at the source code. When you edit a page, you have two tabs, Visual mode and Source mode. While you can add new tags in either mode, the next time you edit the page Visual mode will update to display the text as it appears on the page. Source mode will always display the code.

Text formatting

BOLD
When you want to bold something, there are two ways to go about it (the same two ways that apply to all text formatting code on the Wiki); first, you can use plain HTML code.

The lightsaber sliced through his head like it was soft butter is written as:

<b>The lightsaber sliced through his head like it was soft butter</b>


Now if you want to write the same sentence using Wikia code, it's quite a bit different. Wikia uses apostrophes. In this case, three:

'''The lightsaber sliced through his head like it was soft butter'''


ITALICS
The lightsaber sliced through his head like it was soft butter is written as:

<i>The lightsaber sliced through his head like it was soft butter</i>


Or:

''The lightsaber sliced through his head like it was soft butter''


BOLD ITALICS
This is just simple addition. You want something bold and italicized? Just combine 'em:
The lightsaber sliced through his head like it was soft butter


<i><b>The lightsaber sliced through his head like it was soft butter</b></i>

Note: When combining html tags, it is important to close tags in the opposite order to which they were opened; the first opened must be the last closed.
Or:

'''''The lightsaber sliced through his head like it was soft butter'''''

Inserting links and pictures

Wikias are set up to make it very simple to link to other pages and files found within the same Wiki.

Linking to another page within the Wiki
When writing an article, you will undoubtedly mention dozens of different things, all of which have their own articles. The best articles are linked everywhere they can be. Say you're writing an article and you make a reference to my character, Darth Taral/Emperor Walker. Here's how you do it:
To link to another page within the same Wiki, simply write the exact name of the article inside two pair of brackets:


Darth Taral


[[Darth Taral]]


Conveniently, as you're typing inside the brackets, several options will pop up predicting what it is you may be linking to. Simply click on the correct one (if applicable) and it will finish the code for you.
Now say you want to link to a page but you don't want to refer to it by its proper name. You can change the name quite easily by placing a vertical bar after the article name (while still in the brackets) and typing the name you want displayed, like so:

After escaping from the clutches of the Killik Hive, Emperor Walker personally commanded the operation which ended the Killik War.


After escaping from the clutches of the Killik Hive, [[Darth Taral|Emperor Walker]] personally commanded the operation which ended the Killik War.


Just remember that the name of the article comes first, followed by the text you want to appear as the link.

Linking to a page outside the Wiki
There are times when you may want to link to a page somewhere outside the Wiki. To do that you enclose the full web URL followed by a space and the text you want acting as the link in a single pair of brackets.


For further information on the Star Wars universe, please see Wookieepedia


For further information on the Star Wars universe, please see [http://starwars.wiki.com/Main_Page Wookieepedia]

Inserting photographs
There are a number of ways to insert photos. Most people just use the photo feature, which adds and formats the photo for you. But if you want to do it yourself with code, here's how. First you have to know the name of your photo, which will always be a file extension such as File:YourPhoto.jpg. When you know your photo's page name, you simply link to it as you would any other article within the Wiki. You have several photo options once you reach this point. You can leave it alone as just the file page name in brackets, which will insert your picture at its full size, or you can tinker with it. You can alter its size by specifying how many pixels wide you want it, you can make it a clickable thumbnail, you can align it to the left, right, or center of the page, and you can even add captions. Note that thumbnails are always formatted to the right side of the screen. You can change this, however.


Full-sized photo:
Darth Taral4.jpg


[[File:Darth_Taral4.jpg]]


Photo with altered size:
Darth Taral4.jpg


[[File:Darth_Taral4.jpg|250px]]


Photo as a thumbnail:

Darth Taral4.jpg


[[File:Darth_Taral4.jpg|thumb|250px]]

Photo as a thumbnail with a caption (formatted to the left-hand side of the screen):

Darth Taral is a Sith Lord and the Emperor of The Galactic Empire


[[File:Darth_Taral4.jpg|thumb|left|250px|Darth Taral is a Sith Lord and the Emperor of [[The Galactic Empire]]]]