Embeding "Panic Levels"
nav_first.pngFirst: thread:375
Developing a module for Wikidot
Edited: 08 Mar 2011 18:27 by: North
Comments: 0
Tags:
nav_prev.pngPrevious: thread:62
How to apply for membership?
Edited: 05 Oct 2009 17:35 by: Steven Heynderickx
Comments: 4
Tags:
Last: thread:31
Black belt project
Edited: 06 Sep 2009 11:06 by: pieterh
Comments: 10
Tags:
nav_last.png
Next: thread:59
Forum problem
Edited: 02 Oct 2009 02:38 by: James Kanjo
Comments: 9
Tags:
nav_next.png

tsangktsangk wrote on 05 Oct 2009 03:16

Panic Levels were introduced in the sidebar of the Wikidot Blog. I managed to use a variety of modules (RSS and ListPages) to embed the LATEST (as far as the RSS cache refreshes) Panic Level.

Source:

[[module Feed src="http://blog.wikidot.com/feed/pages/category/-nav/tags/red/t/Panic!"]]
[[div style="width:100%; background: red; padding: 2px; font-size:90%; -moz-border-radius: 20px; -webkit-border-radius: 20px; border-radius: 20px; color:yellow"]]
= Wikidot.com status: **Red** _
Forecast: **Emergency**
[[/div]]
[[/module]]

[[module Feed src="http://blog.wikidot.com/feed/pages/category/-nav/tags/orange/t/Panic!"]]
[[div style="width:100%; background: orange; padding: 2px; font-size:90%; -moz-border-radius: 20px; -webkit-border-radius: 20px; border-radius: 20px; color:red"]]
= Wikidot.com status: **Orange** _
[http://www.wikidot.com/current-problems Forecast:] **Not 100% stable**
[[/div]]
[[/module]]

[[module Feed src="http://blog.wikidot.com/feed/pages/category/-nav/tags/yellow/t/Panic!"]]
[[div style="width:100%; background: #FF6; padding: 2px; font-size:90%; -moz-border-radius: 20px; -webkit-border-radius: 20px; border-radius: 20px; color:blue"]]
= Wikidot.com status: **Yellow** _
Forecast: **Some hiccups**
[[/div]]
[[/module]]

[[module Feed src="http://blog.wikidot.com/feed/pages/category/-nav/tags/green/t/Panic!"]]
[[div style="width:100%; background: green; padding: 2px; font-size:90%; -moz-border-radius: 20px; -webkit-border-radius: 20px; border-radius: 20px; color:white"]]
= Wikidot.com status: **Green** _
Forecast: **Normal traffic**
[[/div]]
[[/module]]

[[module Feed src="http://blog.wikidot.com/feed/pages/category/-nav/tags/blue/t/Panic!"]]
[[div style="width:100%; background: #36F; padding: 2px; font-size:90%; -moz-border-radius: 20px; -webkit-border-radius: 20px; border-radius: 20px; color:white"]]
= Wikidot.com status: **Blue** _
Forecast: **Fast & smooth** _
24h avg: 8.8Mbps, 53% load
[[/div]]
[[/module]]

Which renders this:

{"module":"feed\/FeedModule","params":{"src":"http:\/\/blog.wikidot.com\/feed\/pages\/category\/-nav\/tags\/red\/t\/Panic!","module_body":"[[div style=\"width:100%; background: red; padding: 2px; font-size:90%; -moz-border-radius: 20px; -webkit-border-radius: 20px; border-radius: 20px; color:yellow\"]]\n= Wikidot.com status: **Red** _\nForecast: **Emergency**\n[[\/div]]"}}
{"module":"feed\/FeedModule","params":{"src":"http:\/\/blog.wikidot.com\/feed\/pages\/category\/-nav\/tags\/orange\/t\/Panic!","module_body":"[[div style=\"width:100%; background: orange; padding: 2px; font-size:90%; -moz-border-radius: 20px; -webkit-border-radius: 20px; border-radius: 20px; color:red\"]]\n= Wikidot.com status: **Orange** _\n[http:\/\/www.wikidot.com\/current-problems Forecast:] **Not 100% stable**\n[[\/div]]"}}
{"module":"feed\/FeedModule","params":{"src":"http:\/\/blog.wikidot.com\/feed\/pages\/category\/-nav\/tags\/yellow\/t\/Panic!","module_body":"[[div style=\"width:100%; background: #FF6; padding: 2px; font-size:90%; -moz-border-radius: 20px; -webkit-border-radius: 20px; border-radius: 20px; color:blue\"]]\n= Wikidot.com status: **Yellow** _\nForecast: **Some hiccups**\n[[\/div]]"}}
{"module":"feed\/FeedModule","params":{"src":"http:\/\/blog.wikidot.com\/feed\/pages\/category\/-nav\/tags\/green\/t\/Panic!","module_body":"[[div style=\"width:100%; background: green; padding: 2px; font-size:90%; -moz-border-radius: 20px; -webkit-border-radius: 20px; border-radius: 20px; color:white\"]]\n= Wikidot.com status: **Green** _\nForecast: **Normal traffic**\n[[\/div]]"}}
{"module":"feed\/FeedModule","params":{"src":"http:\/\/blog.wikidot.com\/feed\/pages\/category\/-nav\/tags\/blue\/t\/Panic!","module_body":"[[div style=\"width:100%; background: #36F; padding: 2px; font-size:90%; -moz-border-radius: 20px; -webkit-border-radius: 20px; border-radius: 20px; color:white\"]]\n= Wikidot.com status: **Blue** _\nForecast: **Fast & smooth** _\n24h avg: 8.8Mbps, 53% load\n[[\/div]]"}}

Start a new sub-thread

Comments: 2

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License