Question
I was wondering if there was some way to create a variable that you could pass a text a command.
For example I use a particular style of div object to create notes on the Wiki.
I would like to be able to set a variable equal to this div object but in the area where I would normally put my text I would like to put something that would symbolize text that needed to be defined like
* Set mynote = <div style= "mystyle">$defineme$</div>
Then I would go and use my variable like
%mynote{ "This is a note" }%
This way I don't have a bunch of duplicate div objects all over the Wiki and I can change them all from a central location.
I am not a programmer so I wont be able to easily write something to do this. Is there any existing resource/plugin that will allow me to do this or is something that requires some coding?
Thanks
Environment
--
GregGardinier - 19 Aug 2007
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
I asked this question before, have a look at
http://twiki.org/cgi-bin/view/Support/VariableThatHasAParameter
Probably another way to do this is by something like this?
- Set STYLE = <div style= "mystyle">
- Set ENDSTYLE= </div>
%STYLE%SomeText%ENDSTYLE%
Probably set the variable to be shorter length, so that it would be easier
--
TommyMartin - 20 Aug 2007
--
TommyMartin - 20 Aug 2007
Marking as answered.
--
CrawfordCurrie - 20 Aug 2007