User:Ktucker/My Sandbox
From Wikiversity
This page is for experiments with wiki markup. Some of these explorations may become useful components (or templates) for use on Wikiversity and other Mediawiki based projects such as WikiEducator.
|
[edit] Page and Section Layout Templates
- Section boxes and page templates.
- Testing area for navigation templates.
- Use Case Template
- Chat - insert a chat area on a wiki page (not implemented)
[edit] Portal Header
{{Portal_Header}} - this will list several portals
Humanities · Physical Sciences · Life Sciences · Practical Arts and Sciences · Mathematics · Computer Science · Engineering and Technology · Interdisciplinary Studies · Social Sciences · Education · Media · Professions · Learning Projects · Learning Materials · Research · Informatics · Other portals
[edit] Portal Templates
[edit] Tabbed
I needed a portal framework similar to the one on Wikipedia for Free Software. So, I implemented an almost identical equivalent on Wikiversity:
- Portal Instructions: Wikipedia and Wikiversity.
- Example Portal:Social Entrepreneurship
A variation has been set up which I use in this project:
[edit] Login Link
After several failed experiments ... success (thanks to SB Johnny):
Code:
<span class="plainlinks">
[http://en.wikiversity.org/w/index.php?title=Special:UserLogin&returnto={{FULLPAGENAMEE}} Login]
</span>
(note the extra 'E' in 'FULLPAGENAMEE').
Result: Login
[edit] Multilingual Pages
[edit] Tests
[edit] Add a section
[edit] Wikipedia Search
| Run a search on Social sciences at Wikipedia. |
Wikipedia search on a term such as "Social sciences".
[edit] Themes
{{SSE Current Theme|box=intro}} = blues
{{Box Theme Attribute|name=gaia|property=foreground}}
-
- green
{{SSE Current Theme|box=intro}}
-
- blues
{{Box Theme Attribute|name={{SSE Current Theme|box=intro}}|property=foreground}}
-
- blue
[edit] and tables
[edit] Properties
A page/template as an object (holding the data about something, e.g. a learning activity), with sub-page "method" templates to display it:
[edit] Text View
The name is stone , the id is 3 , the weight is 10
(why new line and space to indent?) and the Volume is 11 (why a new line?).
I could have done this:
Property, Value
Name, stone
id, 3
colour, red
Weight,10
Volume, 11
[edit] Table View
Enough to show that there is potential:
| Property | Value |
|---|---|
| Name | stone |
| id | 3 |
| Weight | 10 |
| Volume | 11 |
[edit] Switch
Yes
"Oui"
"maybe"
[edit] Incorporating Text from another page
- Content of Template:Social Entrepreneurship Tasks is incorporated below:
- Test incorporation of this text into another page.
- This text is in Template:Social Entrepreneurship Tasks
-
- action a
- action b
- etc.
[edit] Conditions
Check whether a parameter has been specified:
Template "/Animals/" with a name and attribute:
mouse size:
- A mouse is small
elephant _:
- What elephant attribute?
frog _
- Unknown animal - frog
frog size:
- Unknown animal - frog
frog weight:
- Unknown animal - frog
_ size:
- size of what?
_ _:
- Unspecified attribute for unspecified animal.
mouse weight:
- For a mouse I can only tell you size
[edit] Mind Maps - Freemind
<mm>File:Test.mm</mm>
- apparently, the required extension is not installed.
[edit] Images
Aim: mouseover text (alt'?) to be different from caption:
[edit] Bookmarks
- Help:Template - Template on WikiNews w:Help:Template
- Wikiversity:Colloquium
- Help:Icons
- Help:Resources by completion status
- Help:Resources_by_type
- Help:Resources by educational level
- Help:Interwiki project boxes
- Category:Metadata_templates
- Category:Subject_templates
- Educational Level Templates
- Completion Status Templates
- Subject Area Templates
- Parser Functions
- Parser Function
- Plainlinks
- w:List_of_colors - Mediawiki color names

