Star Wars Fanon

Discussions is now live!

READ MORE

Star Wars Fanon
Shortcut:
SWF:CODE

Wds-icons-alert

Any user is allowed to contribute to or elaborate on this article.

Additions to this article may be given by any user, but if you wish to modify a previous addition to better fit your ideas, you should ask about it on this article's talk page.

Blue i icon

This page is a Star Wars Fanon guide or help page.

It gives an in-depth explanation about its subject, such as a policy or Star Wars Fanon feature. Feel free to update the page as needed, but please use the discussion page to propose major changes.

Attention

This article needs general cleanup.

Please fix any Manual of Style, Layout Guide, grammatical and spelling errors without removing important information. Leave comments and suggestions on this article's talk page. For help with fixing the article, feel free to visit the Writing Center.

Coding encyclopedia
Coding Encyclopedia
Attribution
Author(s)
Publication information
Publisher

Star Wars Fanon Wiki

Type

Encyclopedia

General information
Genre(s)

Self-help

The Coding Encyclopedia is an encyclopedia created by Marek "Mighty" Joesph as a reference guide for free use to use wiki-style coding. Unlike most encyclopedias, this one is not organized in alphabetical order, but categorized by what the code is made to do. This encyclopedia was originally made in response to the Help Wiki and how difficult it was to find a specific article that contained the needed information, although the Help Wiki was a commonly used source for the information found in the encyclopedia. The Coding Encyclopedia also includes a sandbox section for users to try what they learned in the encyclopedia. The text assumes the reader knows what each subject does and understands the policies of their respective wiki, although brief explanations about the code are shown in the more complicated sections. This encyclopedia is currently in production and can be altered by anyone so long as their information is accurate.

Note:HTML and CSS codes are not explained here.

Headings[]

This section explains how to place headers on an article.

To create a header, type in desired text and place two equal signs (=) on each side of the text == like this == for a Level Two header.

The more equal signs you place on a header, the smaller the header will get. For example, three equal signs === like this === will create a Level Three header and four equal signs ==== like this ==== to get a Level Four header.

This pattern continues to a Level Six header, although due to the Monaco skin style, it is not recommended to use small headers excessively because of their oddly small size.

Links[]

This section explains how to change text into links in articles.

Internal links[]

Internal links are links that "link" to other pages within the wikia wiki of current usage.

To create an internal link, enter the desired text and place two two-pronged brackets ([[ ]]) on each side of the text [[like this]] to create an internal link.

Changing appearance of internal links[]

To change the appearance of internal links is to change the wording of the link itself, while having it link to the same place.

If a person links to Darth Vader, but want it to read, "Dark Lord", then the user would take [[Darth Vader]] and insert a single vertical bar (|) after the name of the article, but inside the two pronged brackets ([[ ]]) and then type in the desired text behind the vertical bar, but inside the two pronged brackets. The final code will look like this: [[Darth Vader|Dark Lord]].

External links[]

External links are links that "link" to websites outside the wikia wiki of current usage.

To create an external link, type in the exact web address and place a single two pronged bracket ([ ]) on each side of the web address or use the plainlink template.

Changing appearance of external links[]

To change the appearance of external links is to change the wording of the link itself, while having it link to the same place.

