DefineSnippet



The DefineSnippet scope function is allows you to define a variable from a block of wiki markup.


DefineSnippet (string [name)


  • Name: name [Required]
    • Type: string
    • Description: The name of the snippet variable to define.


{{ DefineSnippet(MyBlock)
This is the content of the snippet variable.
}}

##Snippet(MyBlock)
##Snippet(MyBlock)
##Snippet(MyBlock)



Function Calling Convention
Scope Function
Instruction Function
Standard Function
Snippet
Get
Set


Wiki Help :: Alert
Alerts bring important information to the attention of the reader.
Wiki Help :: AppVersion
Displays the wiki engine version.
Wiki Help :: Attachments
Lists the attached files associated with a page.
Wiki Help :: Background
Set the background color for a block of content.
Wiki Help :: Blockquote
Blockquotes are good for quoting blocks of content from another source within your document.
Wiki Help :: BR
Inserts one or more line-breaks into the wiki body.
Wiki Help :: Bullets
Create hierarchical ordered or unordered lists.
Wiki Help :: Callout
Prominently display useful information in a fairly understated panel.
Wiki Help :: Card
Cards are good for displaying every-day content and can have a title.
Wiki Help :: Code
Display formatted, wiki-unprocessed and syntax-hilighted code.