Fandom Developers Wiki
No edit summary
(13 intermediate revisions by 6 users not shown)
Line 2: Line 2:
 
{{Personal}}
 
{{Personal}}
 
{{Infobox JavaScript
 
{{Infobox JavaScript
|Image file = [[File:Bildschirmfoto_2018-04-06_um_12.21.10.jpg|thumb|300px]]
+
|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:AddArticleToCategory/code.js|code.js]]
+
* [[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>(imported in code.js)</small>
  +
| Type = site, modernization
  +
|Languages=auto
  +
}}
 
'''FAQ''' adds a page to the wiki where user can find FAQ.
  +
  +
== Installation ==
 
{{Script Install
  +
|codepage = FAQ/code.js
  +
|Use = GP
 
}}
 
}}
Adds a page to the wiki where user can find FAQ
 
   
 
== Configuration ==
 
== Configuration ==
* Target page defaults to "[[Project:FAQ]]" but you can change it by setting <code>window.dev.faq.page</code> to the preferred page
+
* 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 [[MediaWiki:Custom-FAQ.json]], so put all your contents there in json format ([[w:c:de.harrypotter:MediaWiki:Custom-FAQ.json|example]]).
+
* 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:
 
|}
 
|}
   
== Installation ==
+
== Changelog ==
  +
;2018-05-28: Added support for [[Help:wikitext|wikicode]]
{{Script Install/ImportJS|Use = GP}}
 
  +
;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
  • articles (string[]): Article Names
  • discussions (object)
    • title (string)
    • p (string): post id after /d/p/
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 question
  • Edit/Delete question
    • UI translations