Extension:AlexaRank

From MediaWiki.org

Jump to: navigation, search

Alexa Rank is a MediaWiki extension.

Get the full details at MediaWiki's extension page.

Manual on MediaWiki Extensions
List of MediaWiki Extensions
Alexa Rank

Release status: beta

Implementation Tag
Description Display Alexa page rank graphs or buttons.
Author(s) Cybersprocket Talk
Version 0.2 (2008-01-01)
MediaWiki 1.6
Download AlexaRank.php
Change Log
Parameters none
Example cybersprocket.com

Contents

[edit] What can this extension do?

Show Alexa page rank graphs in your wiki page wherever you put the <alexagraph> tags.

[edit] Usage

  • Replace cybersprocket.com with the main domain you wish to report on.

[edit] Rank Graph

[edit] Examples

  • Simple
<alexagraph>cybersprocket.com</alexagraph>
  • Multiple Site Comparison : you can compare up to three domains
<alexagraph>cybersprocket.com modellocate.com remodelcharleston.com</alexagraph>
  • Fully qualified
<alexagraph height="380" width="300" type="r" range="1y" color="e6f3fc">cybersprocket.com</alexagraph>

[edit] Parameters

  • Between the brackets: enter up to three domain names
  • height: min 30, max 300
  • width: min 40, max 400
  • type: 'r' = reach, 'n' = rank, 'p' = page views
  • range: '7d', '1m', '3m', '6m', '1y', '3y', '5y', 'max'
  • color: <hex-code without #>, i.e. e6f3fc

[edit] Alexa Buttons

You can show either a stats button or a traffic button.

[edit] Examples

<alexabutton>cybersprocket.com</alexabutton>
<alexabutton size="120x95" type="stats">cybersprocket.com</alexabutton>
<alexabutton size="120x240" type="stats">cybersprocket.com</alexabutton>
<alexabutton size="120x90" type="traffic">cybersprocket.com</alexabutton>

[edit] Parameters

  • type: stats or traffic
  • size:
    • for stats types: 120x95 or 120x240
    • for traffic types: 120x65 or 120x90 or 468x60

[edit] Download instructions

Download the PHP file noted in the [#Code] section below and put it in $IP/extension/AlexaRank/AlexaRank.php. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

[edit] Installation

To install this extension, add the following to LocalSettings.php:

require_once("$IP/extensions/AlexaRank/AlexaRank.php");

[edit] Code

Get the most recent code for AlexaRank.php at Cyber Sprocket.

[edit] See also

[edit] About The Author

Cyber Sprocket Labs is a business technology consulting company located in Charleston SC.

Personal tools