Project

General

Profile

Actions

Feature #2854

closed

macro to make wiki template

Added by Vianney Lecroart about 15 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
-
Start date:
2009-02-27
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

I created a basic system to enable wiki template page, like in MediaWiki.

Just add the attached file in the macros.rb

Use:

  • Create a template wiki page, for example TemplateTest and write:
    My name is t_name and I'm t_nat.
    
  • Create an instance wiki page, for example Test1 and write:
    {{template(TemplateTest, t_name=acemtp, t_nat=French)}}
    

    and it'll display:
    My name is acemtp and I'm French.
    

Files

wiki_template.txt (860 Bytes) wiki_template.txt Vianney Lecroart, 2009-02-27 09:53
Actions

Also available in: Atom PDF