Page 1 of 2

[Mod] Wiki Mod [wiki]

Posted: Sun Jul 07, 2013 19:20
by kaeza
Another random mod by me.

This mod provides a "Wiki" block. You can create and edit pages with it.

The pages are saved as <worldpath>/wiki/<pagename>. All spaces in the page name are converted to underscores, and all other characters not in [A-Za-z0-9-] are converted to hex notation %XX.

The text can contain hyperlinks in the form of [link text] to other pages. Such links are added at the right of the form. The layout supports up to 30 links.

You can craft a "Wiki block" by putting 9 bookshelves in the crafting grid.

Only players with the "wiki" priv can create/edit pages.

Remember to rename the directory to just 'wiki' after installing!

License:
BSD 2 Clause

Dependencies:
default

Links:
Download: ZIP, TGZ
Browse code on GitHub

Known Problems:
Textareas in Minetest have no scrollbars. Use the keyboard or mouse to scroll.

Image

Posted: Sun Jul 07, 2013 19:24
by Dan Duncombe
Awesome! This could be useful on servers instead of having 2,000,000 signs around the spawn.

Posted: Sun Jul 07, 2013 19:35
by Jordach
Are the wiki blocks lockable and only modifiable by admins?

EDIT: Just saw. YAY!

Posted: Sun Jul 07, 2013 19:55
by Tedypig
Very nice! +10000000

Posted: Sun Jul 07, 2013 20:53
by Sokomine
Sounds like a very intresting idea. On almost all servers, it would be helpful to have a very simple ingame message board where players could announce their new buildings, ask for protection, make trade offers etc. A wiki is usually slightly diffrent. I wonder if it could be used for this purpose?

Posted: Sun Jul 07, 2013 21:49
by kaeza
Sokomine wrote:Sounds like a very intresting idea. On almost all servers, it would be helpful to have a very simple ingame message board where players could announce their new buildings, ask for protection, make trade offers etc. A wiki is usually slightly diffrent. I wonder if it could be used for this purpose?
I'm currently expanding it to be suitable to that purpose. Expect MTBB soon :P

Posted: Sun Jul 07, 2013 23:27
by Mossmanikin
Very cool, this could also be used for an adventure/rpg map for a story.

Posted: Mon Jul 08, 2013 00:15
by kaeza
Update!
- Separate into several files.
- Add support for "user space" pages (only writable by owner), plus a single "private" page.
- Extend a bit in-mod docs.

Posted: Mon Jul 08, 2013 03:23
by kaeza
Moar Updates!

Added plugin support, and a rudimentary Mailing List.

Posted: Mon Jul 08, 2013 04:43
by Inocudom
I like this mod. If you wanted to, you could make it so that it resembles a special kind of bookcase (or give your computers a similar purpose.)

Posted: Mon Jul 08, 2013 10:54
by webdesigner97
Spunds interesting! I'll try it out soon :)

Posted: Mon Jul 08, 2013 11:59
by Thermal_Shock
This has huge potential. I'm looking forward to seeing all the ways it'll be used.

Posted: Mon Jul 08, 2013 12:31
by rubenwardy
I am hoping the players can edit any page of the wiki, like they can do on the internet.

Posted: Mon Jul 08, 2013 16:09
by Inocudom
rubenwardy wrote:I am hoping the players can edit any page of the wiki, like they can do on the internet.
I am thinking that there can be public pages that anyone can edit, and private pages that can only be edited by their creators.

Posted: Mon Jul 08, 2013 21:23
by kaeza
Inocudom wrote:
rubenwardy wrote:I am hoping the players can edit any page of the wiki, like they can do on the internet.
I am thinking that there can be public pages that anyone can edit, and private pages that can only be edited by their creators.
There are five kinds of pages:

Public pages can be read and edited by anyone. They are accessed by writing an unadorned name in the address bar. For example "Main".

User public pages can be read by anyone, but only edited by the owner. Each user can only have 9 publlic pages, numbered 1-9. These are accessed either as ":<n>" for your personal pages, or as ":<user>:<n>" for a specific user. For example, ":4" or ":john:9".

User private page can only be read/edited by the owner. Each user has a single private page which is accessed as ":0".

Some special page names are used internally for messages and the help system. These begin with '.' are always read-only. For example, type ".Help Index" (w/o quotes) in the name field and click "Go".

Plugins can register their own pages. For example, go to "/ml/Recent" to see the Mailing List plugin.

Posted: Mon Jul 08, 2013 21:33
by prof-turbo
Not a Pokedex.... A Minedex!

Posted: Tue Jul 09, 2013 05:47
by kaeza
Update!

- Fixed positioning of link buttons
- Added profile page for users (at ":profile" or ":<username>:profile").
- Added links in mailing list posts.
- Added ".My Pages" internal page with links to your personal pages and profile.

Posted: Tue Aug 20, 2013 22:39
by kaeza
*BUMP*

Added some clarifications and a few more links to the help pages, and restructured code a bit.

Posted: Wed Aug 21, 2013 01:13
by Inocudom
Are you still planning to have this mod and the computers mod work with each other? Maybe even combine them into one mod?

Posted: Wed Aug 21, 2013 12:16
by kaeza
Inocudom wrote:Are you still planning to have this mod and the computers mod work with each other? Maybe even combine them into one mod?
Maybe.
Pull requests are welcome ;)

Posted: Sat Aug 24, 2013 04:02
by tinoesroho
Ah, so it was Irrlicht causing a crash. $##@ Irrlicht! I wound up borrowing code from the early computers, and combined it with the Wiki for a cool look.

Posted: Sat Aug 24, 2013 18:36
by nikminers
How do I get the baby tower back in the mod? I don't want to use an old version.

Posted: Tue Aug 27, 2013 03:21
by tinoesroho
Here's my take on Kaeza's wiki code. Simply dropped in textures and replaced... well, inserted the nodebox. http://www.filedropper.com/wiki

Posted: Fri Aug 30, 2013 17:46
by kaeza

Re: [Mod] Wiki Mod [wiki]

Posted: Tue Feb 09, 2016 16:20
by im-poke
I would like to change it into a internet mod.