ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Difference between revisions of "Template:SourceCode"

From ModEnc
Jump to: navigation, search
m (Fixed external link hypertext)
m (Removed linebreak.)
 
Line 1: Line 1:
{{#ifeq:{{{tr|no}}}|yes|{{BigHorizontalBar|Needs Transcribing|[[Pseudocode]] relevant to this article is available at [{{{1|http://www.example.com}}} {{{1|http://www.example.com}}}]. Please update this article with information revealed by the pseudocode.}}<includeonly>[[Category:Needs Transcribing]]</includeonly>|Relevant [[pseudocode]] is available at [{{{1|http://www.example.com}}} {{{1|http://www.example.com}}}].}}<includeonly>[[Category:Source Code]]</includeonly>
+
{{#ifeq:{{{tr|no}}}|yes|{{BigHorizontalBar|Needs Transcribing|[[Pseudocode]] relevant to this article is available at [{{{1|http://www.example.com}}} {{{1|http://www.example.com}}}]. Please update this article with information revealed by the pseudocode.}}<includeonly>[[Category:Needs Transcribing]]</includeonly>|Relevant [[pseudocode]] is available at [{{{1|http://www.example.com}}} {{{1|http://www.example.com}}}].}}<includeonly>[[Category:Source Code]]</includeonly><noinclude>
 
 
<noinclude>
 
 
==Usage==
 
==Usage==
 
The following code creates a standardized external link to relevant pseudocode, which should be placed in an article's references section. The URI should be replaced with one that links directly to the appropriate pseudocode. This template automatically includes the article in [[:Category:Source Code]].
 
The following code creates a standardized external link to relevant pseudocode, which should be placed in an article's references section. The URI should be replaced with one that links directly to the appropriate pseudocode. This template automatically includes the article in [[:Category:Source Code]].

Latest revision as of 04:49, 14 December 2009

Relevant pseudocode is available at http://www.example.com.

Usage

The following code creates a standardized external link to relevant pseudocode, which should be placed in an article's references section. The URI should be replaced with one that links directly to the appropriate pseudocode. This template automatically includes the article in Category:Source Code.

{{SourceCode|http://www.example.com}}

The addition of tr=yes instead creates a box that points to an external link to relevant pseudocode, but indicates that the article should be updated to include information revealed by the pseudocode. This automatically includes the article in Category:Source Code and Category:Needs Transcribing.

{{SourceCode|http://www.example.com|tr=yes}}