User:KTucker/My Sandbox/Tests
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,987
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):
Rich Text Editor
- Tests
- Backup of tests
- Chinese: 中文: 你好嗎? - works fine with IBus on Ubuntu.
Calculations
Flashcards
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
- Yes
- roman numerals
- are possible
- 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 | ||
---|---|---|---|
|
|
|
|
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
- http://www.mediawiki.org/wiki/Extension:Control_Structure_Functions
- http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions
5
-2
Special Characters
\ [ ]
Nested Boxes etc.
Title Text
Text in the box. |
|
Title Text
|
Video
Images
<Gallery>
- Caption
Test for Phil
Joining images:
![]() |
![]() |
![]() |
Mouse-over Image
Mouseover image is Caption:
Files
- Media:testx.odt
- ogv
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
Category Tree
<categorytree>Case Studies</categorytree>
(feature not implemented)
Page Name Characters
Can I use '&' ? Yes - try it ...
Test Template
![]() |
Libre |
xxx |
![]() |
自由 |
xxx |
Previous notes:
More db-like:
Process |
---|
Be a vegan | |
---|---|
Context: | Animal carnage, growing population, habitat destruction, limited natural resources, ... |
Problem: | More land needed to farm food, same land needed for life to thrive and evolve |
Forces: | Market for meat, consumer demand |
Solution: | Be a vegan |
Consequences: | If everyone did this, x billion animals would not need to be slaughtered every year, environmental impacts reduced |
Case: | Some vegan society living happily ... |
Related: | Be an activist (and walk the talk) |
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
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 >>

Aside: noticed
- Transferring data from ds.addthis.com and (?) m.addthisedge.com
and
- ... google-analytics.com ...
etc.
Freedom implications? (privacy, ...)
Liberating Voices
- KtSense of Struggle - test page for lv templates
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
- Fix: http://wikieducator.org/Template:EditableBox
- Cladograms (tables as).
- frameset-like template for edu x box using tables
- table with optional rows if parameter(s) set
- Portals and Templates
- To do List
References
- ↑ 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.
- ↑ l, f; co (2010). [url t]. h: p. p. p. . url. Retrieved today. - the Wikipedia template
- ↑ 3.0 3.1 Name is abc