Jump to content

Help:Introduction: Difference between revisions

From RiskiPedia
No edit summary
No edit summary
Line 13: Line 13:
</pre>
</pre>


3. Insert one or more "RiskModel" using the &lt;RiskModel&gt; tag into the /Data page. RiskModels define how to combine the various risk factors (as described in the data tables) to come up with a risk factor. They also define how to display the risk. The simplest RiskModel might just look up a single value in a single data table and perform some math to make the risk a little easier for people to understand. For example, taking the skydiving table risk numbers and and converting them into "what are your chances of dying or getting injured if you jump 1,000 times":
Your favorite AI chatbot (ChatGPT, Gemini, Grok) is likely very good at re-formatting the data for you-- just ask it to produce a WikiText
 
3. Insert one or more "RiskModel" using the &lt;RiskModel&gt; tag into the /Data page. RiskModels define how to combine the various risk factors (as described in the data tables) to come up with a risk factor. They also define how to display the risk. The simplest RiskModel might just look up a single value in a single data table and perform some math to make the risk a little easier for people to understand. For example, taking the skydiving table risk numbers and and converting them into easier to understand "x in 1,000 chances":
<pre>
<pre>
<nowiki><RiskModel name="fatality_risk_per_jump" calculation="mean_fatality_rate*1000">Your chances of dying, per jump, are about {result} in 1,000</RiskModel>
<nowiki><RiskModel name="fatality_risk_per_jump" calculation="mean_fatality_rate*1000">Your chances of dying, per jump, are about {result} in 1,000</RiskModel>
<RiskModel name="injury_risk_per_jump" calculation="mean_injury_rate*1000">Your chances of being seriously injured, per jump, are about {result} in 1,000</RiskModel></nowiki>
<RiskModel name="injury_risk_per_jump" calculation="mean_injury_rate*1000">Your chances of being seriously injured, per jump, are about {result} in 1,000</RiskModel></nowiki>
</pre>
</pre>
Many risks will have multiple risk factors; calculation can be an arbitrary expression with as many risk factors as you need to define the risk.
4. Now you can create the page visitors interested in the risk will see. Create the parent page (e.g. "Parachuting"), again by searching for it and poking the Create the page link. Put text about the risk along with interactive UI elements that let the user select or type in the risk factors that the RiskModel uses to calculate risk. If the risk factor comes from a data table....

Revision as of 23:54, 21 August 2025

Contributing to RiskiPedia

Creating a RiskiPedia article is only a little bit harder than creating a WikiPedia article. Here's what you need to do:

1. Find a study or studies or data about some risk that you're interested in. For example, maybe you're interested in the risks of skydiving, BASE jumping, and other parachuting activities-- use Google Scholar and find the best research with data on the risks.

2. Insert the relevant data from the research into a RiskiPedia page. If the article about the risk will be called "Parachuting", create a page called "Parachuting/Data". How? Just search for Parachuting/Data in the RiskiPedia page search box (at the top of the screen), and then poke the "Create the page Parachuting/Data" link that appears in the page-not-found result. Data goes inside <datatable2> tags. Include references to the studies somewhere in the Data page (or in the data table), and add any relevant comments about the data right on the Data page. For example, the table of risks for skydiving and BASE jumping might be defined as:

<datatable2 table="skydiving" columns="variation|mean_fatality_rate|mean_injury_rate|reference">
Skydiving|0.000011|0.00044|[https://pmc.ncbi.nlm.nih.gov/articles/PMC9859333/]
BASE jumping|0.0004|0.004|[https://pubmed.ncbi.nlm.nih.gov/17495709/]
</datatable2>

Your favorite AI chatbot (ChatGPT, Gemini, Grok) is likely very good at re-formatting the data for you-- just ask it to produce a WikiText

3. Insert one or more "RiskModel" using the <RiskModel> tag into the /Data page. RiskModels define how to combine the various risk factors (as described in the data tables) to come up with a risk factor. They also define how to display the risk. The simplest RiskModel might just look up a single value in a single data table and perform some math to make the risk a little easier for people to understand. For example, taking the skydiving table risk numbers and and converting them into easier to understand "x in 1,000 chances":

<RiskModel name="fatality_risk_per_jump" calculation="mean_fatality_rate*1000">Your chances of dying, per jump, are about {result} in 1,000</RiskModel>
<RiskModel name="injury_risk_per_jump" calculation="mean_injury_rate*1000">Your chances of being seriously injured, per jump, are about {result} in 1,000</RiskModel>

Many risks will have multiple risk factors; calculation can be an arbitrary expression with as many risk factors as you need to define the risk.

4. Now you can create the page visitors interested in the risk will see. Create the parent page (e.g. "Parachuting"), again by searching for it and poking the Create the page link. Put text about the risk along with interactive UI elements that let the user select or type in the risk factors that the RiskModel uses to calculate risk. If the risk factor comes from a data table....