This is a wiki for a reason. Anyone can contribute. If you see something that is inaccurate or can be improved, don't ask that it be fixed--just improve it.
[ Disclaimer, Create new user --- Wiki markup help, Install P99 ]

Difference between revisions of "Dynamic Zone Lists"

From Project 1999 Wiki
Jump to: navigation, search
(Created page with "Dynamic Zone Lists are a special feature of the Project 1999 wiki which displays tables of information at the bottom of each zone page. Those pa...")
 
(How They Break)
Line 14: Line 14:
  
 
The only way to fix the page is to go through all Halas NPC pages, and check them for recent edits (on their History page).  If they have any, check them carefully for code that could be invalid, such as opening brackets without matching closing brackets, or foreign language characters, or anything else out of the ordinary.
 
The only way to fix the page is to go through all Halas NPC pages, and check them for recent edits (on their History page).  If they have any, check them carefully for code that could be invalid, such as opening brackets without matching closing brackets, or foreign language characters, or anything else out of the ordinary.
 +
 +
== Helper Bookmarklet ==
 +
 +
Clicking through every linked page is a real hassle, but the following bookmarklet can make it ''slightly'' easier.
 +
 +
To use it, simply copy/paste the code into your browser's URL bar (or, to re-use it, make a bookmark and replace the location with that code).  When you use it, it will make every link on the page take you directly to the page's history, instead of the main page.  To disable the code, simply refresh the page.
 +
 +
'''Regular version:
 +
'''
 +
<code>[FONT="Courier New"]javascript:$('a').click(e=>{window.location = 'https://wiki.project1999.com/index.php?action=history&title=' +e.target.href.split('/').at(-1); e.preventDefault()})[/FONT]</code>
 +
 +
'''Alternate version that opens links in a new tab:'''
 +
 +
<code>[FONT="Courier New"]javascript:$('a').click(e=>{window.open('https://wiki.project1999.com/index.php?action=history&title=' +e.target.href.split('/').at(-1),'_blank'); e.preventDefault()})[/FONT]</code>

Revision as of 16:07, 17 July 2025

Dynamic Zone Lists are a special feature of the Project 1999 wiki which displays tables of information at the bottom of each zone page. Those pages include data collected from other pages related to those zones: NPCs, quests, or items from that zone.

How They Work

Because they are based on data from a large number of other pages, the dynamic zone tables are not updated immediately when one of those pages changes. Instead, every (other?) night (day?) the wiki updates all of the dynamic zone tables.

This means you may see a lag when you edit a page, before that edit is reflected in the related zone's table.

How They Break

When the code for the dynamic zone lists comes across some "bad code" in any of the related wiki pages, it can corrupt the entire page's table, breaking it. This situation can be frustrating, because while the table will be obviously broken on the zone page, the cause of the problem could be any of the related wiki pages for that zone's category.

For instance, if the NPCs table on the Halas page broke, it could be from code in the A Sled Dog page, the Brin McQuaid page, or any other page that's in the Category:NPCs and the Category:Halas.

The only way to fix the page is to go through all Halas NPC pages, and check them for recent edits (on their History page). If they have any, check them carefully for code that could be invalid, such as opening brackets without matching closing brackets, or foreign language characters, or anything else out of the ordinary.

Helper Bookmarklet

Clicking through every linked page is a real hassle, but the following bookmarklet can make it slightly easier.

To use it, simply copy/paste the code into your browser's URL bar (or, to re-use it, make a bookmark and replace the location with that code). When you use it, it will make every link on the page take you directly to the page's history, instead of the main page. To disable the code, simply refresh the page.

Regular version: [FONT="Courier New"]javascript:$('a').click(e=>{window.location = 'https://wiki.project1999.com/index.php?action=history&title=' +e.target.href.split('/').at(-1); e.preventDefault()})[/FONT]

Alternate version that opens links in a new tab:

[FONT="Courier New"]javascript:$('a').click(e=>{window.open('https://wiki.project1999.com/index.php?action=history&title=' +e.target.href.split('/').at(-1),'_blank'); e.preventDefault()})[/FONT]