Tags:
create new tag
view all tags

Question

I am still a beginner in Twiki stuff, and i am just wondering is there a way to create our own variable in the topic which can have some parameters like:

   * Set BOLD{sometext} = *%sometext%*

%BOLD{text}%

in order to give a bold version of sometext

Many thanks

Environment

TWiki version: unspecified
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories:  

-- TommyMartin - 13 Jul 2007

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

At this time, TWiki does not support macro type of use for variables. You can however achieve this with ParameterizedIncludes, where you can do stuff like %INCLUDE{ "BOLD" value="some text"}%. See VarINCLUDE.

-- PeterThoeny - 13 Jul 2007

Change status to:
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2007-07-13 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
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.