PasteSite.Com

Recent Pastes

Sign Up!

PasteSite is open to the public, but with limited features. Register to be able to modify access rights, track your pastes and more...

Change the theme

If you prefer reading light text on a dark background to dark text on a light background, then you might want to try the dark theme.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
###################
# Syntax: <staff/>#
#-----------------#
# Varibles:       #
###################
$wgSTagURL = ""; //URL the image links to
$wgSTagIMG = ""; //URL of the image
$wgSTagALT = ""; //[HTML/image/alt] attribute (text displayed if image is unavailable)
###################
# MetaData        #
###################
$wgExtensionCredits['other'][] = array(
   'name' => 'StaffTag',
   'author' => 'Seth Rees',
   'version' => '1.0',
   'url' => 'http://www.mediawiki.org/wiki/Extension:StaffTag',
   'description' => 'This extension generates a tag showing the user is a member of the staff');
###################
# Extension Code  #
###################
$wgExtensionFunctions[] = "wfStaffTag";
 
function wfStaffTag() {
    global $wgParser;
 
    $wgParser->setHook( "staff", "renderStaffTag" );
}
 
# The callback function for converting the input text to HTML output
function renderStaffTag( $input ) {
    $output = '<a href="' .$wgSTagURL. '"><img src="' .$wgSTagIMG. '" alt="' .$wgSTagALT. '" /></a>';
    return $output;
}

Reply to This Paste

(leave blank to make this paste permanent)
(if set as private)