On Fri, 27 May 2011 at 09:54:43 +1000, Brian May wrote:
> I have a template that looks like this:
>
> <a href="...">...</a>
>
> I want to be able to use it like this:
>
> For more information, see [[!template id=... ]].
For templates stored in wiki pages, this is solved by the new
templatebody directive in versions >= 3.20140916. For instance, you
could put this in templates/link.mdwn:
This template generates a link. Parameters:
href
: The URL
text
: The text of the link
[[!templatebody """<a href="<TMPL_VAR HREF>"><TMPL_VAR TEXT></a>"""]]
(I've checked that that works for your use-case)
It isn't fixed for templates that are not wiki pages (*.tmpl) though.
Do you consider this to be sufficient, on the basis that *.tmpl
are usually used for larger chunks of content and wiki internals
whereas *.mdwn are more convenient for [[!template]],
or do you still consider this to be a bug?
S
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]