If a person links to Google, but wants it to read "Search Engine", then the user would take [http://www.google.com] and place a single space after the web address but before the single two pronged bracket (]) and type "Search Engine" after the space. The final code will look like: [http://www.google.com Search Engine]

Linking to Wookieepedia and other wikis[]

Wookieepedia[]

This particular Wikia wiki has a special form of linking to Wookieepedia without going through the time consuming process of external linking.

To link to Wookieepedia, start by placing two three-pronged brackets, two left and two right, ({{ }}) and typing in the name of the desired article on Wookieepedia between them. Next place a single vertical bar (|) in front of the name of the article. Then before the bar, but within the brackets, type in the letters sw. The final code should look like: {{sw|Alliance to Restore the Republic}}. Similarly, using l instead of sw will link to the Legends version of an article (compare {{sw|Alliance to Restore the Republic}}, which yields Alliance to Restore the Republic, to {{l|Alliance to Restore the Republic}}, which yields the Legends version). NB that, if there is no Legends version of an article with the same title as the Canon version, using the l will cause an error.

Additional methods for linking to Wookieepedia include replacing the letters sw with the word starwars (no space) and replacing the single vertical bar with a colon (:) to create the final code: [[starwars:Alliance to Restore the Republic|Rebel Alliance]]; the first usage of the title indicates the page name on Wookieepedia, and the second usage of the title indicates the name you wish to display it as here on Star Wars Fanon.

Other wikis[]

Another method for linking to Wookieepedia includes a basic code found on all wikis. To use this code, type [[w:c:starwars:Rebel Alliance|Rebel Alliance]]. As with the previous method, the page title and display name apply. The w:c: is the Wikia linking code, and starwars is the wiki name—not to be confused with the sitename—of Wookieepedia, as indicated by the wiki's URL. Using this code produces Rebel Alliance .

This Wikia code method can be used for any other Wikia wiki as well; [[w:c:darth:Jesus Patrick Bach|Jesus Patrick Bach]] links to Jesus Patrick Bach on Darthipedia, for example.

Bold and italicize text[]

This section explains how to bold and italicize text. While the buttons at the top of the editing window can also be used, more experienced users tend to prefer coding it themselves.

Bold text[]

To bold text, simply type or select the desired text and place three tick marks (''') on both sides of the desired text. The final code should look like this: '''Example text'''

Italicize text[]

To italicize text, simply type or select the desired text and place two tick marks ('') on both sides of the desired text. The final code should look like this: ''Example text''

Bold and italicize text[]

To bold and italicize text, simply type or select the desired text and place five tick marks (''''') on both sides of the text. The final code should look like this:'''''Example text'''''

Underlining and striking text[]

This section explains how to underline and strike text.

Underlining text[]

To underline text, simply type or select the desired text and place <u> at the beginning and place </u> at the end. The final code should look like this: <u>Example text</u>

Striking text[]

To strike text, simply type or select the desired text and place <s> at the beginning and place at the end. The final code should look like this: <s>Example text</s>

Signatures[]

This section explains how to place signatures.

To place a signature, simply place four tildes ( ~~~~ ) after a message.

To place a signature without a timestamp, place only three tildes.

To place a signature with only a timestamp, (not recommended) place five tildes.

Indentations[]

This section explains how to indent the text. Although not commonly used in articles (for the sake of retaining the encyclopedic feel) they can be used in fan fiction for the purpose of organizing the text like a novel.

Simply type in or select the text to indent and place a colon (:) in front of the desired text. The indentation will increase with more colons added. The final code should look like this:

:Example text
::Example text
:Example text

Image coding[]

See also: User:Brandon Rhea/Image tutorial

This section explains how to code images into an article or other pages.

Inserting images[]

Wikia wikis allows users to insert images into articles or other pages.

Start with two two-pronged brackets ([[) and type the name of the desired file after it. File:Example.jpg. Then after that place a single vertical bar (|) and type in thumb. If the user wants a caption, then place another vertical bar after the word thumb and then type in the caption. If a caption is not needed then ignore that particular step. Then close it with two more two pronged brackets. The final code should look like this:[[File:Example.jpg|thumb|An example]].

Embedding images[]

Embedding images allows users to insert images into articles or other pages in a similar manner to the inserting images procedure explained above, except that this procedure removes the captions and the border.

Start by inserting two two-pronged brackets ([[) and then inserting the name of the desired file. File:Example.jpg. Then insert two more two-pronged brackets (]]). The final code should look like: [[File:Example.jpg]].

Changing image size[]

If the file's original size is too large or too small, the user is able to change the size of the photo by altering the pixel measurements or the picture's dimensions.

Changing image sizes with inserted images[]

Taking the example from the "Inserting Images" tutorial, ([[File:Example.jpg|thumb|An example]]) place the desired amount of pixelation after the second vertical bar (|) like this: 100px. Lastly place another vertical bar after it. The final code should look like this: [[File:Example.jpg|thumb|100px|An example]]

Changing Image sizes with embedded images[]

Taking the example from the "Embedding Images" tutorial, ([[File:Example.jpg]]) place a single vertical bar (|) after the image name, but before the two two-pronged brackets (]]) and type in the desired number of pixelationslike this: 100px. The final code should look like this: [[File:Example.jpg|100px]]

Templates[]

This section explains how to use various templates on this wiki.

Note: Coding may vary from wiki to wiki.

Templates with no fields[]

To place a template that contains no variables that require input from the user, simply type in the coding name for the desired template and place three-pronged brackets, {{ }} two on each side of the text. The final code should look like this: {{Template name}}

Templates with fields[]

Note: There are some exceptions to this procedure, if the procedure does not work, try looking up the template's page for more information.

Header and quote templates[]

Start by placing two three-pronged templates ({{) and type in the coding name of the desired template. Next place a single vertical bar (|) after the template's coding name and type in the appropriate information to satisfy the required field. Repeat the second and third part of the process if there are more fields. Lastly close in the text with two more three-pronged brackets. The final code should look like this: {{GA notify|Coding Encyclopedia}}

Infobox templates[]

Start by placing two three-pronged brackets ({{) and type in the coding name of the desired infobox with underscores ( _ ) in between spaces of the name. Next start on a new line by hitting your computer's enter button. Now place a single vertical bar (|) on the new line and type in the name of the desired field with an equal sign (=) after it. Now type in the information that fulfills the desired field. Repeat process for all the desired fields and leave the undesired fields blank. Lastly, place two more three-pronged brackets at the end of the final field. The final code should look like this:

{{Jedi_infobox
|Image=[[File:Example.jpg|100px]]
|Species=human
|birth=50 ABY
|death=75 ABY
|Lightsaber style= Form V}}

Categories[]

While categories can be added automatically at the bottom of the editing window, Wikia will occasionally glitch and not show the category a user could be searching for. If this happens, then the user can manually add categories into the article.

Manually added categories work in a similar way to links. Start with two two-pronged bars ([[) and type in the desired category like this: Category:Example Then enclose the category with two more two-pronged bars. (]]) The final code should look like this: [[Category:Example]] The text will not be seen in the article by default.

Text size[]

Although not regularly used on articles, a user can edit the text's size for use on user pages, templates, signatures, and talk pages.

Basic text altering[]

Increasing text size[]

To increase the size of the text, type in or select the desired text. Next place <span style="font-size:larger;"> in front of the text and place </span> at the end of the text. The final code should look like this: <span style="font-size:larger;">Example text</span> Other applicable values for font-size include small, medium, large as well as any values given in pixels, ems or points.

Decreasing text size[]

To decrease the size of the text, type in or select the desired text. Next place <small> in front of the text and place <small> at the end of the text. The final code should look like this: <small>Example text</small>

Miscellaneous text altering[]

Formatting text into sub- or superscript[]

To get text to appear above the normal line of text, simply type in or select the desired text and place <sup> at the beginning of the text and place </sup> at the end of the text. The final code should look like this: <sup>Example text</sup>. Placing the <sup></sup> in a sentence will place the desired text above the rest of the words in the sentence. Conversely, placing <sub></sub> in a sentence will force the desired words below the normal sentence. This is superscript at work and this is subscript at work.

Lists[]

This section explains how to create lists.

Bulleted lists[]

To create a bulleted list, start by selecting the text to create the list from. Next place an asterisk ( * ) in front of the first desired bit of text. Then place another asterisk in front of the next desired text. Repeat until all desired text is within the list. To increase the indent place another asterisk next to the first one. The indents increase as more are added. The final code should look like this:

*Example text
**Example text
**Example text
*Example text
*Example text

Numbered lists[]

To create a numbered list, start by selecting the text to create the list from. Next place a number sign ( # ) in front of the first desired bit of text. Then place another number sign in front of the next desired text. Repeat until all desired text is within the list. The final code should look like this:

#Example text
#Example text
#Example text
#Example text
#Example text

References[]

To reference text, select or type in the text that needs referencing. Next place <ref></ref> directly behind the text that needs referencing. In between those, place a link to a page that has the appropriate information or type in the information directly. If there is no section that currently lists references, create one and put in the code {{Reflist}} under the heading, the final code should look like this:

Example text<ref>[[Example link]]</ref> blah, blah, blah, Example text<ref>So and so did this and then he did that</ref>

== References ==
{{Reflist}}

Wikitext override codes[]

Occasionally, in order to display something that would normally bring up a code error, a user can manually override Wikitext so that they can display the information. This section explains the process of doing this.

Nowiki[]

This code allows users to show text exactly how it's written instead of it being used to create something different. For example if I used the "Nowiki" code on a link, it would show the code of the link instead of the link itself.

To use the Nowiki code, type in or select the desired text. Then place <nowiki> at the beginning of the text and place </nowiki> at the end of the text. The final code should look like this:

<nowiki>[[Example link]]</nowiki>

Mathematical formulas[]

This code allows users to type in mathematical formulas without an error occurring with Wikitext.

To use the Math code, type in or select the desired formula. Then place <math> in front of the formula and place </math> at the end of the formula. The final code should look like this:

<math>Force X Mass=Acceleration (FM=A)</math>

Colors[]

Wikitext can recognize and apply a wide variety of colors. This section explains how to use different colors in text.

To change the color of text, type in or select the desired text and place <font color=> at the beginning of the text and place </font> at the end of the text. Next place an HTML color name or a X11 color name, or the name of the color itself after the equal sign. ( = ) The Help Wiki has more information on color coding names.

Magic Words[]

This section explains how to use various "magic words". A magic word is a symbol recognized by Wikitext which triggers it to do something other than display the text.

Wiki specific[]

This section explains wiki codes that result in outputs that are specific to one's wiki.

Sitename[]

When a user places the code {{SITENAME}} the name of the wiki will be displayed.

Server[]

When a user places the code {{SERVER}} the wiki's domain URL will be displayed.

Current Version[]

When a user places the code {{CURRENTVERSION}} the wiki's current MediaWiki version number will be displayed.

Content Language[]

When a user places the code {{CONTENTLANGUAGE}} the name of the wiki's original language will be shown.

Number of Pages[]

When a user places the code {{NUMBEROFPAGES}} the wiki's number of pages will be shown.

Number of Articles[]

When a user places the code {{NUMBEROFARTICLES}} the wiki's number of content articles will be shown.

Table of Contents[]

This section lists magic words having to do with the table of contents.

No table of contents[]

When a user places the code __NOTOC__ the table of contents will be hidden.

Force table of contents[]

When a user places the code __FORCETOC__ the table of contents will be forced into its normal position.

Postion table of contents[]

When a user places the code __TOC__ the table of contents will appear where the code is placed.

Categories[]

This section lists magic words that are used on category pages.

No gallery[]

When a user places the code __NOGALLERY__ on a category page, it replaces the thumbnail pictures with ordinary links.

Hide categories[]

When a user places the code __HIDDENCAT__ on a category page, it hides the category from appearing in its member and parent categories.

Date and Time[]

This section lists magic words that deal with date and time in UTC.

Year[]

When a user places the code {{CURRENTYEAR}} the current year is shown.

Month (number)[]

When a user places the code {{CURRENTMONTH}} the current month in number form is shown.

Month (name)[]

When a user places the code {{CURRENTMONTHNAME}} the current month in name form is shown.

Month (abbreviation)[]

When a user places the code {{CURRENTMONTHABBREV}} the current month in abbreviation form is shown.

Day (number)[]

When a user places the code {{CURRENTDAY}} the current day in number form will be shown.

Day of the week[]

When a user places the code {{{CURRENTDOW}} the current day of the week in number form will be shown.

Day (name)[]

When a user places the code {{CURRENTDAYNAME}} the current day of the week in number form will be shown.

Time[]

When a user places the code {{CURRENTTIME}} the current time in HH:mm format will be shown.

Time stamp[]

When a user places the code {{CURRENTTIMESTAMP}} the current time stamp in YYYYMMDDHHmmss form.

Polls[]

This section explains how to place polls onto pages so that other users may vote using it.

To place a poll, start by placing the code
<poll>
</poll>
In between those, type the desired question and type in all of the desired answers, starting on a new line after the end of the question/answer. The final code should look like this:

<code>
<poll>
Question
Answer
Answer
Answer
Answer
Answer
</code>

Miscellaneous[]

This section lists codes that do not fit into any of the headings listed above.

Line breaks[]

Unlike most typing engines, Wikitext does not start on a new line when the enter button is hit. There is a specific code that must be used in order to break lines.

Simply place <br> where the break is desired.

Lines[]

To place a straight, horizantal line, simply place four dashes (----) where the line is desired.

Hiding text[]

It may sometimes be necessary or advantageous to hide certain text on a page (e.g. hiding unused subheaders to comply with the Manual of Style or notes to oneself about an article for future reference). To hide text, place <!-- at the beginning of the text to be hidden and --> at the end. For example, "This is an <!--hide this part--> example" renders "This is an example."

Sandbox[]