User talk:1x2white: Difference between revisions

From IdleOn MMO Wiki
 
Line 20: Line 20:


Thanks for your help in updating the wiki, but in the future try to avoid duplicating data in this way. -[[User:Kiokurashi|Kiokurashi]] ([[User talk:Kiokurashi|talk]])
Thanks for your help in updating the wiki, but in the future try to avoid duplicating data in this way. -[[User:Kiokurashi|Kiokurashi]] ([[User talk:Kiokurashi|talk]])
== Is it really duplication? ==
(Not sure if this is the correct way to reply, but I couldn't find a button for that as Google suggested.)
When looking at the source it appears to me the information is not actually duplicated, it's a lookup of that information which is somewhere else.
e.g. (pretty much looks like SQL to me in this specific part)
<pre>
==Premium Helmets==
...
|where=type="Premium Helmet" AND NOT Source LIKE "%Unobtainable%" AND NOT Source LIKE "%Retired%"
...
</pre>
Maybe I'm just not undestanding this part completely.
Of cource a redirect would be more performant, that's why I also switched to that aproach with the newest page(s).
--[[User:1x2white|1x2white]] ([[User talk:1x2white|talk]]) 13:26, 28 February 2023 (UTC)

Revision as of 13:26, 28 February 2023

You should avoid duplicating information when possible.

Hello there. Saw that you made some pages for Capes, Chat Rings, ect. to show the tables of all of those items. The problem is that you duplicated the data where instead you could use a redirect. The reason you'd want to do this is to avoid needing to maintain multiple pages for the same exact data. For example, if you wanted to have a page called Premium Hat that links to the existing Premium Armor page then you'd create the Premium Hat page with the following line:

#REDIRECT [[Premium Armor]]

Also if you wanted to redirect to a specific section (Ex: Capes on the Premium Armor page) then you'd put:

#REDIRECT [[Premium_Armor#Capes]]

A secret trick I've learned is that you can also redirect to specific tabs on pages. For example with the Circle Obols:

#REDIRECT [[Obols#Circle_Obols-4]]

This one is a little different than previous ones. It's possible because of how the tabbing system works, but basically the link will be PageName#TabName-N where N is the number, starting from zero, of the tab group. On the Obols page the "Obols by Shape" tab group is the 5th one listed So 5-1=4. You can also easily get what the link is by clicking on the tab and then reading the URL afterwards.

I do see that you descoverd this by the time you go to making the Monster Drops page, and I already fixed the other pages you made so you don't have to worry about fixing those.

Thanks for your help in updating the wiki, but in the future try to avoid duplicating data in this way. -Kiokurashi (talk)

Is it really duplication?

(Not sure if this is the correct way to reply, but I couldn't find a button for that as Google suggested.)

When looking at the source it appears to me the information is not actually duplicated, it's a lookup of that information which is somewhere else.

e.g. (pretty much looks like SQL to me in this specific part)

==Premium Helmets==
...
|where=type="Premium Helmet" AND NOT Source LIKE "%Unobtainable%" AND NOT Source LIKE "%Retired%"
...

Maybe I'm just not undestanding this part completely.

Of cource a redirect would be more performant, that's why I also switched to that aproach with the newest page(s).

--1x2white (talk) 13:26, 28 February 2023 (UTC)