Feature Proposal: Add format parameter to URLPARAM

Motivation

I often have the need to write the value of a url param - only if that url param is passed. For instance: name - date in a bullet list. A common use case is CommentPlugin url param expansion.

Parameter options like FORMFIELD would fit URLPARAM as well.

Description and Documentation

  • Returns the value of a URL parameter.
  • Syntax: %URLPARAM{"name"}%
  • Supported parameters:
    Parameter: Description: Default:
    format="..." Format the result. $value expands to the URL parameter. If multiple is specified, $value expands to the result of the concatenated items. "$value"

Impact

Implementation

-- Contributors: ArthurClemens, PeterThoeny - 2010-10-26

Discussion

this is similar and related to the ExtractAndCentralizeFormattingRefactor - we should thus be able to add format=, and presumably %FORMAT to most TML.

-- SvenDowideit - 18 Mar 2008

Useful enhancement, I support it. Who is going to own this?

-- PeterThoeny - 2010-07-29

Small and useful enhancements, I can implement this if nobody else steps up.

-- PeterThoeny - 2010-10-20

This is now an accepted proposal by the 7 day review period.

-- PeterThoeny - 2010-10-26

I removed the "expand the usual format tokens" feature because it interfered with the encoding.

This is now implemented in SVN trunk, scheduled for TWiki-5.1.

-- PeterThoeny - 2010-10-27

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2010-10-27 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.