Actions

FlashCard

From MediaWiki Widgets

FlashCard widget
Description:Allows you to add a FlashCard
Author:Wesalius
Code:Widget:FlashCard
Status:active
Security:unknown
Inv-Icon tools.svg.png

To copy this widget to your wiki, cut and paste the entire source of the FlashCard widget code page into a page called Widget:FlashCard on your wiki.

If you don't have the Widget extension set up on your wiki, go to its description page on MediaWiki.org and follow the installation instructions.


This widget allows you to add a FlashCard like in this example to your wiki page.

To insert this widget, use the following code:

{{#widget:FlashCard
|param1=category
}}

or

{{#widget:FlashCard
|param1=name.1
|param1=url.1
|param1=name.2
|param1=url.2
...
}}


Parameters

  • category - category from which the page gets fetched

or

  • name.1 - target name
  • url.1 - target url
  • name.2 -
  • url.2 -

...

Also you need the "Template:Flashcard" which you substitute onto image pages. It is used for the image description. It takes one parameter - description. Description contains the desired description for your flashcard.

The code for the Flashcard template is

{| class="toccolours" style="width: 100%; vertical-align: middle" cellpadding="3"
! style="background: #ccf; text-align: right; padding-right: 0.6em; width: 8%" |Description
|
{{#if: {{{description|}}} |{{{description}}} |<span style="color: red">''not given''</span> }}
|}

Result

See the example at wikiskripta.eu.

For image with the Flashcard template substituted see this image.

Comments

blog comments powered by Disqus