[Mod] Wiki Mod [wiki]

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

[Mod] Wiki Mod [wiki]

by kaeza » Sun Jul 07, 2013 19:20

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 | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

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

by Dan Duncombe » Sun Jul 07, 2013 19:24

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.
 

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

by Jordach » Sun Jul 07, 2013 19:35

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: 284
Joined: Tue Mar 05, 2013 12:33
Location: Largo, FL, USA
IRC: Piggybear87
In-game: Piggybear

by Tedypig » Sun Jul 07, 2013 19:55

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

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

by Sokomine » Sun Jul 07, 2013 20:53

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: 2158
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Sun Jul 07, 2013 21:49

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 | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

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

by Mossmanikin » Sun Jul 07, 2013 23:27

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: 2158
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Mon Jul 08, 2013 00:15

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 | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

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

by kaeza » Mon Jul 08, 2013 03:23

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 | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

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

by Inocudom » Mon Jul 08, 2013 04:43

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.
Recovering from the abomination I am. Clocking time for Garry's Mod I am too.
 

User avatar
webdesigner97
Member
 
Posts: 1323
Joined: Mon Jul 30, 2012 19:16
Location: Bergisch Gladbach, Germany
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97
 

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

by Thermal_Shock » Mon Jul 08, 2013 11:59

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

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

by rubenwardy » Mon Jul 08, 2013 12:31

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

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

by Inocudom » Mon Jul 08, 2013 16:09

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.
Recovering from the abomination I am. Clocking time for Garry's Mod I am too.
 

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

by kaeza » Mon Jul 08, 2013 21:23

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 | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

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

by prof-turbo » Mon Jul 08, 2013 21:33

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

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

by kaeza » Tue Jul 09, 2013 05:47

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 | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

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

by kaeza » Tue Aug 20, 2013 22:39

*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 | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

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

by Inocudom » Wed Aug 21, 2013 01:13

Are you still planning to have this mod and the computers mod work with each other? Maybe even combine them into one mod?
Recovering from the abomination I am. Clocking time for Garry's Mod I am too.
 

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

by kaeza » Wed Aug 21, 2013 12:16

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 | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

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

by tinoesroho » Sat Aug 24, 2013 04:02

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/
 

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

by nikminers » Sat Aug 24, 2013 18:36

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

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

by tinoesroho » Tue Aug 27, 2013 03:21

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: 2158
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Fri Aug 30, 2013 17:46

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 | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

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

Re: [Mod] Wiki Mod [wiki]

by im-poke » Tue Feb 09, 2016 16:20

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

Next

Return to WIP Mods



Who is online

Users browsing this forum: Exabot [Bot], Teslov and 4 guests