Agent Zuri (talk | contribs) No edit summary |
Agent Zuri (talk | contribs) |
||
(13 intermediate revisions by 6 users not shown) | |||
Line 2: | Line 2: | ||
{{Personal}} |
{{Personal}} |
||
{{Infobox JavaScript |
{{Infobox JavaScript |
||
− | |Image file = |
+ | |Image file = Bildschirmfoto 2018-04-06 um 12.21.10.jpg |
+ | |Author = [[User:Agent Zuri|Agent Zuri]] |
||
|Description = FAQ |
|Description = FAQ |
||
− | |Updated = April 06, 2018 |
||
|Scope = p |
|Scope = p |
||
|Status = stable |
|Status = stable |
||
|Code = |
|Code = |
||
− | * [[MediaWiki: |
+ | * [[MediaWiki:FAQ/code.js|code.js]] |
− | * [[MediaWiki:FAQ/style.css|style.css]] <small>( |
+ | * [[MediaWiki:FAQ/style.css|style.css]] <small>(imported in code.js)</small> |
+ | | Type = site, modernization |
||
+ | |Languages=auto |
||
+ | }} |
||
⚫ | |||
+ | |||
+ | == Installation == |
||
⚫ | |||
+ | |codepage = FAQ/code.js |
||
+ | |Use = GP |
||
}} |
}} |
||
⚫ | |||
== Configuration == |
== Configuration == |
||
− | * Target page defaults to " |
+ | * Target page defaults to "Project:FAQ" but you can change it by setting <code>window.dev.faq.page</code> to the preferred page |
− | * FAQ data are stored and loaded from in |
+ | * FAQ data are stored and loaded from in '''MediaWiki:Custom-FAQ.json''', so put all your contents there in JSON format ([[w:c:de.harrypotter:MediaWiki:Custom-FAQ.json|example]]). |
− | === Dataset Structure === |
||
{| class="wikitable" |
{| class="wikitable" |
||
! Key !! Type !! Remarks |
! Key !! Type !! Remarks |
||
Line 38: | Line 45: | ||
|} |
|} |
||
− | == |
+ | == Changelog == |
+ | ;2018-05-28: Added support for [[Help:wikitext|wikicode]] |
||
⚫ | |||
+ | ;2019-05-10: Added interface for add/edit/delete |
||
+ | ;2019-06-05: Added i18n |
||
+ | <br />New messages to translate: |
||
+ | * add |
||
+ | * delete-confirm (params: $1) |
||
+ | * edit (params: $1) |
||
+ | * add-new |
||
+ | * question |
||
+ | * answer |
||
+ | * related-articles |
||
+ | * keywords |
||
+ | * save |
||
+ | * cancel |
||
== Planned Features == |
== Planned Features == |
||
Line 45: | Line 65: | ||
** by keywords |
** by keywords |
||
** maybe grouping? |
** maybe grouping? |
||
− | * Add question |
+ | * <del>Add question</del> |
− | * Edit/Delete question |
+ | * <del>Edit/Delete question</del> |
+ | ** UI translations |
Revision as of 07:32, 5 June 2019
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)
FAQ adds a page to the wiki where user can find FAQ.
Installation
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).
Key | Type | Remarks |
---|---|---|
id | int |
Unique running number to identify |
question | string |
|
answer | string |
|
related | object
|
|
keywords | string[] |
Changelog
- 2018-05-28
- Added support for wikicode
- 2019-05-10
- Added interface for add/edit/delete
- 2019-06-05
- Added i18n
New messages to translate:
- add
- delete-confirm (params: $1)
- edit (params: $1)
- add-new
- question
- answer
- related-articles
- keywords
- save
- cancel
Planned Features
- Search for questions
- by keywords
- maybe grouping?
Add questionEdit/Delete question- UI translations