WIKI DATA

The Wiki Data Integration allows importing wikipedia data into Roam! The name of the script is wiki-data.

Installation

You could use the Copy Extension button below to individually install this extension. To install, just paste anywhere in your Roam graph and click "Yes, I Know What I'm Doing".

Manual Installation

If instead you prefer to manually install, first create a block with the text {{[[roam/js]]}} on any page in your Roam DB. Then, copy and paste this code block as a child of the block.

var existing = document.getElementById("wiki-data");
if (!existing) {
  var extension = document.createElement("script");
  extension.src = "https://roamjs.com/wiki-data.js";
  extension.id = "wiki-data";
  extension.async = true;
  extension.type = "text/javascript";
  document.getElementsByTagName("head")[0].appendChild(extension);
}

Usage

The script is not configurable.

In a block, type {{wiki}}. Similar to date picker, there will be an overlay that appears next to the wiki button. There will be a search input and button that could be used to query wikipedia for the desired page. Up to 10 search results will be returned. Upon clicking or hitting enter on one of the results, the intro for the wikipedia page will be entered into the block!

Playground

Play with the button below to get a sense of how the Wiki Data integration works! Saved queries will get outputted to the neighboring textbox.

Demo

Other Extensions