- D20 Studios Wiki

Widget:FateEncounter

This page hosts the FateEncounter widget. Paste the contents below into Widget:FateEncounter on your wiki, then embed it on any page with:

{{#widget:FateEncounter
| file = fate_encounters_export.json
}}

Optional parameters:

  • encounter — numeric encounter id to deep-link straight into one Fate (overridden by ?encounter= in the URL).
  • height — pixel height of the simulator. Defaults to 720.

The widget loads JSON after mediawiki.util is ready and resolves the URL with mw.util.getUrl('Special:FilePath/…') (so pretty URLs and subdir wikis work). The file parameter must match the wiki file name (with or without File: prefix). If you see “Unexpected token '<'”, the browser got an HTML page instead of JSON — usually the script ran before mw existed (fixed here), the file is missing, or .json is not in $wgFileExtensions.

Chat with us live on DISCORD

Newsletter Signup