BesuglovS explained the solution on the wiki. The template must look like this:

{{#tag:syntaxhighlight
|
PROJECT({{{1}}})

ADD_EXECUTABLE({{{1}}} {{{1}}}.cxx)

|lang=cmake}}

Thanks all!

David



On Thu, Nov 4, 2010 at 7:58 AM, David Doria <[email protected]> wrote:
> It still doesn't do anything:
> http://www.vtk.org/Wiki/Template:VTKCMakeLists
> http://www.vtk.org/Wiki/VTK/Sandbox/UseCMakeListsTemplate
> Also, what about if I want
> <source lang="cmake">
> something {{{1}}} something else
> </source>
> I don't understand the syntax of the #tag.
> Thanks,
>
> David
>
>
> On Thu, Nov 4, 2010 at 1:38 AM, K. Peachey <[email protected]> wrote:
>>
>> On Thu, Nov 4, 2010 at 11:50 AM, David Doria <[email protected]> wrote:
>> > Hm, but I don't need the paramter to be inside the <> of the tag (like
>> > this
>> > : <source lang="{{{1}}}). Instead, I just need
>> >
>> > <source lang="cmake">
>> > {{{1}}}
>> > </source>
>> >
>> > It sounded like this should work?
>> >
>> > David
>> you would do "{{#tag:source|{{{1}}}|lang=cmake}}" then.
>> -Peachey
>>
>> _______________________________________________
>> MediaWiki-l mailing list
>> [email protected]
>> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
>

_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to