Jump to content
Wikimedia Meta-Wiki

User:Lecid/Downloads: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
Line 37: Line 37:
=== Configuration/Usage ===
=== Configuration/Usage ===


'''For a Path to download like '/data/web/site/downloads' how can be access as http://www.site.com/downloads :'''
In your Wiki code add :


You have to create dir downloads and two others dirs :<br/>
<dynbox title="My Title" posx=XXpx posy=XXpx iconcolor="color" iconbgcolor="color" boxcolor="color" boxbgcolor="color" color="color" bgcolor="color"> ''some text'' </dynbox>
''(optional but great ;))''


# cd /data/web/site/
This put a box in the right top corner of the page
# mkdir -p downloads/.data
# mkdir -p downloads/.icons


For example, put two files :
; '''title''' : Title of the Icon

; '''some text'' : content of the news box
* toto.tgz
; '''posx''' : CSS compatible right-from position
* titi.zip
; '''posx''' : CSS compatible top-from position

; '''iconcolor''' : text icon color
If you want you could fetch my icons in : http://www.diablotins.org/medias/downloads/.icons/ by :
; '''iconbgcolor''' : background icon color
; '''boxcolor''' : Title of the popped box color
# wget -r http://www.diablotins.org/medias/downloads/.icons/
; '''boxbgcolor''' : Border of the popped box color

; '''color''' : Text in the popped box color

; '''bgcolor''' : background of the popped box color
In your Wiki code(追記) , (追記ここまで) add :




=== Demonstration ===
=== Demonstration ===

Revision as of 17:27, 31 March 2006

Template:Extension

Downloads

Download source code

Description

Downloads : Provide a downloads Aera on your wiki fom FS with comments and icons.

  • This tools is a Parser Hooker For MediaWiki how display a downloads Aera on your wiki fom FS with comments and icons.
  • Version : 0.1
  • Copyright (c) BSD <romain@ultragreen.net> Romain GEORGES 2006

Hack

Installation

  1. Add Downloads.php in the Mediawiki's extensions path : $MEDIAWIKI_PATH/extensions/

see download source code section

  1. Add the line :
require_once(" extensions/Downloads.php ");

In your $MEDIAWIKI_PATH/LocalSettings.php file

Configuration/Usage

For a Path to download like '/data/web/site/downloads' how can be access as http://www.site.com/downloads :

You have to create dir downloads and two others dirs :
(optional but great ;))

# cd /data/web/site/
# mkdir -p downloads/.data
# mkdir -p downloads/.icons 

For example, put two files :

  • toto.tgz
  • titi.zip

If you want you could fetch my icons in : http://www.diablotins.org/medias/downloads/.icons/ by :

# wget -r http://www.diablotins.org/medias/downloads/.icons/


In your Wiki code, add :



Demonstration

http://www.diablotins.org/index.php/Downloads

AltStyle によって変換されたページ (->オリジナル) /