orgmode-mediawiki icon indicating copy to clipboard operation
orgmode-mediawiki copied to clipboard

Looking to extend this backend to support "templates", requesting help/advice

Open embeddedpenguin opened this issue 11 months ago • 0 comments

I'm trying to use org-mode to export org documents to mediawiki for the gentoo wiki. It uses "templates" for various code blocks, for example

{{Cmd|echo "a command"}}
{{RootCmd|echo "a root command"}}

This ends up looking like this. image

My question is: Can I already achieve this using orgmode-mediawiki? Or is extending it to add support for these templates required. If it does require extending, how should I go about doing it? I'm an org noob, so this may be not possible, but I was thinking something like this:

#+begin_src bash :template "Cmd"
echo "this is a command"
#+end_src

Output:

{{Cmd|echo "This is a command"}}

Is this possible? Any pointers or tips?

embeddedpenguin avatar Mar 17 '24 15:03 embeddedpenguin