Access Keys:
Skip to content (Access Key - 0)

3down

What Does This User Macro Do?

Displays excerpt of information from, and has a link to, the 3Down web page.

Where Is This Macro Used?

  • Home Page
  • Search Results Page

Macro Settings

Macro name: 3down
Macro has body: true
Body processing: Use unprocessed macro body
Output: Macro generates wiki markup

Source Code

## last updated: 9/1/08 by: othomas
## This macro takes one parameter, severity, of the form green, yellow, or red to
## indicate the severity or impact of a current event or outage, by
## changing its border and title background colors accordingly. The
## default color is green. If the body is empty, it will display the
## general section from 3down. Ideally, it would figure out whether there
## is content in that section, and maybe pick up a color tag from it.
#if($paramseverity == "red")
#set($titleBGColor="#FFECEA")
#set($borderColor ="#FF9966")
#elseif($paramseverity == "yellow")
#set($titleBGColor="#FFFFEA")
#set($borderColor ="#FFFF66")
#else
#set($titleBGColor="#ECFFEA")
#set($borderColor ="#99EC66")
#end
#if($body)
{panel:title=Current|borderStyle=solid|borderColor=$borderColor|titleBGColor=$titleBGColor|bgColor=#ffffff}
$body
#else
{panel:title=3down|borderStyle=solid|borderColor=$borderColor|titleBGColor=$titleBGColor|bgColor=#ffffff}
{rss:url=http://is3down.mit.edu/fcgi-bin/3down?rss=1&section=general|max=1|showTitlesOnly=false|titleBar=false}
{menulink:custom|target=_blank|link=http://3down.mit.edu/}See all 3down sections{menulink}
#end
{panel}
{panel}

The K.B. Handbook

Documentation and information about using The Knowledge Base


Last Modified:

March 20, 2012

Get Help

Request help
from the Help Desk
Report a security incident
to the Security Team
Labels:
confluence-only confluence-only Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
Feedback
This product/service is:
Easy to use
Average
Difficult to use

This article is:
Helpful
Inaccurate
Obsolete
Adaptavist Theme Builder (4.2.3) Powered by Atlassian Confluence 3.5.13, the Enterprise Wiki