Agent Zuri (talk | contribs) No edit summary |
m (Fixed link) |
||
Line 2: | Line 2: | ||
{{Personal}} |
{{Personal}} |
||
{{Infobox JavaScript |
{{Infobox JavaScript |
||
− | |Image file = |
+ | |Image file = Bildschirmfoto 2018-04-06 um 12.21.10.jpg |
|Description = FAQ |
|Description = FAQ |
||
|Updated = April 06, 2018 |
|Updated = April 06, 2018 |
||
Line 8: | Line 8: | ||
|Status = stable |
|Status = stable |
||
|Code = |
|Code = |
||
− | * [[MediaWiki: |
+ | * [[MediaWiki:FAQ/code.js|code.js]] |
* [[MediaWiki:FAQ/style.css|style.css]] <small>(already included in code.js)</small> |
* [[MediaWiki:FAQ/style.css|style.css]] <small>(already included in code.js)</small> |
||
}} |
}} |
Revision as of 12:03, 6 April 2018
This script/stylesheet is for PERSONAL use only!
You are free to install this script/stylesheet for yourself, but it is not allowed to be used wiki-wide (e.g., in MediaWiki:ImportJS, MediaWiki:Common.js, MediaWiki:Common.css, MediaWiki:Fandomdesktop.js or MediaWiki:Fandomdesktop.css), as it would violate Fandom's Terms of Use.
(See the customization policy)
Adds a page to the wiki where user can find FAQ
Configuration
- Target page defaults to "Project:FAQ" but you can change it by setting
window.dev.faq.page
to the preferred page - FAQ data are stored and loaded from in MediaWiki:Custom-FAQ.json, so put all your contents there in json format (example).
Dataset Structure
Key | Type | Remarks |
---|---|---|
id | int |
Unique running number to identify |
question | string |
|
answer | string |
|
related | object
|
|
keywords | string[] |
Installation
Template:Script Install/ImportJS
Planned Features
- Search for questions
- by keywords
- maybe grouping?
- Add question
- Edit/Delete question