[prev in list] [next in list] [prev in thread] [next in thread]
List: wikipedia-l
Subject: [Wikipedia-l] Parsing Extensions in Templates
From: "John Stowers" <john.stowers.lists () gmail ! com>
Date: 2006-04-18 11:17:15
Message-ID: cfd90320604180417q6c06667cm41de3f0d35902e7b () mail ! gmail ! com
[Download RAW message or body]
Hello All,
I have a wiki, currently running the GeSHi syntax highlighting extension[1].
I wish to use this from within a template page (Template:HF). This template
page contains the following wikitext
Click [http://john.greenbirdsystems.com/files/{{{1}}} here] to download this
file.
<bash-file>/var/www/john.greenbirdsystems.com/files/{{{1}}}</bash-file>
According to the extension, the file between the <bash-file> tags should be
parsed and displayed inline when I call
{{HF|test.sh}}
from another page.
But because the order that extensions and templates are processed all I get
is
Click here to download this file.
Could not load /var/www/john.greenbirdsystems.com/files/{{{1}}}
See how the template var is not expanded. The extension gets called first.
Can anyone suggest a solution to my conumdrum?
When not in template form the plugin works great. Its source code is
available at [1]. I have done quite a bit of research trying to get tis to
work but couldnt find anywhere that said anything about this situation. Help
would be appreciated.
Cheers
John
[1] http://meta.wikimedia.org/wiki/User:Ajqnic:GeSHiHighlight
_______________________________________________
Wikipedia-l mailing list
Wikipedia-l@Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/wikipedia-l
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic