Jump to content

[Solved] Data templates and localization


Yoha

Recommended Posts

Hi.

I have been having a look the source for the data displayed on the wiki. Apparently, language-independent data is externalized to a specific page. For instance, Rockomax 48-7S and Rockomax_48-7S/ja both use data from Rockomax 48-7S/Box by simply including "{{:Rockomax 48-7S/Box}}". Similarly, Kerbin/fr and Kerbin/de both use data from Kerbin/Data by including "{{:Kerbin/Data}}". So far, so good.

However, it appears that Kerbin directly includes "{{Infobox/Body}}" instead and that Template:Infobox/Body will look for Kerbin/Param and include its data. Note that Template:Infobox/Body is also the template for Kerbin/Data.

This looks awfully inconsistent and I am trying to get my head around this. Hidden inclusion of */Param is more recent and */Param seeem to hold more information so this may be the new way to go. However, nothing have been changed for parts. Should we use plain direct inclusion with "{{*/Data}}" which looks the most readable, should we switch to obfuscated indirect "{{*/Param}}" for some reason, or should I give up on the wiki altogether?

Edited by Yoha
Solved
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...