Template:Example: Difference between revisions

From Rosetta Code
Content added Content deleted
(try putting the section markup in the page using the template)
(remove newlines)
Line 1: 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>
__NOTOC__
{{#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>
Sets up an example page
Sets up an example page
{|
{|

Revision as of 20:39, 19 August 2010

Property "Example of" (as page type) with input value "{{{task}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.Property "Implemented in language" (as page type) with input value "{{{language}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.[[:Category:{{{language}}}|{{{language}}}]] Sets up an example page

param name meaning
task The name of the task this is an example of
language The name of the language this example is implemented in
langpage (optional) The pagename of the language, if different (for example: C_sharp for C#)

This is a template. There are many others. See Category:RCTemplates for a complete list of templates.