--- Welcome to the official ADCIRCWiki site! The site is currently under construction, with limited information. ---
For general information, see the ADCIRC site, ADCIRC FAQ, or the ADCIRC Wikipedia page. For model documentation not yet available on the wiki, see the ADCIRC site. New content is being continuously added to the ADCIRCWiki, and material from the main ADCIRC site will be gradually transitioned over to the wiki.

Difference between revisions of "Template:ADC version"

From ADCIRCWiki
Jump to: navigation, search
(added size option, now using the Support Level Text template)
(Reverting to version before all of today's edits)
Line 1: Line 1:
 
<!----------This is the actual template---------->
 
<!----------This is the actual template---------->
<onlyinclude>{| style="border: 4px solid {{#switch: {{{support|}}} 
+
<onlyinclude>
      |sup|yes|supported=&#35;00BB00;
+
{| style="border: 4px solid #FF9933; float: right; font-size: 80%; margin: 0 0 .5em .5em; line-height: 1.2; text-align: right; border-collapse: collapse;"  <!-----Table format----->
      |tp|tech preview=&#35;EEEE00;
+
   | ADCIRC version:  
      |uns|no|unsupported=&#35;FF9933;  
+
   | <abbr style="font-weight: bold; font-size: 180%;"> {{#switch: {{{relation|}}} <!-----switch-case statement for relation symbol----->
      |dep|deprecated=&#35;FF0000;
+
    |eq|{{=}}={{=}}
      | #default=&#35;FF00FF;
+
    |gt|>=<small>&gt;</small>
    }} float: right; font-size: 80%; margin: 0 0 .5em .5em; line-height: 1.2; text-align: right; border-collapse: collapse;"  <!-----Table format----->
+
    |lt|<=<small>&lt;</small>
   |-
+
    |ge|+=<small>&ge;</small>
  | {{#switch: {{{size|}}} |full=ADCIRC version: |mini= | #default=ADCIRC version: }}
+
    |le|-=<small>&le;</small>
   | rowspan="2" | <abbr style="font-weight: bold; font-size: 180%; vertical-align:middle;"> {{#switch: {{{relation|}}} <!-----switch-case statement for relation symbol----->
+
  }}  {{#ifeq: {{{version|}}} | {{{version}}} | {{{version}}} | ?????}} </abbr> <!-----display version if supplied----->
      |eq|{{=}}={{=}}
+
|}
      |gt|>=<small>&gt;</small>
+
</onlyinclude>
      |lt|<=<small>&lt;</small>
 
      |ge|+=<small>&ge;</small>
 
      |le|-=<small>&le;</small>
 
    }}  {{#ifeq: {{{version|}}} | {{{version}}} | {{{version}}} | ?????}} </abbr> <!-----display version if supplied----->
 
  |-
 
  | style="font-weight: bold; text-decoration:underline; text-align:center;" | {{#switch: {{{size|}}} |full={{Support level text|level={{{support}}}}} |mini= | #default={{Support level text|level={{{support}}}}}
 
  }} <!----end outer switch-case statement for size---->
 
|}</onlyinclude>
 
  
 
This template will give a version number indicator on the right-hand side of a page (or table or whatever) it is added to, and is intended as a way to highlight what version(s) of ADCIRC something is relevant for.  This was inspired by [https://www.mediawiki.org/wiki/Template:MW_version a much more advanced template on MediaWiki].   
 
This template will give a version number indicator on the right-hand side of a page (or table or whatever) it is added to, and is intended as a way to highlight what version(s) of ADCIRC something is relevant for.  This was inspired by [https://www.mediawiki.org/wiki/Template:MW_version a much more advanced template on MediaWiki].   
Line 41: Line 33:
 
  | <code><nowiki>{{ADC version|version=52|relation=>}}</nowiki></code> || {{ADC version|version=52|relation=>}}
 
  | <code><nowiki>{{ADC version|version=52|relation=>}}</nowiki></code> || {{ADC version|version=52|relation=>}}
 
  |-
 
  |-
  | <code><nowiki>{{ADC version|version=52|relation=gt|support=sup}}</nowiki></code> || {{ADC version|version=52|relation=gt|support=sup}}
+
  | <code><nowiki>{{ADC version|version=52|relation=gt}}</nowiki></code> || {{ADC version|version=52|relation=gt}}
 
  |-
 
  |-
  | <code><nowiki>{{ADC version|version=52|relation=gt|support=sup|size=mini}}</nowiki></code> || {{ADC version|version=52|relation=gt|support=sup|size=mini}}
+
  | <code><nowiki>{{ADC version|version=53|relation=le}}</nowiki></code> || {{ADC version|version=53|relation=le}}
 
  |-
 
  |-
  | <code><nowiki>{{ADC version|version=53|relation=le|support=tp}}</nowiki></code> || {{ADC version|version=53|relation=le|support=tp}}
+
  | <code><nowiki>{{ADC version|version=50|relation=-}}</nowiki></code> || {{ADC version|version=50|relation=-}}
 
  |-
 
  |-
| <code><nowiki>{{ADC version|version=50|relation=-|support=uns}}</nowiki></code> || {{ADC version|version=50|relation=-|support=uns}}
+
  | <code><nowiki>{{ADC version|version=a long, long time ago|relation=+}}</nowiki></code> || {{ADC version|version=a long, long time ago|relation=+}}
|-
 
| <code><nowiki>{{ADC version|version=a long, long time ago|relation=+|support=dep}}</nowiki></code> || {{ADC version|version=a long, long time ago|relation=+|support=dep}}
 
|-
 
  | <code><nowiki>{{ADC version|version=a long, long time ago|relation=+|support=dep|size=full}}</nowiki></code> || {{ADC version|version=a long, long time ago|relation=+|support=dep|size=full}}
 
|-
 
| <code><nowiki>{{ADC version|version=a long, long time ago|relation=+|support=dep|size=mini}}</nowiki></code> || {{ADC version|version=a long, long time ago|relation=+|support=dep|size=mini}}
 
 
|}
 
|}

Revision as of 19:06, 10 July 2020


ADCIRC version:  ?????


This template will give a version number indicator on the right-hand side of a page (or table or whatever) it is added to, and is intended as a way to highlight what version(s) of ADCIRC something is relevant for. This was inspired by a much more advanced template on MediaWiki.

Syntax

{{ADC version|version=VERSION|relation=RELATION}}

You specify the values for VERSION and RELATION, examples of which are given below.

Examples

you type you get
{{ADC version}}
ADCIRC version:  ?????
{{ADC version|version=52}}
ADCIRC version: 52
{{ADC version|version=44-47}}
ADCIRC version: 44-47
{{ADC version|version=52|relation=>}}
ADCIRC version: > 52
{{ADC version|version=52|relation=gt}}
ADCIRC version: > 52
{{ADC version|version=53|relation=le}}
ADCIRC version: 53
{{ADC version|version=50|relation=-}}
ADCIRC version: 50
{{ADC version|version=a long, long time ago|relation=+}}
ADCIRC version: a long, long time ago