%TWISTY{mode="div"
showlink="<tt>schema_info</tt>"
hidelink="<tt>schema_info</tt>"
showimgleft="%ICONURLPATH{toggleopen-small}%"
hideimgleft="%ICONURLPATH{toggleclose-small}%"
}%
where the only difference is the showlink/hidelink text.
As a programmer, I don't like to repeat code.
I prefer to write a function, use a macro, or set a variable. (Don't Repeat Yourself).
I asked the TWiki Community for suggestions in GenericMacroProcessing
and Peter Thoeny suggested ParameterizedIncludes.
Parameterized Includes are just the thing!
I've defined several at the top level of my Project web:
and am using them a zillion times on pages such as: