1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-26 11:37:20 +00:00
TiddlyWiki5/core/modules/macros/qualify.js

33 lines
451 B
JavaScript
Raw Normal View History

/*\
title: $:/core/modules/macros/qualify.js
type: application/javascript
module-type: macro
Macro to qualify a state tiddler title according
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
/*
Information about this macro
*/
exports.name = "qualify";
exports.params = [
{name: "title"}
];
/*
Run the macro
*/
exports.run = function(title) {
return title + "-" + this.getStateQualifier();
};
})();