Somebody needs to fix the vassalengine.org/wiki/Template:ModuleFile. No matter what you enter for the “size” field, it always shows “0”. I can’t believe someone hasn’t at least tried to fix this before.
Is there a way to test this and see if it would work? It can’t get any worse than it is now. If this won’t work, please leave some suggestions. This seems like it should work, since it would act the same way as the date entry. In my opinion, the code that is causing this problem is:
{{PAGESIZE:{{{filename}}}}}
BTW, if it’s just my computer, please let me know.
Somebody needs to fix the vassalengine.org/wiki/Template:ModuleFile[1]. No matter what
you enter for the “size” field, it always shows “0”. I can’t believe
someone hasn’t at least tried to fix this before.
I think what your change will do is print the filename again in the
size column if no size is explicitly given. This is wrong, because
you’re not supposed to enter anything for the size field—it’s intended
to be filled in automatically from the actual size of the file.
I mean, obviously the automatic part isn’t working, so let’s make it manual.
The code I gave above uses the same format as the date function. If I don’t enter a date, then it doesn’t show the filename again. Why would it with this? I’m not very advanced with wiki coding, but the general idea is similar to other codes. Please explain to me why this wouldn’t work, that might help.
NOTE: There was a mistake in my code, I had meant to say size|, not filename|. Sorry about that. Please sisregard what I had said about that in my last post.
Alright, so I used the code above, and it worked. As long as you don’t mind manually entering the file size, this should work fine. Please see the test page.
Again, not very advanced, but isn’t this the basic code that we would need? It will show the file size if entered (before the |) and calculate it if it wasn’t (after the |).
I have no idea if it really would do that, but it seems like it would since it follows the same syntax as the compatibility entry. I’m sure that the size code I entered is wrong, though, because the file isn’t an image. I have no idea how that works. Please correct my coding.