Template:Example: Difference between revisions
Content added Content deleted
(Add template to set up an example page) |
(try putting the section markup in the page using the template) |
||
Line 2: | Line 2: | ||
{{#set:example of={{{task}}}}} |
{{#set:example of={{{task}}}}} |
||
{{#set:implemented in language={{#if: {{{langpage|}}} | {{{langpage}}} |{{{language}}}}}}} |
{{#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:38, 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#) |