Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeroendedauw/didyouknow
https://github.com/jeroendedauw/didyouknow
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jeroendedauw/didyouknow
- Owner: JeroenDeDauw
- License: other
- Created: 2012-05-06T16:42:26.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-05-07T10:28:00.000Z (over 12 years ago)
- Last Synced: 2024-10-16T14:41:15.568Z (about 1 month ago)
- Language: PHP
- Size: 117 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: COPYING
Awesome Lists containing this project
README
These is the readme file for the Did You Know extension.
Extension page on mediawiki.org: https://www.mediawiki.org/wiki/Extension:Did_You_Know
Latest version of the readme file: https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/DidYouKnow.git;a=blob;f=README== About ==
This extension allows for displaying a "did you know" box in articles (using some wikitext construct)
and other interfaces such as special pages (by using the PHP interface from another extension).The did you know (DYK) box consists of a header "Did you know... ?", followed by content pulled
from a wiki page. The wiki page gets randomly selected from a list of pages within a certain
category (this category can be configured in LocalSettings). A "type" parameter can also be provided,
which causes the lookup for the page to happen in a different category, for example
[[Category:Did you know/$type]], where $type gets replaced by the value of the type parameter.
If there are no pages in this category, the selection mechanism falls back to the default category.