TiddlyWiki.org

Changeset 4974

Show
Ignore:
Timestamp:
16/05/08 12:52:02 (2 months ago)
Author:
FND
Message:

MacroDocumentationMacro?: removed parameter type specification

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Trunk/contributors/FND/plugins/MacroDocumentationMacro.js

    r4911 r4974  
    11/*** 
    22|''Name''|MacroDocumentationMacro| 
    3 |''Description''|<...>
     3|''Description''|provides a macro to render built-in macro documentation
    44|''Author''|FND| 
    55|''Version''|0.1| 
     
    99|''License''|<...>| 
    1010|''CoreVersion''|<...>| 
    11 |''Documentation''|<...>| 
    1211|''Keywords''|<...>| 
    1312!Description 
     
    4544        if(doc.params) { 
    4645                output += "!!!Parameters\n" 
    47                         + "|!Name/Index|!Description|!Type|!Optional|!Default Value|h\n"; 
     46                        + "|!Name/Index|!Description|!Optional|!Default Value|h\n"; 
    4847                for(var i = 0; i < doc.params.length; i++) { 
    4948                        var p = doc.params[i]; 
    5049                        output += p.named ? "|" + p.name : "|" + (i + 1) 
    5150                                + "|" + p.desc 
    52                                 + "|" + p.type 
    5351                                + "|" + (p.optional ? "yes" : "no") 
    5452                                + "|" + (p.defaultValue ? p.defaultValue : "N/A") 
     
    6361 
    6462config.macros.macroDoc.doc = { 
    65         desc: "automatically renders built-in macro documentation", 
     63        desc: "renders built-in macro documentation", 
    6664        usage: "<<macroDoc [macroName]>>", 
    6765        params: [ 
     
    6967                        named: false, 
    7068                        desc: "name of the macro to document", 
    71                         type: "string", 
    7269                        optional: true, 
    7370                        defaultValue: null