User blog:TriNiSette/Useful Codes for Source Mode

Source mode can be useful for several operations; if there is a link that doesn't need to be there, rather than deleting it and typing it out again, simply delete the brackets in source mode. Source mode can help you understand some coding on your own. Keep in mind, however, that a few operations can be done in visual mode as well as in source mode.

A few operations that can be done in source mode (typed here in visual so that it copies over correctly), are:

Basic Link: pagename

Referential Link: text

External reference: [site url| text]
 * A space must exist between the vertical bar and the first word of the text, otherwise, the first word of the text will not appear. This is an exception for one-word texts (e.g. gangster = "gangster", whereas [[Mr. President|turtle's stand] ] = "stand").

External reference to another wiki: text (tentative)

Image: picture width in pixels px | thumb | frame | page alignment | picture comments  (Everything after filename can be typed into the link in any order desired.) Line break:
 * Note: "Thumb" and picture comments are entirely optional. "Thumb" can be included if the picture is meant to stand alone or credit is to be given to the one who posted the original picture. Picture comments are self-explanatory. "Frame" is also optional, but will return the picture to its original size regardless of any set size placed on it.

Citation References:

Citation References List (to be used with the above code on Citation References; at bottom of page):

Character Info:
 * Keep in mind that most of the information below may not be applicable; if not then it is better to leave it blank and the template will take care of itself. Most entries below are not explained due to the titles of said entries being self-explanatory.

{ {Template:Character Info


 * title = character name


 * image = See above note on pasting images


 * japname = Check the Japanese wikipedia article for the official Japanese name applied. Use http://www.sljfaq.org/cgi/e2k.cgi as a secondhand source for katakana (generally, any decent katakana translation site should work). Type it out in source mode (or simply switch to source mode) for consistency of format; the wiki auto-formats most texts unless stated otherwise. If the name is in kanji, it would be preferable to type it out in katakana until a desirable kanji converter is found.


 * birthname =


 * namesake = namesake (Keep in mind that this is different from the above external link; it is often advisable to link to wikipedia unless a video is to be linked to. This may not be applicable for all characters.)


 * stand =


 * prisonerno =


 * horse =


 * age =


 * birthday =


 * zodiac =


 * czodiac =


 * death =


 * gender =


 * nation =


 * height =


 * weight =


 * blood = blood type


 * hair = hair color


 * eyes = eye color


 * color = favorite color


 * movie =


 * hobby =


 * family =


 * mangadebut =


 * mangafinal =


 * animedebut =


 * gamedebut =


 * seiyuu =


 * voiceactor =

} }

Stand Info:
 * If stats are listed in the image, it is usually not necessary to put the stats into the template.

{ {Template:Stand Info


 * title = Stand name


 * image = See above note on pasting images


 * japname = See above note on Japanese katakana references


 * user = Stand user (advisable to provide a link so as not to repeatedly link the user's name throughout the article)


 * namesake = [ [ wikipedia: namesake| namesake ] ] (band) (Keep in mind that this is different from the above external link; it is often advisable to link to wikipedia unless a video is to be linked to.)


 * gender =


 * mangadebut =


 * animedebut =


 * seiyuu =


 * destpower =


 * speed =


 * range =


 * durability =


 * precision =


 * potential =

} }

Infobox:

{ | class="infobox" style="width: 22em; text-align: left; font-size: 90%" cellspacing="2"
 * style="font-size: 110%;" align="center" colspan="2" | Character_name
 * style="font-size: 110%;" align="center" colspan="2" | (Character_katakana)
 * style="font-size: 90%;" align="center" colspan="2" | [ [Character_picture] ]
 * style="font-size: 90%;" align="center" colspan="2" | [ [Character_picture] ]
 * style="font-size: 90%;" align="center" colspan="2" | [ [Character_picture] ]

! Title1 ! Title2 ! Title3 ...
 * Text1
 * Text2
 * Text3
 * }

Sub-infobox:

{ | class="infobox" cellpadding="2" cellspacing="0" width=200px style="border-collapse:collapse;" align="right" |align="left" width="80%" style="font-size:85%;"|title1


 * text1




 * align="left" width="80%" style="font-size:85%;"|title2


 * text 2



...


 * }

http://jjba.wikia.com/wiki/Category:Templates should have a more exhaustive list.

Bullet list:

* text1

* text2

...

Numbered list:


 * 1) text1


 * 1) text2

... While these can be learned by one gaining experience from editing the wiki, the coding used here is included for reference. This blog will be revised and updated if errors are found in the coding.
 * If " # " is typed after an exiting numbered list in visual mode, the following number will be shown on the actual page. However, if " # " is typed in sequence in visual mode, a sequence of 1's will appear. Both " * " and " # " can be used in visual mode (excluding the quotation marks, of course).

Seldom-used Codes
Wiki code exclusion

text


 * Generally, this is for allowing the original code to show through your comments rather than being applied to the wiki's programming, as I have done so in this blog.

Color highlights

 text

In any case, now that I've found this site, feel free to use that site instead and disregard all the code I have copied here.

Custom Format

Text (tentative)

Have fun editing!