Did you just activate something? I'm seeing a lot of:Originally Posted by TosaInu
lines at the top of pages.Code:Warning: Missing argument 2 for wfparserfunctionslanguagegetmagic() in /usr/local/etc/httpd/forums.totalwar.org/wiki/extensions/ParserFunctions/ParserFunctions.php on line 169
Edit-> gone away, whatever it was.
Last edited by drone; 04-03-2008 at 23:17.
The .Org's MTW Reference Guide Wiki - now taking comments, corrections, suggestions, and submissions
If I werent playing games Id be killing small animals at a higher rate than I am now - SFTS
Si je n'étais pas jouer à des jeux que je serais mort de petits animaux à un taux plus élevé que je suis maintenant - Louis VI The Fat
"Why do you hate the extremely limited Spartan version of freedom?" - Lemur
Hello drone,
For if to work, an extension had to be installed, the parser one. It caused some bugs that had to be ironed out.
It should work now. There's just this potential problem:
If you find some template responses are being unexpectedly wrapped in <pre></pre>
I saw this problem in 1.6.10 using the workarounds here and worked around it by making sure all results from ParserFunction callbacks were trimmed. If a result had a leading space character, then that portion of the template would be wrapped in pre tags. Couldn't figure out what part of the parser was doing this. But force trimming might be a potential workaround based on your needs.
The #time function is disabled for now.
Feedback please?
Ja mata
TosaInu
I tried the #if format during the weekend, but wasn't successful getting it to work properly. Of course, I am just looking at the template in the editor preview, not saving it and accessing the template from another page, so I don't know if this is a problem with the preview parsing. Are there any pages on the Org that use the conditionals?
Also, does anyone know of a way to force content below a floating infobox? I'm trying to lay out the unit pages, and would like to have the unit navbar at the bottom forced below the unit's stats infobox, so it centers correctly and gets out of the way. I'm using the VI Ballista for layout testing, might as well make it useful for something.![]()
The .Org's MTW Reference Guide Wiki - now taking comments, corrections, suggestions, and submissions
If I werent playing games Id be killing small animals at a higher rate than I am now - SFTS
Si je n'étais pas jouer à des jeux que je serais mort de petits animaux à un taux plus élevé que je suis maintenant - Louis VI The Fat
"Why do you hate the extremely limited Spartan version of freedom?" - Lemur
Hello drone,
I can't yet say I'm delighted about the Wiki language. Quite some work just to get an if. I'm using it in template VG infobox. I've the feeling I travel from Rome to Milan via Tokyo.
Force content? You can stack different kinds of boxes. I had the other problem: I wanted some whitespace, in the end I got it by clumsily nesting the box in another.
Last edited by TosaInu; 04-10-2008 at 23:06.
Ja mata
TosaInu
Thanks, I'll take a look. I did get #expr to work, I'm now using it to convert the projectilestats.txt values to real values in the artillery template. Makes a mess of the template preview, but it works out fine in the real page, and should make the tedious process of creating unit pages a little easier without having to do the math each time.
Edit-> used the Infobox VG syntax to get #if conditionals to work right. Looks pretty much like what I was doing before, I must have been screwing something up. Looks a lot better with the extraneous fields removed, less cluttered.
Last edited by drone; 04-11-2008 at 03:36.
The .Org's MTW Reference Guide Wiki - now taking comments, corrections, suggestions, and submissions
If I werent playing games Id be killing small animals at a higher rate than I am now - SFTS
Si je n'étais pas jouer à des jeux que je serais mort de petits animaux à un taux plus élevé que je suis maintenant - Louis VI The Fat
"Why do you hate the extremely limited Spartan version of freedom?" - Lemur
To me it looks like it is beneath the infobox already; do you want it on the right?Originally Posted by drone
Runes for good luck:
[1 - exp(i*2π)]^-1
Did you mean it to be like this drone? https://forums.totalwar.org/wiki/ind...it_Description
Ja mata
TosaInu
Sort of. I will probably move the missile/artillery template to the left (instead of centered) so it doesn't overlap with the stats infobox, and not worry about putting in breaks for that. I was more worried about the Navbar at the bottom, ideally this is just an auxillary piece of the page, I don't want it "interfering" with the page's topic. One possible problem with using lots of <br> tags would be the page formatting due to window size. No big deal at the moment, aesthetics can wait, I suppose. One possible "solution" will be to just add more text and discussion topics, once there are 4+ sublevels, a table of contents is generated and that will push everything down. Unit description, ranged statistics, tactical usage, counters, modding suggestions, etc., that sort of thing.Originally Posted by TosaInu
The .Org's MTW Reference Guide Wiki - now taking comments, corrections, suggestions, and submissions
If I werent playing games Id be killing small animals at a higher rate than I am now - SFTS
Si je n'étais pas jouer à des jeux que je serais mort de petits animaux à un taux plus élevé que je suis maintenant - Louis VI The Fat
"Why do you hate the extremely limited Spartan version of freedom?" - Lemur
Bookmarks