User:Ktucker/My Sandbox

From Wikiversity

Jump to: navigation, search

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.

Contents

[edit] Page and Section Layout Templates


[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:

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

Template:Test Preload

[edit] Wikipedia Search

Wikipedia-logo.png 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

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:

Alt Text
My Caption
mouseover image text
caption

[edit] Bookmarks