User:Toomai/Wiki tips and tricks: Difference between revisions

m
Text replacement - "\[\[(:)?Image:" to "[[$1File:"
m (Text replacement - "\[\[(:)?Image:" to "[[$1File:")
 
(3 intermediate revisions by 2 users not shown)
Line 11: Line 11:
*Generally, things in a table look better when they're centered (with the exception of large blocks of text). Putting <code>style="text-align:center"</code> in the header will center all the text in every cell.
*Generally, things in a table look better when they're centered (with the exception of large blocks of text). Putting <code>style="text-align:center"</code> in the header will center all the text in every cell.
*Generally, tables themselves look better when in the middle of a page. Put <code>align="center"</code> in the header to do this.
*Generally, tables themselves look better when in the middle of a page. Put <code>align="center"</code> in the header to do this.
*Use <code>!</code> instead of <code>|</code> when starting cells that are headers. However, you still need to use a <code>|</code> to seperate parameters (such as colouring) from the cell's content. Example:
*Use <code>!</code> instead of <code>|</code> when starting cells that are headers. However, you still need to use a <code>|</code> to separate parameters (such as colouring) from the cell's content. Example:
<pre>
<pre>
!make it red|put text here!!make it yellow|put text here
!make it red|put text here!!make it yellow|put text here
Line 19: Line 19:
*Normally, clicking an image leads to the image itself. However, by adding the <code>link</code> parameter, you can make images just like normal links. Usually, it's best to leave images as linking to themselves, since linking them forces people to look at the source to find out where an image came from. However, there are cases where linking them is better (such as the [[Tier list]] templates).
*Normally, clicking an image leads to the image itself. However, by adding the <code>link</code> parameter, you can make images just like normal links. Usually, it's best to leave images as linking to themselves, since linking them forces people to look at the source to find out where an image came from. However, there are cases where linking them is better (such as the [[Tier list]] templates).
{|class="wikitable" align="center" style="text-align:center"
{|class="wikitable" align="center" style="text-align:center"
|This image leads to [[:Image:Icon-mario.gif]]||This image leads to [[Mario (SSBB)]]
|This image leads to [[:File:MarioIcon(SSBB).png]]||This image leads to [[Mario (SSBB)]]
|-
|-
|[[Image:Icon-mario.gif|50px]]||[[Image:Icon-mario.gif|50px|link=Mario (SSBB)]]
|[[File:MarioIcon(SSBB).png|50px]]||[[File:MarioIcon(SSBB).png|50px|link=Mario (SSBB)]]
|-
|-
|<code><nowiki>[[Image:Icon-mario.gif|50px]]</nowiki></code>||<code><nowiki>[[Image:Icon-mario.gif|50px|link=Mario (SSBB)]]</nowiki></code>
|<code><nowiki>[[File:MarioIcon(SSBB).png|50px]]</nowiki></code>||<code><nowiki>[[File:MarioIcon(SSBB).png|50px|link=Mario (SSBB)]]</nowiki></code>
|}
|}


Line 41: Line 41:
|<code><nowiki>Blah <s>cross <sup>yoik</s> doof</sup> bladoonga</nowiki></code>||Blah <s>cross <sup>yoik</s> doof</sup> bladoonga
|<code><nowiki>Blah <s>cross <sup>yoik</s> doof</sup> bladoonga</nowiki></code>||Blah <s>cross <sup>yoik</s> doof</sup> bladoonga
|}
|}
*Colour on the internet is represented by a six-digit hexadecimal number (prefanced on wikis by "#"). Hex numbers use the letters A to F as extra digits - A is 10, while F is 15. Basically, the first two digits are the amount of red, the next two are the green, and the last two are the blue. So, 000000 is pure black, 7F0000 is 50% red (brown), and FFBF7F is 100% red, 75% green, and 50% blue (tan). While adding colour can sometimes be distracting, there are times when it can have a positive effect. Here are some simple colours:
*Colour on the internet is represented by a six-digit hexadecimal number (prefaced on wikis by "#"). Hex numbers use the letters A to F as extra digits - A is 10, while F is 15. Basically, the first two digits are the amount of red, the next two are the green, and the last two are the blue. So, 000000 is pure black, 7F0000 is 50% red (brown), and FFBF7F is 100% red, 75% green, and 50% blue (tan). While adding colour can sometimes be distracting, there are times when it can have a positive effect. Here are some simple colours:
{|class="wikitable" align="center" style="text-align:center"
{|class="wikitable" align="center" style="text-align:center"
!Colour!!Slight fade!!Medium fade!!Strong fade
!Colour!!Slight fade!!Medium fade!!Strong fade
Line 62: Line 62:
==Templates/Infoboxes==
==Templates/Infoboxes==
*Many things can be improved by using parser functions (see below).
*Many things can be improved by using parser functions (see below).
*If you need to put a <code>|</code> somewhere, but its location causes things to mess up, use <code><nowiki>{{!}}</nowiki></code>.
*If you need to put a <code>|</code> somewhere, but its location causes things to mess up, use <code><nowiki>{{!}}</nowiki></code>. A shortcut for <code>||</code> is <code><nowiki>{{!!}}</nowiki></code>.


==Parser Functions==
==Parser Functions==