#581 Template does not get expanded with {{ }} syntax

Wiki_syntax
closed
Reini Urban
5
2012-10-11
2007-09-26
No

I create a page "coversheet" that is a template with 3 parameters.

I call this template with the {{ }} syntax in a page "document".

When "document" is displayed, the "coversheet" template is not expanded.

Instead, you see:

"Describe coversheet? here."

Clicking on the "?" leads to creation of file
"Edit: title1=aaaaaa|title2=bbbbbb" (instead of "coversheet")

See attached files for the exact content of pages.

Test made with Phpwiki 1.3.14

Discussion

  • coversheet

     
    Attachments
  • Logged In: YES
    user_id=1118700
    Originator: YES

    File Added: coversheet

     
  • document

     
    Attachments
  • Logged In: YES
    user_id=1118700
    Originator: YES

    File Added: document

     
  • Reini Urban
    Reini Urban
    2007-09-26

    Logged In: YES
    user_id=13755
    Originator: NO

    The error is that /^(\S+)\|(.*)$/ does no minimal match in
    "coversheet|title1=aaaaaa|title2=bbbbbb|title3=cccccc"
    => "coversheet|title1=aaaaaa|title2=bbbbbb|" + "title3=cccccc"

    Fixed by /^(\S+?)\|(.*)$/
    Thanks.

     
  • Logged In: YES
    user_id=1118700
    Originator: YES

    It works.

    Thank you very much Reini.