Rosetta Code:Add a Task: Difference between revisions

→‎Semantic annotations: Highlight difference between the two quoted sections.
(→‎Prerequisites: Group and rename inclusion/exclusion)
(→‎Semantic annotations: Highlight difference between the two quoted sections.)
Line 46:
If your task invokes particular concepts (and it should; that's part of what a task is supposed to do), these should be marked with semantic notation. This will help better organize your task on Rosetta Code. To take an example, excerpted and modified from [[Delegates]]:
 
<blockquote>A delegate is a '''helper object''' used by another object. The delegator may send the delegate certain '''messages''', and provide a default implementation when there is no delegate or the delegate does not respond to a message.</blockquote>
 
This could be annotated like this:
 
<blockquote>A delegate is a '''<nowiki>[[task concept::helper object]]</nowiki>''' used by another object. The delegator may send the delegate certain '''<nowiki>[[task concept::message|messages]]</nowiki>''', and provide a default implementation when there is no delegate or the delegate does not respond to a message.</blockquote>
 
This links the task with a property named "task concept" using "helper object" and "message" as the relation.