Template talk:Passive skill link: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
>Illviljan
No edit summary
>OmegaK2
No edit summary
Line 7: Line 7:
:::::: No, but you can join the tables together. When {{tlx|Passive skill box}} creates the infobox it has gotten the passive skill ids, so then it can store them in the cargo table ''main_pages''. Then {{tlx|Passive skill link}} simply joins ''passive_skills'' and ''main_pages'' together via the id to get correct main page link. --[[User:Illviljan|Illviljan]] ([[User talk:Illviljan|talk]]) 19:30, 6 June 2019 (UTC)
:::::: No, but you can join the tables together. When {{tlx|Passive skill box}} creates the infobox it has gotten the passive skill ids, so then it can store them in the cargo table ''main_pages''. Then {{tlx|Passive skill link}} simply joins ''passive_skills'' and ''main_pages'' together via the id to get correct main page link. --[[User:Illviljan|Illviljan]] ([[User talk:Illviljan|talk]]) 19:30, 6 June 2019 (UTC)
::::::: Implemented this method. Looks like it's linking to the right pages, but I haven't checked every combination. Let us know if there's something wrong. --[[User:Illviljan|Illviljan]] ([[User talk:Illviljan|talk]]) 10:00, 29 June 2019 (UTC)
::::::: Implemented this method. Looks like it's linking to the right pages, but I haven't checked every combination. Let us know if there's something wrong. --[[User:Illviljan|Illviljan]] ([[User talk:Illviljan|talk]]) 10:00, 29 June 2019 (UTC)
:::::::: I don't really like this since it not only duplicates where the main_page can be put, it also makes it unclear which one to use if a skill box is used on multiple pages --[[User:OmegaK2|OmegaK2]] ([[User_talk:OmegaK2|t]]|[[Special:Contributions/OmegaK2|c]]) 16:53, 29 June 2019 (UTC)

Revision as of 16:53, 29 June 2019

Is there a way to change the link of the skill? All the Ascendant skills link to the class and not the passive skill and I don't know how to fix it.--ThemJohns (talk) 13:44, 13 March 2019 (UTC)

Add main_page parameter to the passive skill page. See also Template:Passive skill --OmegaK2 (t|c) 18:06, 13 March 2019 (UTC)
The function is still broken. Also, is there a way for the query to link to the proper skill page and not just create a link of the skill name? --ThemJohns (talk) 14:21, 5 June 2019 (UTC)
It only wasn't showing the correct link above the icon, icon link was correct. I fixed the former. You still need to add main_page parameter to the passive pages for the ascendant, it isn't magically happening byitself --OmegaK2 (t|c) 06:58, 6 June 2019 (UTC)
We have already defined the main page when we created the page and added the passive skill box to it though. How about if we add a main_pages cargo table that {{Passive skill box}} would store to? This would remove the need to also find the technical page(s) and edit those. --Illviljan (talk) 07:34, 6 June 2019 (UTC)
{{Passive skill box}} doesn't store any data, it queries it from the data page. We can't modify specific rows from other pages with cargo --OmegaK2 (t|c) 08:34, 6 June 2019 (UTC)
No, but you can join the tables together. When {{Passive skill box}} creates the infobox it has gotten the passive skill ids, so then it can store them in the cargo table main_pages. Then {{Passive skill link}} simply joins passive_skills and main_pages together via the id to get correct main page link. --Illviljan (talk) 19:30, 6 June 2019 (UTC)
Implemented this method. Looks like it's linking to the right pages, but I haven't checked every combination. Let us know if there's something wrong. --Illviljan (talk) 10:00, 29 June 2019 (UTC)
I don't really like this since it not only duplicates where the main_page can be put, it also makes it unclear which one to use if a skill box is used on multiple pages --OmegaK2 (t|c) 16:53, 29 June 2019 (UTC)