Simplify syntax of modules

Reported by pieterhpieterh

The syntax for modules could be simpler to type and read. Here is a proposal.

The current syntax is like this:

##page parent=""|title="Manage Petition"|tags=""|file="http://packages.wdfiles.com/local--files/package:6/picture-backend.txt"##

How about something like:

##page parent="" title="Manage Petition" tags="" file="etc..."##

Or, allowing line breaks and spaces as well:

##page
    parent = ""
    title  = "Manage Petition"
    tags   = ""
    file   = "etc..."
##

Comments

tsangktsangk 1250149405|%e %b %Y, %H:%M %Z|agohover

I use explode statements for the variables so it's a little hard. When you have a space in the contents of a variable (e.g. ##page title="Manage Petition" page="test").

The code a above with explode(" ",$pkfile) would return the array:

[0]=> title="Manage
[1]=> Petition"
[2]=> page="test"

However, the following code works:

##page <= Must have a space here.
|page="users:_template"
|parent=""
|title="Badge and User Profile System:_template"
|tags=""
|file="_template"
##
Last edited on 1250149903|%e %b %Y, %H:%M %Z|agohover By tsangk + Show more
Reply  |  Options
Unfold by tsangktsangk, 1250149405|%e %b %Y, %H:%M %Z|agohover
Unfold by tsangktsangk, 1250250695|%e %b %Y, %H:%M %Z|agohover
Add a New Comment

Edit | Tags | Files | Print

Use one of these tags to say what state the issue is in:

  • _open - a new, open issue.
  • _closed - issue has been closed.

Most recent

Educator Acocunt Upgrade (1253820187|%B %d, %Y) [open]
Cannot Rename/Move Attached File (1251477520|%B %d, %Y) []
Increase Size of "Copy-To" Window (1250808429|%B %d, %Y) []
Package 14: Error in syntax! (1250808221|%B %d, %Y) []
$wku$ error (1250382085|%B %d, %Y) []
Parser Error (1250323132|%B %d, %Y) []
Need more doc (1249543737|%B %d, %Y) []
Package module (1249542706|%B %d, %Y) []
Simplify syntax of modules (1249542523|%B %d, %Y) []
Error in Syntax warning (1249424256|%B %d, %Y) []

All open

Cannot Rename/Move Attached File (1251477520|%B %d, %Y) []
Increase Size of "Copy-To" Window (1250808429|%B %d, %Y) []
Package 14: Error in syntax! (1250808221|%B %d, %Y) []

Page tags: _closed
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License