Middlebury

Difference between revisions of "Help:Editing"

(→‎Cheatsheet: - redirect info)
 
(32 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Help:Contents]]
+
== See also  ==
  
== Basic Editing ==
+
*[[Help:Contents]]
See the [http://en.wikipedia.org/wiki/Help:Contents Wikipedia help] for topics including:
+
*[http://en.wikipedia.org/wiki/Help:Contents General wiki help (on Wikipedia)]
* [http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet Cheat sheets]
+
*[http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet Cheat sheets (on Wikipedia)]
* [http://en.wikipedia.org/wiki/Wikipedia:Citing_sources Reference/citations]
+
*[http://en.wikipedia.org/wiki/Wikipedia:Citing_sources Reference/citations (on Wikipedia)]
  
=== Cheatsheet ===
+
== Basic Cheatsheet ==
  
Section headers:
+
==== Formatting  ====
<pre>
+
<blockquote>
 +
===== <u>Headers</u>  =====
  
<nowiki>== Big Header ==</nowiki> </pre>
+
Use headers for every separate topic of an article! They help organize articles in two ways:
<pre>
 
  
<nowiki>=== Medium Header ===</nowiki> </pre>
+
*They visually separate information on the page, making it easier to sort through.
<pre>
 
  
<nowiki>==== Small Header ====</nowiki> </pre>
+
*The headers you use in a page are reflected in an automatically generated "Table of Contents" at the top of each page. This is very handy!
 +
<pre>== Big Header ==</pre><pre>=== Medium Header ===</pre><pre>==== Small Header ====</pre>
 +
*Start a line with an asterisk ('''*''') to create a bullet. Two asterisks (**) creates an indented bullet.
 +
*Use a pound ('''#''') to create numbering. Two pounds (##) creates an indented numbering sequence.
 +
*A # and then a * (#*) creates a ''bulleted, indented subsection'' of a numbered list.
 +
*Use a ''':''' to indent the beginning of a line:<br>
  
Automatically redirect to another page: (Useful when you move content and merge pages.) Put the article title between the brackets instead of "Index", just like when you're creating a normal link to another page.
+
:Indented by one&nbsp;:
<pre>
+
::Indented by two&nbsp;::'s
 +
</blockquote> <blockquote>
 +
===== <u>Color</u> =====
  
<nowiki>#REDIRECT [[Index]]</nowiki> </pre>
+
Change font colors:<br>
  
== Categories ==
+
*Use this code in Wikitext mode:
To add a category to a page, add the following wiki-text to the end of the page (for example the 'Projects' category):
+
<pre>&nbsp; &lt;span style="color: red;"&gt;YOURTEXT&lt;/span&gt;</pre>
<pre>
+
*Change color name to blue, purple, green, etc. as you wish. Replace YOURTEXT with the words you want to highlight.
 +
 
 +
*Shows up like <span style="color: red;">'''this. '''</span><br><br>
 +
</blockquote>
 +
----
 +
 
 +
==== Linking to top of page  ====
 +
 
 +
*Use this code (either WIkitext mode or regular edit mode):
 +
<pre> [[#top|Back to top]]</pre>
 +
*Change "Back to top" to your own wording as you like<br>
 +
*Shows on page as: [[#top|Back to top]]
 +
 
 +
==== Linking internally to another element within same page<br>  ====
 +
 
 +
*Anchor: Decide on an anchor name -- You want to link TO this section. Then use this code at your anchor point (in Wikitext mode):<br>
 +
<pre>&lt;span id="anchorname"&gt;YOURTEXT&lt;/span&gt;
 +
 
 +
</pre>
 +
*Use this code for the location that you want to link FROM (to bounce back to the anchor point)<br>
 +
<pre>[[#anchorname|YOURTEXT]]</pre>
 +
----
  
 +
==== Adding images  ====
  
<nowiki>[[Category:Projects]]</nowiki> </pre>
+
Show an [[Image:OK button.PNG]] by adding the following code:
 +
<pre>[[Image:OK button.PNG]]</pre>
 +
Lots of commonly-used buttons are collected at the [https://mediawiki.middlebury.edu/wiki/LIS/Category:Helpdesk_Documentation_Buttons Helpdesk Documentation Buttons] gallery.
  
To link to a category page rather than assign a category, use a colon before the keyword, 'Category' as follows:
+
==== Automatically redirect to another page ====
<pre>
 
  
 +
Useful when you move content and merge pages. The following line redirects a page to [[Helpdesk]]:
 +
<pre>#REDIRECT [[Helpdesk]]</pre>
 +
----
  
<nowiki>[[:Category:Projects]]</nowiki> </pre>
+
==== Categories  ====
  
 +
To add a category to a page, add the following wiki-text to the end of the page (for example the 'Projects' category):
 +
<pre>[[Category:Projects]]</pre>
 +
To link to a category page rather than assign a category, use a colon before the keyword, 'Category' as follows:
 +
<pre>[[:Category:Projects]]</pre>
 
See the [http://en.wikipedia.org/wiki/Wikipedia:Categorization Wikipedia help on catagorization] for more detailed information.
 
See the [http://en.wikipedia.org/wiki/Wikipedia:Categorization Wikipedia help on catagorization] for more detailed information.
  
 
See the [[Special:Categories]] page for a list of all categories currently in use.
 
See the [[Special:Categories]] page for a list of all categories currently in use.
  
== Embedding Videos ==
+
----
This wiki is using the [http://www.mediawiki.org/wiki/Extension:EmbedVideo EmbedVideo plugin]. ''The following instructions are from the EmbedVideo page.''
 
 
 
The EmbedVideo parser function expects to be called in either of the following ways:
 
* <tt>
 
  
 +
==== Embedding Videos  ====
  
<nowiki>{{#ev:service|id}}</nowiki> </tt> -or-
+
This wiki uses the [http://www.mediawiki.org/wiki/Extension:EmbedVideo EmbedVideo plugin]. See that page for further instructions on how to embed videos.
* <tt>
 
  
 +
Here's the syntax for the EmbedVideo plugin:
  
<nowiki>{{#ev:service|id|width}}</nowiki> </tt>
+
*<pre>{{#ev:service|id}}</pre> -or-
 +
*<pre>{{#ev:service|id|width}}</pre>
  
Where:
+
An example using the "evolution of dance" video on Youtube (first normal sized, then scaled down):
* <tt>service</tt> is the name of a video sharing service.
 
* <tt>id</tt> is the id of the video to include
 
* <tt>width</tt> (optional) is the width in pixels of the viewing area (height will be determined automatically)
 
  
For example, to include the famous "evolution of dance" YouTube video, you'd enter:
+
*<pre>{{#ev:youtube|dMH0bHeiRNg}}</pre>
<pre>{{#ev:youtube|dMH0bHeiRNg}}</pre>
+
*<pre>{{#ev:youtube|dMH0bHeiRNg|100}}</pre>
  
And if you wanted scaled down to thumbnail size, you could use:
+
See the [http://jimbojw.com/wiki/index.php?title=EmbedVideo_Extension Project Homepage] for more examples.
<pre>{{#ev:youtube|dMH0bHeiRNg|100}}</pre>
 
  
''Note: See the [http://jimbojw.com/wiki/index.php?title=EmbedVideo_Extension Project Homepage] for more examples.''
+
[[Category:Projects]]
 +
[[Category:Editing]] [[Category:Help]]

Latest revision as of 08:15, 14 October 2013

See also

Basic Cheatsheet

Formatting

Headers

Use headers for every separate topic of an article! They help organize articles in two ways:

  • They visually separate information on the page, making it easier to sort through.
  • The headers you use in a page are reflected in an automatically generated "Table of Contents" at the top of each page. This is very handy!
== Big Header ==
=== Medium Header ===
==== Small Header ====
  • Start a line with an asterisk (*) to create a bullet. Two asterisks (**) creates an indented bullet.
  • Use a pound (#) to create numbering. Two pounds (##) creates an indented numbering sequence.
  • A # and then a * (#*) creates a bulleted, indented subsection of a numbered list.
  • Use a : to indent the beginning of a line:
Indented by one :
Indented by two ::'s
Color

Change font colors:

  • Use this code in Wikitext mode:
  <span style="color: red;">YOURTEXT</span>
  • Change color name to blue, purple, green, etc. as you wish. Replace YOURTEXT with the words you want to highlight.
  • Shows up like this.


Linking to top of page

  • Use this code (either WIkitext mode or regular edit mode):
 [[#top|Back to top]]
  • Change "Back to top" to your own wording as you like
  • Shows on page as: Back to top

Linking internally to another element within same page

  • Anchor: Decide on an anchor name -- You want to link TO this section. Then use this code at your anchor point (in Wikitext mode):
<span id="anchorname">YOURTEXT</span>

  • Use this code for the location that you want to link FROM (to bounce back to the anchor point)
[[#anchorname|YOURTEXT]]

Adding images

Show an OK button.PNG by adding the following code:

[[Image:OK button.PNG]]

Lots of commonly-used buttons are collected at the Helpdesk Documentation Buttons gallery.

Automatically redirect to another page

Useful when you move content and merge pages. The following line redirects a page to Helpdesk:

#REDIRECT [[Helpdesk]]

Categories

To add a category to a page, add the following wiki-text to the end of the page (for example the 'Projects' category):

[[Category:Projects]]

To link to a category page rather than assign a category, use a colon before the keyword, 'Category' as follows:

[[:Category:Projects]]

See the Wikipedia help on catagorization for more detailed information.

See the Special:Categories page for a list of all categories currently in use.


Embedding Videos

This wiki uses the EmbedVideo plugin. See that page for further instructions on how to embed videos.

Here's the syntax for the EmbedVideo plugin:

  • {{#ev:service|id}}
    -or-
  • {{#ev:service|id|width}}

An example using the "evolution of dance" video on Youtube (first normal sized, then scaled down):

  • {{#ev:youtube|dMH0bHeiRNg}}
  • {{#ev:youtube|dMH0bHeiRNg|100}}

See the Project Homepage for more examples.

Powered by MediaWiki