| 
        
 
 Cookbook
 
 Topics |  
      
        Simple Recipe TemplateSimpleRecipe version 2024-01-01 Summary: A Simple Recipe Template to provide a framework for PmWiki recipes 
Version: 2022-10-30 
Prerequisites: PmWiki 2.3.2; PHP 7.4 
Status: Always beta 
Maintainer: skiwi 
Discussion: SimpleRecipeTemplate-Talk 
Questions answered by this recipeHow do I write a PmWiki recipe? Is there a blueprint I can use? Are there any recipe examples? DescriptionThis recipe provides a simple recipe template that illustrates and implements some PmWiki recipe concepts. The recipe provides a multiline directive with parameters that implements a printable and hexadecimal character display of all text within the directive. The form of such a directive is (:directivename optional parameters:) optional lines of text (:directivenameend:).
This is implemented as  It also provides a singleline directive that implements a display of some internal PmWiki variables. The form of such a directive is (:directivename optional parameters:).
This is implemented as  PmWiki DevelopersThis recipe illustrates some simple features of PmWiki recipes. 
 The recipe uses the following PHP features: 
 Installation
 UsagePlace the directive, as described below, in your PmWiki page. The recipe provides a page variable  ![]() SimpleRecipe output ConfigurationSimpleRecipe
 
 Parameters are case-insensitive. PmWiki Info![]() PmWiki Info output (truncated) A second example is
 
 and using 
 a number of internal PmWiki variables including:  
 | 
    
tahi Page last modified on 2022 Oct 25 10:47
Edit - History - Recent Changes - WikiHelp - Search - email page as link -> mailto:?Subject="KiwiWiki: Simple Recipe Template"&Body=