Author Topic: beta nwnlexicon  (Read 445 times)

Legacy_acomputerdood

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: +0/-0
beta nwnlexicon
« on: August 21, 2012, 11:12:24 am »


               i'm not sure if people are ignoring the lexicon sticky link at the top of the forums or if nobody has any input.  either way, the site owner installed a wiki for me and i populated it with all the old lexicon data.  in about a week, if there are no complaints, we'll move it from the beta to official.

http://beta.nwnlexicon.com 
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
beta nwnlexicon
« Reply #1 on: August 21, 2012, 11:18:46 am »


               question:  Will It break all the links I have that point people to help in the lexicon.
               
               

               
            

Legacy_acomputerdood

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: +0/-0
beta nwnlexicon
« Reply #2 on: August 21, 2012, 11:40:40 am »


               

Lightfoot8 wrote...

question:  Will It break all the links I have that point people to help in the lexicon.


awwww crapola.
               
               

               
            

Legacy_acomputerdood

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: +0/-0
beta nwnlexicon
« Reply #3 on: August 21, 2012, 01:01:08 pm »


               well, i can use a rewrite module to translate the old link's request into a search page in the wiki.  for example:

clicking on the link "http://www.nwnlexico...randomdoor.html" would take you to the wiki page "http://beta.nwnlexic...closerandomdoor".  the desired page would bet result #1 in the search results.

i think there's a way to make the wiki take you directly to the first page in the results, but i can't figure it out.

that would be simple to implement, but if that's not acceptable, i can create a wiki page for "function.animactioncloserandomdoor.html" that will redirect you the appropriate page as well.  will be a little bit of work, but i'm pretty sure i can do it.


are either of these solutions acceptable?  it never occurred to me that this would be a problem, and i agree that it's pretty much a showstopper.  the first solution is simple but it's not quite ideal.  the second one is more seemless and i'm pretty sure it will work.

or there's always the option of scrapping the wiki effort and sticking with static html pages.  though we'd be back to square one with not being able to update them if there's no team willing to do it (for ever and ever no less).
               
               

               


                     Modifié par acomputerdood, 21 août 2012 - 12:03 .
                     
                  


            

Legacy_acomputerdood

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: +0/-0
beta nwnlexicon
« Reply #4 on: August 21, 2012, 01:25:03 pm »


               was just testing the 2nd option, and the redirect pages work quite well for links to functions, but not so much for any other page in the lexicon.

and it looks like the extra redirect pages are muddling up the search results.  i think our options are:

- stick with old links taking the user to a search page and trusting they'll click on the first result
- stick with old links taking the user to a search page and hoping we can find a way to automatically take them to the first result
- abandon the wiki
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
beta nwnlexicon
« Reply #5 on: August 21, 2012, 02:31:13 pm »


               this wiki is going to be great

thanks

I say lets transition over
               
               

               


                     Modifié par henesua, 21 août 2012 - 01:31 .
                     
                  


            

Legacy_acomputerdood

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: +0/-0
beta nwnlexicon
« Reply #6 on: August 21, 2012, 03:48:23 pm »


               

acomputerdood wrote...

was just testing the 2nd option, and the redirect pages work quite well for links to functions, but not so much for any other page in the lexicon.

and it looks like the extra redirect pages are muddling up the search results.  i think our options are:


scratch all that.  once i got rolling on how to create the redirection pages, it went pretty smoothly.

the new lexicon wiki should be able to accept the old staticly linked html pages, rewrite them into the wiki request, and then redirect itself to the proper wiki article.

i'd say 99% of the pages will be working correctly.  for completeness's sake, i'll likely go through and hand check the more troublesome ones.

and it turns out that properly formatted redirection pages won't show up in the search, so there's no worry about getting funny results.

unfortunately, i can't truly demonstrate this redirection process Lightfoot8, you'll just have to trust me that it will be seemless '<img'>

it would go something like this, though:

OLD LINK: http://www.nwnlexico...tionattack.html
rewritten to: http://beta.nwnlexic...tionattack.html

obviously there was a bit of hand waving because i don't have access to "www.nwnlexicon.com" to properly configure the legacy rewrites over to "beta.nwnlexicon.com", but once the transition is made then i can fix that up.
               
               

               


                     Modifié par acomputerdood, 21 août 2012 - 02:57 .
                     
                  


            

Legacy_Carcerian

  • Hero Member
  • *****
  • Posts: 1655
  • Karma: +0/-0
beta nwnlexicon
« Reply #7 on: August 22, 2012, 07:27:47 am »


               Awesome '<img'>
               
               

               
            

Legacy_acomputerdood

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: +0/-0
beta nwnlexicon
« Reply #8 on: August 23, 2012, 12:35:22 pm »


               just a quick update.  the best i could do to demonstrate would be to take the old static address:

http://www.nwnlexico...tionattack.html

and then manually change it to:

http:/beta.nwnlexicon.com/compiled/function.actionattack.html

then the rewrite rule will get you to the wiki.
               
               

               
            

Legacy_acomputerdood

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: +0/-0
beta nwnlexicon
« Reply #9 on: August 30, 2012, 02:29:48 am »


               alert readers will notice that the official lexicon has been updated to the 1.69 wiki.  enjoy!

Squatting Monk did an excellent job creating some "<nwscript>" tags you can use on the wiki.  they're like the "code" blocks, but they do automatic syntax highlighting and link relevant functions and keywords to their appropriate pages.

i'll likely be following the sticky thread moreso than this one from now on.
               
               

               
            

Legacy_GhostOfGod

  • Hero Member
  • *****
  • Posts: 1490
  • Karma: +0/-0
beta nwnlexicon
« Reply #10 on: September 03, 2012, 06:52:09 am »


               I'm liking it a lot.