Results 1 to 30 of 53

Thread: Wiki

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Nur-ad-Din Forum Administrator TosaInu's Avatar
    Join Date
    Jul 2002
    Posts
    12,326
    Ja mata

    TosaInu

  2. #2
    Needs more flowers Moderator drone's Avatar
    Join Date
    Dec 2004
    Location
    Moral High Grounds
    Posts
    9,286

    Default Re: Wiki

    Quote Originally Posted by TosaInu
    Did you just activate something? I'm seeing a lot of:
    Code:
    Warning: Missing argument 2 for wfparserfunctionslanguagegetmagic() in /usr/local/etc/httpd/forums.totalwar.org/wiki/extensions/ParserFunctions/ParserFunctions.php on line 169
    lines at the top of pages.

    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

  3. #3
    Nur-ad-Din Forum Administrator TosaInu's Avatar
    Join Date
    Jul 2002
    Posts
    12,326

    Default Re: Wiki

    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

  4. #4
    Needs more flowers Moderator drone's Avatar
    Join Date
    Dec 2004
    Location
    Moral High Grounds
    Posts
    9,286

    Default Re: Wiki

    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

  5. #5
    Nur-ad-Din Forum Administrator TosaInu's Avatar
    Join Date
    Jul 2002
    Posts
    12,326

    Default Re: Wiki

    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

  6. #6
    Needs more flowers Moderator drone's Avatar
    Join Date
    Dec 2004
    Location
    Moral High Grounds
    Posts
    9,286

    Default Re: Wiki

    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

  7. #7
    Hǫrðar Member Viking's Avatar
    Join Date
    Apr 2005
    Location
    Hordaland, Norway
    Posts
    6,449

    Default Re: Wiki

    Quote Originally Posted by drone
    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.
    To me it looks like it is beneath the infobox already; do you want it on the right?
    Runes for good luck:

    [1 - exp(i*2π)]^-1

  8. #8
    Nur-ad-Din Forum Administrator TosaInu's Avatar
    Join Date
    Jul 2002
    Posts
    12,326

    Default Re: Wiki

    Did you mean it to be like this drone? https://forums.totalwar.org/wiki/ind...it_Description
    Ja mata

    TosaInu

  9. #9
    Needs more flowers Moderator drone's Avatar
    Join Date
    Dec 2004
    Location
    Moral High Grounds
    Posts
    9,286

    Default Re: Wiki

    Quote Originally Posted by TosaInu
    Did you mean it to be like this drone? https://forums.totalwar.org/wiki/ind...it_Description
    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.
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO