Module:ScenarioArchiveToWiki/doc

This module has two functions.

convert
This function converts raw decompressed message archives processed by FEAT (this expects and only works with FEAT's specific brand of formatting, it may not work if you use any other tool or process the archives manually) into wikitext for story pages.

Edit the module page and paste this in the console:

convertJSON
This function converts HertzDevil's JSON-formatted dumps into wikitext. Paste this in the console: p.convertJSON({args={[==[ PasteEnglishJSONHere ]==], [==[ PasteJapaneseJSONHere ]==]}})

Adding to the template
These templates store the conversion for nameplates and heroes, if the output is wrong it is most likely because Module:ScenarioArchiveToWiki/data has not been updated. There are three data tables: These are ordered from most important to least important. The module does not check  for example if the Japanese nameplate matches the Japanese name.

Misc
There are a couple of parts to dialogue: $Wm MEID_ ブルーノ, ch04_23_Marth_F_Mask , Face |$w0| …………$k$p世界は、絶望に\n覆われようとしている…$k$p行かなければ. \n取り戻さなければ、未来を… $k$p$Sbs150|
 * Red is the internal ID of the nameplate the game uses. Here it is ブルーノ, which turns into ??? when displayed in-game. Technically the full ID also includes the MEID_ but that is dropped for the purposes of this template (It's highly unlikely it would matter, and if it does, just convert to wikitext manually).
 * Blue is the internal ID for the image that is used. It does not always match the nameplate, here Marth: Enigmatic Blade is shown as ??? despite the Hero's name being "Marth".
 * Green is the expression.
 * Purple is the dialogue.
 * Gray is the other stuff the template removes.


 * : Tap to advance
 * Almost always succeeded by.
 * : Scroll up text
 * Always preceded by.
 * : Nameplate of the unit. Appears only when two units use the same picture.
 * : Stop BGM
 * : Expression
 * : Unknown. Only appears in XX002. Appears to have no visible effect.
 * : Play BGM
 * : Sound effect
 * : Fade out the screen to a specified background color. Unknown1 is possibly the time in ms to complete this fade. Unknown2 is probably alpha. R,G,B,A go from 0 to 255.
 * : Unknown. Always seen paired after, so most likely time in ms to fade back in the normal screen.
 * : Unknown
 * : Unknown
 * : Unknown
 * : Unknown