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: [ [pagename | text] ]
 * No space actually exists between the double brackets; the link will activate in visual mode if the brackets are linked. The same applies below for the hooked brackets denoting templates. Quotation marks are placed

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. [ [Giorno Giovanna|gangster] ] = "gangster", whereas [ [Mr. President|turtle's stand] ] = "stand").

External reference to another wiki: [ [w:c:wikiname:pagename| text] ] (tentative)

Image: [ [Filename | picture width in pixels px | thumb | page alignment | picture comments ] ] (Everything after filename can be typed into the link in any order desired.) Character Info: '''NOTE: ALL PAGES USING THE CHARACTER INFOBOX HAVE BEEN TAMPERED WITH AND THE ORIGINAL TEMPLATE IS NOW UNABLE TO FUNCTION. USE THE INFOBOX TEMPLATE PROVIDED INSTEAD UNTIL THE CHARACTER TEMPLATE IS FIXED.'''
 * 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.
 * 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 = Use http://www.sljfaq.org/cgi/e2k.cgi for katakana until an improved site is found or the site closes down. Type it out in 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 = [ [ wikipedia: 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



...


 * }

Bullet list:

" * " text1

" * " text2

...

Numbered list:

" # " text1

" # " 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).

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.

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

Have fun editing!