mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-05 01:26:18 +00:00
fd70aa8c45
Now, finally, we can implement qualifyTiddlerTitles as a macro.
33 lines
451 B
JavaScript
33 lines
451 B
JavaScript
/*\
|
|
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();
|
|
};
|
|
|
|
})();
|