2013-10-25 21:29:49 +00:00
|
|
|
/*\
|
|
|
|
title: $:/core/modules/macros/changecount.js
|
|
|
|
type: application/javascript
|
|
|
|
module-type: macro
|
|
|
|
|
|
|
|
Macro to return the changecount for the current tiddler
|
|
|
|
|
|
|
|
\*/
|
|
|
|
(function(){
|
|
|
|
|
|
|
|
/*jslint node: true, browser: true */
|
|
|
|
/*global $tw: false */
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
/*
|
|
|
|
Information about this macro
|
|
|
|
*/
|
|
|
|
|
|
|
|
exports.name = "changecount";
|
|
|
|
|
|
|
|
exports.params = [];
|
|
|
|
|
|
|
|
/*
|
|
|
|
Run the macro
|
|
|
|
*/
|
|
|
|
exports.run = function() {
|
2013-10-28 23:40:45 +00:00
|
|
|
return this.wiki.getChangeCount(this.getVariable("currentTiddler")) + "";
|
2013-10-25 21:29:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
})();
|