Forum/wiki integration
Forum/wiki integration
It's clear that LifeWiki and LifeForum are two important prongs of the current CGOL community, but I suspect they could be closer to each other yet.
An initial suggestion: would it be possible to create here a [wiki][/wiki] tag that would automatically generate links to LifeWiki in forum posts? I.e. [wiki]foo[/wiki] would generate the same output as [url=http://conwaylife.com/wiki/foo]foo[/url].
An initial suggestion: would it be possible to create here a [wiki][/wiki] tag that would automatically generate links to LifeWiki in forum posts? I.e. [wiki]foo[/wiki] would generate the same output as [url=http://conwaylife.com/wiki/foo]foo[/url].
- SuperSupermario24
- Posts: 121
- Joined: July 22nd, 2014, 12:59 pm
- Location: Within the infinite expanses of the Life universe
Re: Forum/wiki integration
This could be useful.
Code: Select all
bobo2b3o2b2o2bo3bobo$obobobo3bo2bobo3bobo$obobob2o2bo2bobo3bobo$o3bobo3bo2bobobobo$o3bob3o2b2o3bobo2bo!
- Nathaniel
- Site Admin
- Posts: 862
- Joined: December 10th, 2008, 3:48 pm
- Location: New Brunswick, Canada
- Contact:
Re: Forum/wiki integration
Done! Let me know if it does/doesn't work as you think it should.
Re: Forum/wiki integration
A simple test on the wiki integration:
Page exists:
glider
Glider
Glider (disambiguation)
Richard K. Guy
John Conway
Sawtooth 201
Page isn't made yet (red link):
Tanner Jacobi
Adam P. Goucher
Page wasn't expected to exist?
Dongook Lee(My apologies>.<)
Rubbish
John_Conway
Richard_K. Guy
adamp's-exposition
aquarium
Maybe the underscores are prohibited in LifeWiki page titles so there aren't any problems?
Entering John_Conway, for example, in the search box leads to John Conway with no redirections.
Page exists:
glider
Glider
Glider (disambiguation)
Richard K. Guy
John Conway
Sawtooth 201
Page isn't made yet (red link):
Tanner Jacobi
Adam P. Goucher
Page wasn't expected to exist?
Dongook Lee(My apologies>.<)
Rubbish
John_Conway
Richard_K. Guy
adamp's-exposition
aquarium
Maybe the underscores are prohibited in LifeWiki page titles so there aren't any problems?
Entering John_Conway, for example, in the search box leads to John Conway with no redirections.
Last edited by Scorbie on December 13th, 2015, 7:59 pm, edited 1 time in total.
- Nathaniel
- Site Admin
- Posts: 862
- Joined: December 10th, 2008, 3:48 pm
- Location: New Brunswick, Canada
- Contact:
Re: Forum/wiki integration
Yeah, this is one of the "quirks" of the MediaWiki software: it treats underscores and spaces as *identical* in page titles and URLs. It doesn't know the difference between the page "John_Conway" and the page "John Conway", and there's no way to make it see a difference.Scorbie wrote:Maybe the underscores are prohibited in LifeWiki page titles so there aren't any problems?
Entering John_Conway, for example, in the search box leads to John Conway with no redirections.
Ah, this is one of those annoying cases I hadn't considered. I'm not sure there's a (moderately simple) way to get phpBB to parse parentheses correctly to make wiki links like this work.Scorbie wrote:Glider (disambiguation)
- SuperSupermario24
- Posts: 121
- Joined: July 22nd, 2014, 12:59 pm
- Location: Within the infinite expanses of the Life universe
Re: Forum/wiki integration
I wonder if it would be possible to change the name of a link (as in, something like "the most common spaceship" to display "the most common spaceship") instead of being stuck with the name of the article.
Code: Select all
bobo2b3o2b2o2bo3bobo$obobobo3bo2bobo3bobo$obobob2o2bo2bobo3bobo$o3bobo3bo2bobobobo$o3bob3o2b2o3bobo2bo!
Re: Forum/wiki integration
@Saka Yikes. Capitalization seems important. honey thieves looks okay.
@Nathaniel quotation marks also don't seem to be working, which is pretry big as we cannot refer to a lot of oscs.: Coe's p8
Dashes work: sixty-nine
Is there any way to not escape these chars? Like the code tags?
@Nathaniel quotation marks also don't seem to be working, which is pretry big as we cannot refer to a lot of oscs.: Coe's p8
Dashes work: sixty-nine
Is there any way to not escape these chars? Like the code tags?
Re: Forum/wiki integration
Strange, the title of the page is Honey thieves, maybe we should redirect Honey Thieves to Honey thieves.Scorbie wrote:@Saka Yikes. Capitalization seems important. honey thieves looks okay.
Check:
Honey thieves
honey Thieves<---Not working
EDIT:That's strange, it redirects honey Thieves to Honey Thieves!
Re: Forum/wiki integration
Ok, I redirected Honey Thieves to Honey thieves
- Nathaniel
- Site Admin
- Posts: 862
- Joined: December 10th, 2008, 3:48 pm
- Location: New Brunswick, Canada
- Contact:
Re: Forum/wiki integration
Yeah, this is another quirk of MediaWiki. The first letter of a page name is *always* capitalized no matter what, so it will automatically move any query for "page title" to "Page title". However, capitalization *after* the first letter actually matters. In these cases, I recommend just creating a redirect (as Saka did -- thanks!).Saka wrote:Strange, the title of the page is Honey thieves, maybe we should redirect Honey Thieves to Honey thieves.Scorbie wrote:@Saka Yikes. Capitalization seems important. honey thieves looks okay.
EDIT:That's strange, it redirects honey Thieves to Honey Thieves!
Edit: And things like quotes should now work in wiki tags. Coe's p8. It won't work for posts that have been made prior to me making this change though.