Difference between revisions of "Template:Version"

From ApCoCoAWiki
(removed <!--)
m ("ApCoCoA 1" -> "ApCoCoA-1")
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#switch: {{{1}}}
+
<includeonly>{{#switch: {{{1|}}}
| 1 = <!-- Case: version is 1.0 -->
+
| 1 = <!-- Case: version is 1.0 --> <!-- {{#if: {{{NOCATEGORY|}}} | | [[Category:ApCoCoA-1]] }} -->
{| cellspacing="8" cellpadding="0" style="background-color:#eeffee; width:100%; font-size:95%; border-bottom: 2px solid green; border-top: 2px solid green; position:top; clear:both;"
+
{{{!}} cellspacing="8" cellpadding="0" style="background-color:#eeffee; width:100%; font-size:95%; border-bottom: 2px solid green; border-top: 2px solid green; position:top; clear:both;"
| {{if {{{2}}} | <!-- Case: Link is given -->
+
{{!}} {{#if: {{{2|}}} | <!-- Case: Link is given -->
This article concerns [[ApCoCoA:What is ApCoCoA|ApCoCoA-1.0]]. If you are looking for the [[ApCoCoA:Downloads#ApCoCoA-2.0 Beta|ApCoCoA-2.0]] version of it, see {{{2}}}.
+
This article is about a function from [[ApCoCoA:What is ApCoCoA|ApCoCoA-1]]. If you are looking for the [[ApCoCoA:Downloads#ApCoCoA-2.0 Beta|ApCoCoA-2]] version of it, see {{{2}}}.
 
| <!-- Case: Link is not given -->
 
| <!-- Case: Link is not given -->
This article concerns [[ApCoCoA:What is ApCoCoA|ApCoCoA-1.0]]. }}
+
This article is about a function from [[ApCoCoA:What is ApCoCoA|ApCoCoA-1]].
|}
+
}}
| 2 = <!-- Case: version is 2.0 -->
+
{{!}}}
{| cellspacing="8" cellpadding="0" style="background-color:#eeeeff; width:100%; font-size:95%; border-bottom: 2px solid blue; border-top: 2px solid blue; position:top; clear:both;"
+
| 2 = <!-- Case: version is 2.0 --> <!-- {{#if: {{{NOCATEGORY|}}} | | [[Category:ApCoCoA-2]] }} -->
| {{if {{{2}}} | <!-- Case: Link is given -->
+
{{{!}} cellspacing="8" cellpadding="0" style="background-color:#eeeeff; width:100%; font-size:95%; border-bottom: 2px solid blue; border-top: 2px solid blue; position:top; clear:both;"
This article concerns [[ApCoCoA:Downloads#ApCoCoA-2.0 Beta|ApCoCoA-2.0]]. If you are looking for the [[ApCoCoA:What is ApCoCoA|ApCoCoA-1.0]] version of it, see {{{2}}}.
+
{{!}} {{#if: {{{2|}}} | <!-- Case: Link is given -->
 +
This article is about a function from [[ApCoCoA:Downloads#ApCoCoA-2.0 Beta|ApCoCoA-2]]. If you are looking for the [[ApCoCoA:What is ApCoCoA|ApCoCoA-1]] version of it, see {{{2}}}.
 
| <!-- Case: Link is not given -->
 
| <!-- Case: Link is not given -->
This article concerns [[ApCoCoA:Downloads#ApCoCoA-2.0 Beta|ApCoCoA-2.0]]. }}
+
This article is about a function from [[ApCoCoA:Downloads#ApCoCoA-2.0 Beta|ApCoCoA-2]].
|}
+
}}
 +
{{!}}}
 
| '''Error: Template not used correctly.'''
 
| '''Error: Template not used correctly.'''
}}
+
}}</includeonly><noinclude>
 +
This template can be used to mark the version of an article concerning a function.
 +
==Syntax==
 +
<pre>
 +
{{Version|<<version number>>}}
 +
{{Version|<<version number>>|<<article in other version>>}}
 +
</pre>
 +
Here <code><nowiki><<version number>></nowiki></code> is either <code>1</code> for the old version [[ApCoCoA:What is ApCoCoA|ApCoCoA-1]] or <code>2</code> for [[ApCoCoA:Downloads#ApCoCoA-2.0 Beta|ApCoCoA-2]] and <code><nowiki><<article in other version>></nowiki></code> is an optional argument containing a link to the corresponding article in the other version.
 +
 
 +
==Examples==
 +
<pre>
 +
{{Version|1}}
 +
</pre>
 +
{{Version|1|NOCATEGORY=true}}
 +
 
 +
 
 +
<pre>
 +
{{Version|2}}
 +
</pre>
 +
{{Version|2|NOCATEGORY=true}}
 +
 
 +
 
 +
<pre>
 +
{{Version|1|[[Package sagbi/SB.IsInSubalgebra]]}}
 +
</pre>
 +
{{Version|1|[[Package sagbi/SB.IsInSubalgebra]]|NOCATEGORY=true}}
 +
 
 +
 
 +
<pre>
 +
{{Version|2|[[ApCoCoA-1:SB.IsInSubalgebra]]}}
 +
</pre>
 +
{{Version|2|[[ApCoCoA-1:SB.IsInSubalgebra]]|NOCATEGORY=true}}
 +
 
 +
 
 +
</noinclude>

Latest revision as of 15:00, 1 November 2020

This template can be used to mark the version of an article concerning a function.

Syntax

{{Version|<<version number>>}}
{{Version|<<version number>>|<<article in other version>>}}

Here <<version number>> is either 1 for the old version ApCoCoA-1 or 2 for ApCoCoA-2 and <<article in other version>> is an optional argument containing a link to the corresponding article in the other version.

Examples

{{Version|1}}
This article is about a function from ApCoCoA-1.


{{Version|2}}
This article is about a function from ApCoCoA-2.


{{Version|1|[[Package sagbi/SB.IsInSubalgebra]]}}
This article is about a function from ApCoCoA-1. If you are looking for the ApCoCoA-2 version of it, see Package sagbi/SB.IsInSubalgebra.


{{Version|2|[[ApCoCoA-1:SB.IsInSubalgebra]]}}
This article is about a function from ApCoCoA-2. If you are looking for the ApCoCoA-1 version of it, see ApCoCoA-1:SB.IsInSubalgebra.