mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-31 07:32:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			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();
 | |
| };
 | |
| 
 | |
| })();
 | 
