Template:Example: Difference between revisions

Content added Content deleted
(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.)
(oops. that text should be in the NoInclude section)
Line 20: Line 20:
If you are adding an example in a language that needs a special page title, such as C#, you would put this at the top of your example page:
If you are adding an example in a language that needs a special page title, such as C#, you would put this at the top of your example page:
<nowiki>=={{example|task=Hough transform|language=C#|langpage=C_sharp}}==</nowiki>
<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.
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.

{{template}}</noinclude>