LotR TCG Wiki → Card Sets:  All 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 → Forums:  TLHH CC

Author Topic: Wiki Backend - Phase Two Plans  (Read 1022 times)

0 Members and 1 Guest are viewing this topic.

May 01, 2012, 08:15:25 AM
Read 1022 times

Kralik

  • Guest
Wiki Backend - Phase Two Plans
« on: May 01, 2012, 08:15:25 AM »
Phase One was getting the card database to run off of the wiki. However, the original bits of HTML are still (mostly) intact and called manually by a set of code in the main template.

Phase Two will be to wikify all of the HTML and integrate it directly into each of the card pages. My plan is to limit editing of the card data, either by making it read-only or accessibly only to moderators etc. The reasons for this are twofold:

1) The card data is "99%" accurate and doesn't need to be edited often.
2) I need to be able to add cards, regenerate set lists and change templates without overwriting any of the user-made wiki content. The easiest way to do this is to keep the card/set "data" and "wiki" sections separate.

Once I figure out the best way to do this (possibly using the "include" plugin or some manual call), all of the card text will be able to tie into the Autolink and let you jump from card page to page using keywords in the text. You would also be able to click on things like "Strength" or "Vitality" and get an overview of what that means. I want to retain the ability to copy/paste game text if necessary, so I will put in an exclusion to make sure that cultures and twilight remain as {ROHAN} and {2}, for example. They will still link, but not be displayed as images.

Then I can also ditch the blasted Google Search that doesn't actually work and default to a wiki search that does.
« Last Edit: May 01, 2012, 08:19:34 AM by Kralik »

May 01, 2012, 08:30:19 AM
Reply #1

TelTura

  • *****
  • Information Offline
  • Ranger
  • Administrator
  • Posts: 845
    • Player's Council Discord
Re: Wiki Backend - Phase Two Plans
« Reply #1 on: May 01, 2012, 08:30:19 AM »
Quote
Then I can also ditch the blasted Google Search that doesn't actually work and default to a wiki search that does.

phase two: something something something fix search.  I have no problem with this.
Come join the Player's Council to help us run events, create new cards, and steer the direction of this great game!

Join our Discord here for more information.

May 01, 2012, 07:40:24 PM
Reply #2

Kralik

  • Guest
Re: Wiki Backend - Phase Two Plans
« Reply #2 on: May 01, 2012, 07:40:24 PM »
The first step of Phase Two is done. You'll notice the following changes:

1) The edit button for card pages is now in the lower-right corner. This is only the case for card pages.
2) The wiki data for cards is technically in the cards namespace (or folder). That means that when editing these pages, you'll want to link to other pages in the root folder by prefixing the wiki ID with a colon. Example (but use square brackets): {{:Culture}} Otherwise, if you link to {{Cultures}}, it will try to fetch cards:Cultures.
3) The trace at the top of the page gives much nicer links now. :)

4) Card information is parsed by the Autolink. Yay!

Next up:

* Redo the sets and let them be parsed by the Autolink.
* Add more keywords and such (all common game terms should Autolink).
* Add the wiki search engine.

EDIT: Scratch #2. Organization is nice, but in this case it's a hassle.
« Last Edit: May 01, 2012, 10:11:05 PM by Kralik »

May 02, 2012, 10:49:26 AM
Reply #3

Kralik

  • Guest
Re: Wiki Backend - Phase Two Plans
« Reply #3 on: May 02, 2012, 10:49:26 AM »
Sets are done and on the new system.

May 02, 2012, 11:23:19 AM
Reply #4

TelTura

  • *****
  • Information Offline
  • Ranger
  • Administrator
  • Posts: 845
    • Player's Council Discord
Re: Wiki Backend - Phase Two Plans
« Reply #4 on: May 02, 2012, 11:23:19 AM »
What do you mean?  Like it will parse the name of sets for the autolinker?  FotR seems to fail in that regard...
Come join the Player's Council to help us run events, create new cards, and steer the direction of this great game!

Join our Discord here for more information.

May 02, 2012, 11:30:55 AM
Reply #5

Kralik

  • Guest
Re: Wiki Backend - Phase Two Plans
« Reply #5 on: May 02, 2012, 11:30:55 AM »
I mean:

Set1

It's actually The Fellowship of the Ring, and yes, those are parsed as well.

May 02, 2012, 11:38:04 AM
Reply #6

TelTura

  • *****
  • Information Offline
  • Ranger
  • Administrator
  • Posts: 845
    • Player's Council Discord
Re: Wiki Backend - Phase Two Plans
« Reply #6 on: May 02, 2012, 11:38:04 AM »
Aha, I see.  That clears that up, then.
Come join the Player's Council to help us run events, create new cards, and steer the direction of this great game!

Join our Discord here for more information.

May 02, 2012, 12:25:52 PM
Reply #7

Kralik

  • Guest
Re: Wiki Backend - Phase Two Plans
« Reply #7 on: May 02, 2012, 12:25:52 PM »
Front page is now completely wikified. Next up is search.