MediaWiki Tips
Wiki for ITS | ||||||
---|---|---|---|---|---|---|
|
![]() |
Tips and Tricks for MediaWiki
- Date and time
- Math
- Header Tabs
- TOC, Style and Images
- Miniature of pages
- sub-pages
- Semantic Bundle
- Widgets
- Language
- Add-on functionality
- Dynamic pages
Click here to go to the next tab... Example:
- date: 25 Dec 2009 or "now": 16 Aug 2024
- Revision: 12.2013
- DueDate used for Master thesis delivery, Due_date used for project and other deliverables
https://www.mediawiki.org/wiki/Help:Magic_words
<span style="float: right; font-size: 80%;" > {{REVISIONMONTH}}.{{REVISIONYEAR}} </span> {{#formatdate:dec 25,2009|dmy}}
see more in Ask...
<math> x^2 + y^2 = z^2 </math>
for easy text formatting, you can also use the NO<sub>2</sub> writing, which provides NO2.
put the word <headertabs/> at the end of the part which is separated in Tabs, and then header 1 will be converted into a tab.
Read more at: http://www.mediawiki.org/wiki/Extension:Header_Tabs
Style
__NOTOC__ __NOEDITSECTION__ <span style="float: right; font-size: 80%;" > your text here </span>
Span style attributes
text-align:center; background:color:#ffffee
Images
- right flow, 350 px, with frame and caption
[[File:image.png|350px|frame|Caption of image|link=http://cwi.unik.no/wiki/UNIK4700]]
- external images, just include the http link
http://www.unik.no/Images/Logo.gif
References
<ref> </ref> and <references/>The first part will just include a reference, the second one with the name= ... is used to label the references. You may also group references for sorting after e.g. footnotes and references. a good method for the summary is the use of the template
{{Reflist}}
For further reading, see: Extension:Cite
a sub-page is a child page to a topic, example UNIK4700/Introduction, where introduction is a sub-page of UNIK4700. The feature is currently not implemented on this wiki, mainly due to (i) don't know how to create and (ii) don't know how to query. Need to look into it.
- Create: by adding “query string=super_page=Research” to the form.
- a good article on search in sub-pages and omnitting the "main" page:
http://clkoerner.com/2012/09/06/semantic-mediawiki-templates-and-arraymaps-are-awesome/
Look also for ParserFunctions extension, they allow to give back parts of the header
- 3Jan2012 tried compilation again, having renamed SemanticBundle to semantic-bundle
- sudo make all worked
- failed at the end, 7z not found, but SemanticBundle-20130103.tgz was created > moved to extensions > tar xvf SemanticBundle-20130103.tgz > created "all extensions"
- SemanticResultFormats
- SemanticSignup
- SemanticTasks
- SemanticWatchlist
- SemanticDrilldown
- ...
- Widgests
- Maps
- Nuke
- PageSchemas
- ParserFunctions
Activated through
$ pwd /var/www/mediawiki/extensions/semantic-bundle $ sudo vi SemanticBundle.php $ sudo cp SemanticBundleSettings.sample.php SemanticBundleSettings.php $ sudo vi SemanticBundleSettings.php ... sudo chown -R www-data semantic* Semantic* Admin* Approve* Arrays* Data* External* Header* Maps* PageSche* Replace* Validator sudo chgrp -R www-data semantic* Semantic* Admin* Approve* Arrays* Data* External* Header* Maps* PageSche* Replace* Validator
Enabled:
- SemanticResultFormats
- SemanticForms
- SemanticFormsInputs
- not: SemanticCompoundQueries
- SemanticDrilldown
- not: SemanticMaps
- SemanticTasks
- not: SemanticInternalObjects
- not: SemanticImageInput
- AdminLinks
- not: ApprovedRevs
- not: Arrays
- not: DataTransfer
- not: ExternalData
- HeaderTabs
- not: PageSchemas
- not: ReplaceText
- Widgets
See a list of Widgets used on this wiki
YouTube widget
{{#widget:WidgetName|param1=value1|param2=value2}} {{#widget:YouTube|id=DWef69ItVrU}}
- id - video id (from the URL)
- playlist - playlist name (starts with PL) - first clip is played (id is ignored)
- height and width define view dimensions, 420x350 is default
other widgets: [http://www.mediawikiwidgets.org/w/index.php?
title=Special:AllPages&from=&namespace=274 mediawiki widgets]
- LinkedIN widget: Test_LinkedIn_Profile
- Youtube: YouTubeWidget-test
14Feb2013: playing with language functions to test en/no implementation
- Don't forget to run a "page refresh" (as cache is enabled)
{{#iflang: no | dette er en norsk tekst }} {{#iflang: en | Secret stuff for english speakers }} Here's a bilingual header. =={{#iflang: en |English heading }}{{#ifmultlang: }}{{#iflang: no |Norsk titel }}==
{{#iflang: no |Dette er en norsk tekst
Og her kommer en header på norsk}} {{#iflang: en |Secret stuff for english speakers
this is a header in English}}
{{#iflang: en |English heading }}{{#iflang: no |Norsk titel }}
- before you continue, check SemanticBundle options
- look at http://semantic-mediawiki.org/wiki/Help:MediaWiki_extensions
- Pre-defined widgets from: http://www.mediawikiwidgets.org/w/index.php?title=Special:AllPages&from=&namespace=274
All messages and how to set them Special:AllMessages
SimpleSecurity - removed error message MediaWiki:Security-info (left as blank page)
Using the inclusion of Special:RecentChanges or Special:Newpages for recent changes
or
- 12:17, 3 July 2024 Norwegen2025 (hist) [5,141 bytes] Josef.Noll (Talk | contribs) (Created page with "== Norwegen 2025 - der 200. == ''Diese Seite ist zusammengestellt um einen Überblick zu gewähren was zum 200. so passiert. Wir haben eine private WhatsApp gruppe wo diskutie...")
- 05:10, 3 July 2024 Ange Frederick Balma (hist) [37 bytes] WikiSysop (Talk | contribs)
- 20:27, 15 June 2024 Andy Halsall (hist) [37 bytes] WikiSysop (Talk | contribs)
Inclusion of pages works shrough {{:Name_of_page}} for pages from the main namespace, otherwise from Template:Name_of_page
Links to changes - % why don't they work? - Links work in MediaWiki:Sidebar
- currentevents-url|currentevents
- recentchanges-url|Recent changes
- randompage-url|randompage]]
- TrackRecord|TrackChanges
Design
Mediawiki Design lists cool designs suggestions. We are using the GuMax Design, and our package can be downloaded from Media:GuMax-UNIK.tar.gz