Small improvements
/*\
title: $:/macros/danielo/tinto.js
type: application/javascript
module-type: macro
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
/*
Information about this macro
This is developed to put some text in color.
<<tinto "text" "green">>
<<tinto "text">> (will be red)
<$macrocall $name="tinto" color="pink" text="elephant"/>
*/
exports.name = "tinfo";
exports.params = [
{ name: "text" },
{ name: "color" }
];
/*
Run the macro
*/
exports.run = function(text, color) {
if( !text) text = "IMPORTANT";
if( !color) color = "red";
return "<span style='color:" + color + "'>" + text + "</span>";
};
})();
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.