Difference between revisions of "Help:Wiki Tricks"

From Math Images
Jump to: navigation, search
Line 1: Line 1:
 
<h1>The Basics</h1>
 
<h1>The Basics</h1>
 +
 +
==Images==
 +
 +
To put an image on a page, [[Image:Tmip.png]], use the code:
 +
 +
<nowiki>[[Image:Example.jpg]]</nowiki>
 +
 +
after you have uploaded it. You can also specify that you want the image to be aligned right or left of text by writing:
 +
 +
<nowiki>[[Image:Example.jpg|right]]</nowiki> OR  <nowiki>[[Image:Example.jpg|left]]</nowiki>
 +
  
 
==Links==
 
==Links==
===Interwiki Links===
+
===In-wiki Links===
 
For links to pages '''in this wiki''' such as [[Newton's Basin| "Newton's Basin"]], use the code:
 
For links to pages '''in this wiki''' such as [[Newton's Basin| "Newton's Basin"]], use the code:
  
Line 18: Line 29:
  
 
<h1>Some More Advanced Stuff</h1>
 
<h1>Some More Advanced Stuff</h1>
 +
 +
 
==Mouse Overs==
 
==Mouse Overs==
  
Line 53: Line 66:
  
 
where '''start''' and '''end''' are the value (in seconds) of where in you want the clip to start and end.
 
where '''start''' and '''end''' are the value (in seconds) of where in you want the clip to start and end.
 +
 +
 +
 +
==Align Your Equal Signs==
 +
 +
If you have several equations that you want to fit on multiple lines with the equals sign lined up in a column, you can use the template "AlignEquals":
 +
 +
'''Example''':
 +
 +
<template>AlignEquals
 +
|e1l=3/2
 +
|e1r=1.5
 +
|e2l=2/3
 +
|e2r=0.3333...
 +
|e3l=13/8
 +
|e3r=1.625
 +
</template>
 +
 +
To do this, you should use the code:
 +
 +
<nowiki>
 +
<template>AlignEquals
 +
|e1l=3/2
 +
|e1r=1.5
 +
|e2l=2/3
 +
|e2r=0.3333...
 +
|e3l=13/8
 +
|e3r=1.625
 +
</template>
 +
</nowiki>
 +
 +
where you fill in e1l with the content of the left side of your first equation, e1r with the content on the right side of your first equation, etc. Currently, the template '''handles up to 10 equations'''.

Revision as of 13:45, 10 June 2009

The Basics

Images

To put an image on a page, File:Tmip.png, use the code:

[[Image:Example.jpg]]

after you have uploaded it. You can also specify that you want the image to be aligned right or left of text by writing:

[[Image:Example.jpg|right]] OR  [[Image:Example.jpg|left]]


Links

In-wiki Links

For links to pages in this wiki such as "Newton's Basin", use the code:

[[Page Name| text you want shown]] OR [[Page Name]]

the latter code is used when the text you want shown is simply the page name. And, yes, when specifying the page name, cAsE MaTTerS.

Outside Links

For a link to an outside webpage, such as wikipedia, use the code:

[PageURL textYouWantShown] OR [PageURL]

the second will just show the URL as the link.

Some More Advanced Stuff


Mouse Overs

To generate a "balloon", use the code:

<balloon title="Text you want in balloon.">text for mouseover</balloon>

For more information and more interesting applications, visit here or here (for math in mouseovers)

Hide/Show

To generate the hide/show thing, use the code:

Like this!
{{hide|Text you want hidden}}

if your text contains an "=" sign, you must use the code:

{{hide|1=Text you want hidden}}

otherwise it appears as {{1}} in your page, which is silly.


Embedding Videos

You can embed youtube videos by using the code

{{#ev:youtube|xI2eEcqz46E}}

where the xI2eEcqz46E represents the id assigned by youtube (you can find it in the URL of your video)

...and you can embed parts of youtube videos by using the code:

{{#ev:tubechop|xI2eEcqz46E&start=10&end=20}}

where start and end are the value (in seconds) of where in you want the clip to start and end.


Align Your Equal Signs

If you have several equations that you want to fit on multiple lines with the equals sign lined up in a column, you can use the template "AlignEquals":

Example:

<template>AlignEquals |e1l=3/2 |e1r=1.5 |e2l=2/3 |e2r=0.3333... |e3l=13/8 |e3r=1.625 </template>

To do this, you should use the code:

 <template>AlignEquals
 |e1l=3/2
 |e1r=1.5
 |e2l=2/3
 |e2r=0.3333...
 |e3l=13/8
 |e3r=1.625
 </template>
 

where you fill in e1l with the content of the left side of your first equation, e1r with the content on the right side of your first equation, etc. Currently, the template handles up to 10 equations.