User:KTucker/My Sandbox/Tests

From WikiEducator
Jump to: navigation, search
Expect chaos

Here I experiment with MediaWiki markup and templates. Some of the material might be fun to see (or fix :-), but don't expect to find anything immediately useful.

  • Put the Table of Contents on the right:

Update: try {{TOC|right}}

{| border="0" align="right" 
 |-
 |__TOC__ 
 |}

Scribunto

Hello, world!

Edit count

12,944

urlencode

Some_Title

KTucker/My_Sandbox/Tests

%5B%5B%3ATemplate%3AUserparam%5D%5D

Status squares

The following puts a status icon at top left

{{StatusSquare|50%}}

The following doesn't seem to show anything ??

{{Completion|75%}} 

Or, just use the images in own templates (want the image within the page, not at top):

0% SVG 50% SVG 75% SVG 100% SVG

Rich Text Editor

Calculations

See w:Help:Calculation

Flashcards

Flashcard tests

List Subpages

There are extensions but try:

{{Special:Prefixindex/{{FULLPAGENAME}}/}}

and

{{List subpages|prefix|content namespace|caption=Foo}}

and see {{List subpages}} and User:KTucker/Subpages

and notice the link in the WikiEducator toolbar :-)

See also: Cladograms in tables

Multiple Choice

Examples:

Styles

Centre a Wikitable

{{Centred}}

Centred wikitable
a row with one cell

Mouseovers

the text with mouseover tip

the text with mouseover tip

mouse over here

Custom link colours

See http://arnomane.wordpress.com/2007/06/24/mediawiki-tricks-1-custom-link-colors/

List Items

  1. Yes
  2. roman numerals
  3. are possible
  4. via HTML

See http://en.wikipedia.org/wiki/Help:List

Table Borders etc.

text
text
text

No onmouseover:

GNU Libre

Row height

自由 自由

Merged cells

Column 1 Column 2 Column 3
A B
C D
E F
G
H

Quote Templates

With theme Without theme
A.N. Onymous, The mysterious non-existent book.
This is the lined quote with theme (left aligned)
A.N. Onymous, The mysterious non-existent book.
This is the lined quote no theme (right aligned)


"The quote goes here" (this example is right aligned)


(the author, The source)
"The quote goes here"


(author unknown)

Parser Functions

Strings

Is substring 0..3 of 'LV:Privacy' equal to 'LV:'? - Yes

Substring of LV:Privacy starting at position 3:Privacy

Position of colon in LV:Privacy is 2

If title has a prefix, display everything after it:

'some prefix: name of card':
name of card
Note loss of the space after colon.
'some prefix:name of card':
name of card


'asdf ghjk' (no prefix)
asdf ghjk
'prefix only:'
Nothing


{{#explode:some:sting with prefix|:|1}}

sting with prefix

{{#explode:some:prefixed sting : with 2 colons|:|1}}

prefixed sting

a back slash?

variables and loops

5

-2


Special Characters

\ [ ]

Nested Boxes etc.

Farm-Fresh information.png Title Text

My Caption

Text in the box.


My Caption

Farm-Fresh information.png Title Text

My Caption

Text in the box.

Farm-Fresh information.png Title Text

My Caption
My Caption

Farm-Fresh information.png Title Text

My Caption

Text in the box.


Video

Images

alt text here
caption and mouseover here

<Gallery>


Test for Phil

Joining images:

PB-dim-mar.gif Chovynz Baby Tux.png PB-dim-web.gif



Mouse-over Image

Mouseover image is Caption:

Alt Text
My Caption

Files

A cub nursing|250px|thumb


Mindmaps

<mm>File:Libre.mm</mm> - extension not installed (and could not upload the file).

Update: .mm is now accepted, so the file has been uploaded. I wonder how to render it? The problem with the Freemind extension is that is requires flash but check out its "See also links".

Maths

[math]e^{\pi iz/12}\prod_{m=1}^\infty \left(1-e^{2\pi imz}\right).[/math]

MediaWiki supports LaTeX markup:

[math]\pi=\frac{3}{4} \sqrt{3}+24 \int_0^{1/4}{\sqrt{x-x^2}dx}[/math]

[math]\text{cost}= \text{base} \times 2^{\text{level}-1}[/math]

(seethis page and the page to which it links).

Translations

Delete this page: Template:Translations

Drafts

References

Some text[1].

Some more text ... [2]

named reference

Word[3] another word[3].

Category Tree

<categorytree>Case Studies</categorytree>

(feature not implemented)

Page Name Characters

Can I use '&' ? Yes - try it ...

Test Template

Libre Libre
xxx
自由 自由
xxx

Previous notes:

More db-like:

Process
  1. Charter
  2. Muse
  3. Resources
  4. Discuss
  5. Plan
  6. Draft
  7. Refine
  8. Publish

To Do:

Decorate with LibrePattern template, fix the path to /Be Libre/Pattern

Commented out as it removes TOC and edit links:


RSS

Failed to load RSS feed from http://beinglibre.wordpress.com/feed/: Error fetching URL: Maximum (0) redirects followed

Quiz

1. Select only one correct answer and no incorrect answers.

What kind of fish are these?

Herring
This is many Herring swimming in uniform formation in the Bearing Sea by the
Salmon
Tunafish
Goldfish

Your score is 0 / 0


Maps

{{#display_map:44.521, 9.0568|width=400|height=300|service=osm|zoom=18}}

WE End Notes

I think this is a microblogging facility. Not sure yet how to get it working with own hash tag >>

Loading...


Aside: noticed

Transferring data from ds.addthis.com and (?) m.addthisedge.com

and

... google-analytics.com ...

etc.

Freedom implications? (privacy, ...)

Liberating Voices

Mathematical Templates

Deleting templates Rand, Random number and Mod because (I think) Safesubst: is not implemented in Mediawiki 1.15.

There may be a way round this ... but no time to pursue.

Parking Lot/ To Do

References

  1. Atkins D.E., Brown J.S., Hammond A.L. (2007). A Review of the Open Educational Resources (OER) Movement: Achievements, Challenges, and New Opportunities, Hewlett Foundation. Available online.
  2. l, f; co (2010). [url t]. h: p. p. p. . url. Retrieved today. - the Wikipedia template
  3. 3.0 3.1 Name is abc

ple