Help:Contents

From SIMILE Widgets
(Difference between revisions)
Jump to: navigation, search
(New page: ==MediaWiki Formatting Help== [http://www.mediawiki.org/wiki/Help:Formatting Formatting Markup and Layout] [http://www.mediawiki.org/wiki/Help:Tables Using Tables] [http://www.mediawiki.o...)
 
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==MediaWiki Formatting Help==
+
==MediaWiki Editing Basics==
  
[http://www.mediawiki.org/wiki/Help:Formatting Formatting Markup and Layout]
+
The fundamentals of using MediaWiki can be found over at the MediaWiki site:
[http://www.mediawiki.org/wiki/Help:Tables Using Tables]
+
 
[http://www.mediawiki.org/wiki/Help:Links Internal and External Links]
+
* [http://www.mediawiki.org/wiki/Help:Formatting Formatting Markup and Layout]
[http://www.mediawiki.org/wiki/Help:Images Using Images]
+
* [http://www.mediawiki.org/wiki/Help:Tables Using Tables]
[http://www.mediawiki.org/wiki/Help:Managing_files Managing Files (including Images)]
+
* [http://www.mediawiki.org/wiki/Help:Links Internal and External Links]
 +
* [http://www.mediawiki.org/wiki/Help:Images Using Images]
 +
* [http://www.mediawiki.org/wiki/Help:Managing_files Managing Files (including Images)]
 +
* [http://www.mediawiki.org/wiki/Help:Contents Primary Help Pages from MediaWiki.org]
 +
 
 +
==MediaWiki Tips and Tricks==
 +
 
 +
=== Find all external links ===
 +
 
 +
You can search for external links matching a certain protocol with [[Special:LinkSearch]]. There doesn't seem an easy way to get at all of them at once, but you can use <code>*.com</code>, <code>*.org</code> and the like to return all links for a given TLD.
 +
 
 +
=== Add TODO notes to pages ===
 +
 
 +
You can add a TODO reminder to any page using HTML comment syntax (<code><nowiki><!-- --></nowiki></code>). These are largely invisible to end-users but [http://simile-widgets.org/w/index.php?title=Special%3ASearch&search=TODO&go=Go will show up in search], which makes them an excellent way to leave reminders for yourself and others of work that needs to be done on particular pages.
 +
 
 +
<code><nowiki><!-- TODO your text here --></nowiki></code>
 +
 
 +
=== Assign a category to a page ===
 +
 
 +
To add a category (e.g. Facets) to a given page, add the following anywhere on the page (at end is best):
 +
 
 +
<nowiki>[[Category:Facets]]</nowiki>
 +
 
 +
=== Redirect one page to another ===
 +
 
 +
To redirect an existing page to another page, use the following syntax as the first line of the page to be redirected:
 +
 
 +
<nowiki>#REDIRECT[[Page to redirect to]]</nowiki>
 +
 
 +
=== Add a code span or block ===
 +
 
 +
For a code fenced paragraph that respects indentation, use a space ("<code> </code>") followed by <code><nowiki><nowiki></nowiki></code> tags:
 +
 
 +
<nowiki> <nowiki><div ex:role="facet"
 +
  ex:expression=".age"
 +
  ex:facetClass="Slider"
 +
  ex:horizontal="true"
 +
  ex:precision="100"
 +
  ex:histogram="true">
 +
</div></nowiki></nowiki>
 +
 
 +
Which renders as:
 +
 
 +
<nowiki><div ex:role="facet"
 +
  ex:expression=".age"
 +
  ex:facetClass="Slider"
 +
  ex:horizontal="true"
 +
  ex:precision="100"
 +
  ex:histogram="true">
 +
</div></nowiki>
 +
 
 +
=+= Transclude one page inside another ==+
 +
 
 +
Use <code><nowiki>{{Exhibit3}}</nowiki></code> to 'insert' or transclude the content of one page inside of another. Items in the main namespace must use a leading colon, e.g. <code><nowiki>{{:Exhibit3}}</nowiki></code>. See [https://www.mediawiki.org/wiki/Transclusion Transclusion] on MediaWiki site for more details.
 +
 
 +
=== Transclude category listings ===
 +
 
 +
In addition to MediaWiki, this wiki also uses Semantic MediaWiki, which (per [http://stackoverflow.com/a/1053259 Stack Overflow]) allows you to do clever stuff like insert links to all pages in a given category as a bulleted list, like so:
 +
 
 +
<nowiki>{{#ask:[[Category: Facets]]
 +
|format=ul
 +
}}</nowiki>
 +
 
 +
This yields:
 +
 
 +
{{#ask:[[Category: Facets]]|format=ul}}
 +
 
 +
== Style guide ==
 +
 
 +
Preferred usage and formatting of terms used throughout this wiki. See also [https://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style Wikipedia's Manual of Style]. <!-- TODO add to style guide -->
 +
 
 +
; SIMILE Widgets
 +
: '''NOT''' Simile Widgets – SIMILE widgets – Simile widgets
 +
: refers to this open-source project
 +
; SIMILE Project
 +
: '''NOT''' Simile Project – SIMILE project – Simile project
 +
: refers to the original MIT project from which SIMILE Widgets derives

Latest revision as of 05:21, 3 November 2015

Contents

MediaWiki Editing Basics

The fundamentals of using MediaWiki can be found over at the MediaWiki site:

MediaWiki Tips and Tricks

Find all external links

You can search for external links matching a certain protocol with Special:LinkSearch. There doesn't seem an easy way to get at all of them at once, but you can use *.com, *.org and the like to return all links for a given TLD.

Add TODO notes to pages

You can add a TODO reminder to any page using HTML comment syntax (<!-- -->). These are largely invisible to end-users but will show up in search, which makes them an excellent way to leave reminders for yourself and others of work that needs to be done on particular pages.

<!-- TODO your text here -->

Assign a category to a page

To add a category (e.g. Facets) to a given page, add the following anywhere on the page (at end is best):

[[Category:Facets]]

Redirect one page to another

To redirect an existing page to another page, use the following syntax as the first line of the page to be redirected:

#REDIRECT[[Page to redirect to]]

Add a code span or block

For a code fenced paragraph that respects indentation, use a space (" ") followed by <nowiki> tags:

 <nowiki><div ex:role="facet" 
   ex:expression=".age"
   ex:facetClass="Slider" 
   ex:horizontal="true"
   ex:precision="100"
   ex:histogram="true">
</div></nowiki>

Which renders as:

<div ex:role="facet" 
   ex:expression=".age"
   ex:facetClass="Slider" 
   ex:horizontal="true"
   ex:precision="100"
   ex:histogram="true">
</div>

=+= Transclude one page inside another ==+

Use {{Exhibit3}} to 'insert' or transclude the content of one page inside of another. Items in the main namespace must use a leading colon, e.g. {{:Exhibit3}}. See Transclusion on MediaWiki site for more details.

Transclude category listings

In addition to MediaWiki, this wiki also uses Semantic MediaWiki, which (per Stack Overflow) allows you to do clever stuff like insert links to all pages in a given category as a bulleted list, like so:

{{#ask:[[Category: Facets]]
|format=ul
}}

This yields:


Style guide

Preferred usage and formatting of terms used throughout this wiki. See also Wikipedia's Manual of Style.

SIMILE Widgets
NOT Simile Widgets – SIMILE widgets – Simile widgets
refers to this open-source project
SIMILE Project
NOT Simile Project – SIMILE project – Simile project
refers to the original MIT project from which SIMILE Widgets derives
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox