Final Fantasy Wiki
FFWiki forum logo.png
Forums: Index > Rin's Travel Agency > Archive > Final Fantasy link template

I already know that "[[Sector 5 Slum (Final Fantasy VII field)|]]" creates a link that links to Sector 5 Slum (Final Fantasy VII field) and displays "Sector 5 Slum". I still want to add a link template that lets me do the same thing by typing "{{ff|Sector 5 Slum|VII field}}". This template would let editors type the shorter "ff" instead of "Final Fantasy". Additionally, it would not automatically get replaced with "[[Sector 5 Slum (Final Fantasy VII field)|Sector 5 Slum]]" when saving an edit, so using the template would make pages slightly smaller. an_awsome_person (talk, contribs) 23:44, 10 January 2022 (UTC)

While you can do such a thing by editing Template:ff, I'm concerned about some technical issues:
  • I'm not quite sure how it would work. What would happen for the pages with tags that aren't of the form "(Final Fantasy [roman numeral] [type])"?
  • When one renames a page, they have to (either by hand or by using Intangir Bot) go through all the pages that link to that page and search for every possible way that a link to X could be constructed. Every link template makes this process more complicated: this is why our only link templates used in practice are {{LA}} and {{SL}}.
  • It would not make the page shorter except in the most superficial sense that the number of wikitext bytes would decrease slightly. For example this would not affect load time meaningfully.
Anyways, I'm not opposed to such a template (though it should probably be called {{FFL}} or something like that), and users tend to be free to make whatever templates they need for their work, but you should be aware of the technical complications. Cat (meowhunt) 23:59, 10 January 2022 (UTC)
It actually would affect load times: negatively. This increases the amount of work the template parser does by increasing the number of templates it has to parse. Pages also have a limit of how many templates that can be used, and proliferating a template like this would waste that limit. Given that a template like this exists purely for editor convenience, I do not think it is a good use of resources.
I am opposed to this template, for the same reason I think {{w}} and the like should be phased out and only used for substitution. It adds to the template limit, screws over portability, and has no reader benefit.
If we wanted to create it solely as a substitute template, Module:Codename/data already includes the tag for each game, so it wouldn't be too hard.--Magicite-ffvi-ios.png Technobliterator TC 14:13, 11 January 2022 (UTC)
Do we actually have data on how much {{w}} actually affects load times, especially when compared to our (much more complicated and Lua script-dependent) templates? Worrying about the load time on that template specifically just seems like overoptimization. Cat (meowhunt) 15:04, 11 January 2022 (UTC)
It's not so much the actual amount the load times are implemented as it is the reason for it. Even if the load time is minimal, it's still not worth it for a template that solely exists for editor convenience. The wiki exists for readers, not editors. As such, the convenience of having slightly fewer characters to type is not worth adding to template limit or load time, irrespective of amount.--Magicite-ffvi-ios.png Technobliterator TC 15:53, 11 January 2022 (UTC)
How do I use Module:Codename/data? Its documentation page still doesn't exist. an_awsome_person (talk, contribs) 17:10, 11 January 2022 (UTC)

If documentation for the codename module existed it would be at Module:Codename/doc but that doesn't seem to exist either... Anyways, to call up a release ("rel")'s information you would write {{#invoke:Codename|rel|[release code]|[data code]}}. For example {{#invoke:Codename|rel|FFXIV|title}} returns "Final Fantasy XIV" because if you go to Module:Codename/data and looked in the "rel" table, and the "FFXIV" subtable, you would see that "title" is assigned to "Final Fantasy XIV". Cat (meowhunt) 19:54, 11 January 2022 (UTC)

Okay thanks. an_awsome_person (talk, contribs) 21:24, 12 January 2022 (UTC)