Installed MediaWiki extensions

International Game Developers Association

Jump to: navigation, search

Here are (at least some of) the extensions installed on this wiki and a brief guide to using them.

Table of contents

[edit] Google Charts

Main reference: http://code.google.com/p/gchart4mw/wiki/OnlineDocumentation

This one is super simple:

<pie 3d title="Categories of Games Played" size=400x150 xlabel>
PC, 65
Consoles, 15
Other, 20
</pie>

becomes:

[edit] WikEd

[edit] References

[edit] How to enable it (user-side)

Go to your User:YourUsername/monobook.js page (e.g. User:Darren/monobook.js) and add:

// install [[User:Cacycle/wikEd]] in-browser text editor
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript"></' + 'script>');

Be sure to refresh your browser cache after saving this change

[edit] Add Article to Category

[edit] Installing

  1. Download the extension at HERE or the section HERE.
  2. Upload the articletocategory.php to your extensions/ directory.
  3. Add include("extensions/articletocategory.php"); to your LocalSettings.php file.


[edit] GeSHi Syntax Highlighting

[edit] GeSHi example

Entering the following:

<source lang="ruby">
# List all items of the given ActiveRecord type (one line each) and for each one show
# the specified fields
def list_all_quick(active_record_class, fields, separator = " - ")
  active_record_class.constantize.find(:all).each do | model |
    full_string = fields.inject("") do | str, field |
      str += "#{model.send(field)}" + separator unless model.send(field).blank?
      str
    end
    full_string.slice!(-separator.size..-1)
    puts full_string
  end
end
</source>

Would yield:

# List all items of the given ActiveRecord type (one line each) and for each one show
# the specified fields
def list_all_quick(active_record_class, fields, separator = " - ")
  active_record_class.constantize.find(:all).each do | model |
    full_string = fields.inject("") do | str, field |
      str += "#{model.send(field)}" + separator unless model.send(field).blank?
      str
    end
    full_string.slice!(-separator.size..-1)
    puts full_string
  end
end

[edit] Video Embedding

Just type:

{{#ev:SERVICE|VIDEO_ID|100}}

where:

  • SERVICE is the name of the service (e.g. "youtube")
  • VIDEO_ID is the ID of the video
  • 100 is the width of the box in which the video will be embedded

so

{{#ev:youtube|6gmP4nk0EOE}}

yields:


[edit] Even easier YouTube embedding

Just enter the following:

{{youtube|ANiceLittleYouTubeVideo}}

where 'ANiceLittleYouTubeVideo' is the video ID of the video you want to embed.

So

{{youtube|PQbuyKUaKFo}}

yields:



See: Template:Youtube

Personal tools
Toolbox