[Mod] Wiki Mod [wiki]

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

[Mod] Wiki Mod [wiki]

by kaeza » Post

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
Last edited by kaeza on Mon Jul 08, 2013 00:14, edited 1 time in total.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
Dan Duncombe
Member
Posts: 904
Joined: Thu May 09, 2013 21:11
Location: In the unknown depths of Earth

by Dan Duncombe » Post

Awesome! This could be useful on servers instead of having 2,000,000 signs around the spawn.
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.

Jordach
Member
Posts: 4523
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach
Location: Blender Scene

by Jordach » Post

Are the wiki blocks lockable and only modifiable by admins?

EDIT: Just saw. YAY!
Last edited by Jordach on Sun Jul 07, 2013 19:36, edited 1 time in total.
viewtopic.php?f=10&t=19056 Solar Plains Dev Server

User avatar
Tedypig
Member
Posts: 286
Joined: Tue Mar 05, 2013 12:33
IRC: Piggybear87
In-game: Piggybear
Location: Largo, FL, USA

by Tedypig » Post

Very nice! +10000000
01010100 01100101 01100100 01111001 01110000 01101001 01100111

Sokomine
Member
Posts: 4070
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

by Sokomine » Post

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?
A list of my mods can be found here.

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

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
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
Mossmanikin
Member
Posts: 599
Joined: Sun May 19, 2013 16:26
Location: where we don't speak english.

by Mossmanikin » Post

Very cool, this could also be used for an adventure/rpg map for a story.

Noob 4 life!
My stuff

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

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.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

Moar Updates!

Added plugin support, and a rudimentary Mailing List.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
Inocudom
Member
Posts: 3096
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Post

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.)
Last edited by Inocudom on Mon Jul 08, 2013 04:44, edited 1 time in total.
You can now find my videos at BitChute: https://www.bitchute.com/channel/some_cheeky_jinuskian/

User avatar
webdesigner97
Member
Posts: 1327
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97
Location: Cologne, Germany
Contact:

by webdesigner97 » Post

Spunds interesting! I'll try it out soon :)

User avatar
Thermal_Shock
Member
Posts: 84
Joined: Mon Jun 24, 2013 09:10

by Thermal_Shock » Post

This has huge potential. I'm looking forward to seeing all the ways it'll be used.

User avatar
rubenwardy
Moderator
Posts: 6190
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

by rubenwardy » Post

I am hoping the players can edit any page of the wiki, like they can do on the internet.

User avatar
Inocudom
Member
Posts: 3096
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Post

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.
You can now find my videos at BitChute: https://www.bitchute.com/channel/some_cheeky_jinuskian/

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

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.
Last edited by kaeza on Mon Jul 08, 2013 21:26, edited 1 time in total.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
prof-turbo
Member
Posts: 518
Joined: Mon May 07, 2012 17:02
Location: MinetestForFun or Teeworlds master server list

by prof-turbo » Post

Not a Pokedex.... A Minedex!
You should take a look at http://www.xorhub.com

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

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.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

*BUMP*

Added some clarifications and a few more links to the help pages, and restructured code a bit.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
Inocudom
Member
Posts: 3096
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Post

Are you still planning to have this mod and the computers mod work with each other? Maybe even combine them into one mod?
You can now find my videos at BitChute: https://www.bitchute.com/channel/some_cheeky_jinuskian/

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

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 ;)
Last edited by kaeza on Wed Aug 21, 2013 12:16, edited 1 time in total.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
tinoesroho
Member
Posts: 570
Joined: Fri Feb 17, 2012 21:55
Location: Canada

by tinoesroho » Post

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.
We are what we create.

I tinker and occasionally make (lousy) mods. Currently building an MMO subgame and updating mods. Pirate Party of Canada member. Sporadic author. 21 years old.

My github:
https://github.com/tinoesroho/

User avatar
nikminers
Member
Posts: 29
Joined: Thu Feb 28, 2013 20:31

by nikminers » Post

How do I get the baby tower back in the mod? I don't want to use an old version.

User avatar
tinoesroho
Member
Posts: 570
Joined: Fri Feb 17, 2012 21:55
Location: Canada

by tinoesroho » Post

Here's my take on Kaeza's wiki code. Simply dropped in textures and replaced... well, inserted the nodebox. http://www.filedropper.com/wiki
We are what we create.

I tinker and occasionally make (lousy) mods. Currently building an MMO subgame and updating mods. Pirate Party of Canada member. Sporadic author. 21 years old.

My github:
https://github.com/tinoesroho/

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

im-poke
Member
Posts: 1084
Joined: Sat Apr 18, 2015 15:50
IRC: poke
In-game: poke
Location: Somewhere in the Universe, on a weird planet called Earth/

Re: [Mod] Wiki Mod [wiki]

by im-poke » Post

I would like to change it into a internet mod.
ARE YOU A NYAN CAT?????
--ABJ

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests