Difference between revisions of "Mediawiki.el"

From WikEmacs
Jump to: navigation, search
Line 1: Line 1:
 
'''Mediawiki.el''' is a package to help add content to any mediawiki
 
'''Mediawiki.el''' is a package to help add content to any mediawiki
site (including this site). It comes with a [[Major Mode]] to support
+
site. You can use this library to browse and submit content to
editing mediawiki markup.
+
''WikEmacs''. It comes with a [[Major Mode]] to support editing
 +
Mediawiki markup.
  
= Installation =
+
= Basic setup =
 +
 
 +
Install '''mediawiki.el'''.
  
 
* From [[el-get]]
 
* From [[el-get]]
Line 10: Line 13:
 
* From [[Elpa]]
 
* From [[Elpa]]
  
 +
; Command{{load-library RET mediawiki RET}}
 +
: Load the library. This can be skipped if you have have
 +
Snippet{{(require 'mediawiki)}} to your {{InitFile}}.
  
= Basic setup =
+
; CustomizeVariable{{mediawiki-site-alist}
 +
: Configure as follows and save your settings
 +
:: URL: http://wikemacs.org/w/
 +
:: Username: InCognito
 +
:: Password: s!cr!t
 +
:: First Page: Main Page
  
Add mediawiki site to the {{Variable|mediawiki-site-alist}}.
+
: You can provide "Username" and "Password" in your [[.authinfo]] file. home directory.
<source lang="lisp">
+
(add-to-list 'mediawiki-site-alist
+
  '("wikemacs" "http://wikemacs.org/w/" "kindahero" "PASSWORD" "Main Page"))
+
</source>
+
  
password and login ID information can be in [[.autinfo]] file in the
+
= Make submissions =
home directory.
+
; Command{{mediawiki-site}}
 +
: Choose a site for the current session.
  
= How To =
+
; CommandKeys{{mediawiki-open}}
 +
: Open a page. To edit the main page, type "Main Page". Make your edits.
  
once you added your site to {{Variable|mediawiki-site-alist}} then
+
; CommandKeys{{C-x C-s|mediawiki-save}}
call to {{Function|mediawiki-open}} fetch a page and start editing it.
+
: Submit your modifications.
  
It has support to drafts support.
+
= Helpful Keybindings =
  
= Helpful keybindings =
+
; CommandKeys{{C-c |mediawiki-save-and-bury}}
{{Keys|C-c C-c}}
+
: Submit modifications and bury the buffer.
save the page on to the website and buries.
+
  
= External Links =
+
; CommandKeys{{C-return|mediawiki-open-page-at-point}}
 +
: Submit modifications and bury the buffer.
  
 +
; CommandKeys{{M-g|mediawiki-reload}}
 +
: Reload a page
  
 +
= Project Page =
 +
* [[https://launchpad.net/mediawiki-el Mediawiki.el page on Launchpad]]
  
[[Category:Wikemacs]]
+
[[Category:Wikemacs Contributor]]
 
[[Category:Markup Modes]]
 
[[Category:Markup Modes]]

Revision as of 00:49, 29 March 2012

Mediawiki.el is a package to help add content to any mediawiki site. You can use this library to browse and submit content to WikEmacs. It comes with a Major Mode to support editing Mediawiki markup.

Basic setup

Install mediawiki.el.

Just call M-x el-get-install RET mediawiki

CommandTemplate:Load-library RET mediawiki RET
Load the library. This can be skipped if you have have

SnippetTemplate:(require 'mediawiki) to your Template:InitFile.

CustomizeVariable{{mediawiki-site-alist}
Configure as follows and save your settings
URL: http://wikemacs.org/w/
Username: InCognito
Password: s!cr!t
First Page: Main Page
You can provide "Username" and "Password" in your .authinfo file. home directory.

Make submissions

CommandTemplate:Mediawiki-site
Choose a site for the current session.
CommandKeysTemplate:Mediawiki-open
Open a page. To edit the main page, type "Main Page". Make your edits.
CommandKeysTemplate:C-x C-s
Submit your modifications.

Helpful Keybindings

CommandKeysTemplate:C-c
Submit modifications and bury the buffer.
CommandKeysTemplate:C-return
Submit modifications and bury the buffer.
CommandKeysTemplate:M-g
Reload a page

Project Page