Jump to content

Template:Example: Difference between revisions

test: remove the SMW sets. Will temporarily add them to the three example pages manually. Perhaps SMW is screwing things up when it sees the set function calls inside an embedded page.
(Add a couple of usage examples for this template. Also, hopefully fix whatever is breaking additional headers.)
(test: remove the SMW sets. Will temporarily add them to the three example pages manually. Perhaps SMW is screwing things up when it sees the set function calls inside an embedded page.)
Line 1:
{{#set:example of={{{task}}}}}{{#set:implemented in language={{#if:{{{langpage|}}}|{{{langpage}}}|{{{language}}}}}}}{{#if: {{{langpage|}}} | <span id="{{{language}}}">[[:Category:{{{language}}}|{{{langpage}}}]]</span> | [[:Category:{{{language}}}|{{{language}}}]] }}<noinclude><br/>
Sets up an example page
{|
Line 21:
<nowiki>=={{example|task=Hough transform|language=C#|langpage=C_sharp}}==</nowiki>
{{template}}</noinclude>
 
Unfortunately, the header markup needs to be in the page that uses the template, rather than the template itself. Otherwise, you won't see edit links.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.