--- 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.

Template:ADC version: Difference between revisions

From ADCIRCWiki
Jump to navigation Jump to search
(got color working)
(something)
Line 1: Line 1:
<!----------This is the actual template---------->
<!----------This is the actual template---------->
<onlyinclude>{| style="border: 4px solid {{#switch: {{{support|}}}  |sup|yes|supported=&#35;00BB00; |tp|tech preview=&#35;EEEE00; |uns|no|unsupported=&#35;FF9933; |dep|deprecated=&#35;FF0000; | #default=&#35;FF00FF; }} float: right; font-size: 80%; margin: 0 0 .5em .5em; line-height: 1.2; text-align: right; border-collapse: collapse;"  <!-----Table format----->
<onlyinclude>{| style="border: 4px solid {{#switch: {{{support|}}}   
      |sup|yes|supported=&#35;00BB00;  
      |tp|tech preview=&#35;EEEE00;  
      |uns|no|unsupported=&#35;FF9933;  
      |dep|deprecated=&#35;FF0000;  
      | #default=&#35;FF00FF;  
    }} float: right; font-size: 80%; margin: 0 0 .5em .5em; line-height: 1.2; text-align: right; border-collapse: collapse;"  <!-----Table format----->
   |-
   |-
   | ADCIRC version:  
   | ADCIRC version:  
   | rowspan="2" | <abbr style="font-weight: bold; font-size: 180%; vertical-align:middle;"> {{#switch: {{{relation|}}} <!-----switch-case statement for relation symbol----->
   | rowspan="2" | <abbr style="font-weight: bold; font-size: 180%; vertical-align:middle;"> {{#switch: {{{relation|}}} <!-----switch-case statement for relation symbol----->
    |eq|{{=}}={{=}}
      |eq|{{=}}={{=}}
    |gt|>=<small>&gt;</small>
      |gt|>=<small>&gt;</small>
    |lt|<=<small>&lt;</small>
      |lt|<=<small>&lt;</small>
    |ge|+=<small>&ge;</small>
      |ge|+=<small>&ge;</small>
    |le|-=<small>&le;</small>
      |le|-=<small>&le;</small>
  }}  {{#ifeq: {{{version|}}} | {{{version}}} | {{{version}}} | ?????}} </abbr> <!-----display version if supplied----->
    }}  {{#ifeq: {{{version|}}} | {{{version}}} | {{{version}}} | ?????}} </abbr> <!-----display version if supplied----->
   |-
   |-
   | style="font-weight: bold; text-decoration:underline;" | {{#switch: {{{support|}}} <!----switch-case statement for support level text---->
   | style="font-weight: bold; text-decoration:underline; text-align:center;" | {{#switch: {{{support|}}} <!----switch-case statement for support level text---->
     |sup|yes|supported=Supported
     |sup|yes|supported=Supported
     |tp|tech preview=Tech Preview
     |tp|tech preview=Tech Preview
     |uns|no|unsupported=Unsupported
     |uns|no|unsupported=Unsupported
     |dep|deprecated=Deprecated
     |dep|deprecated=Deprecated
     |?unknown support?
     | #default=?unknown support?
   }}  <!----end switch-case statement for support level text---->
   }}  <!----end switch-case statement for support level text---->
|}</onlyinclude>
|}</onlyinclude>

Revision as of 14:01, 10 July 2020

ADCIRC version:  ?????
?unknown support?

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:  ?????
?unknown support?
{{ADC version|version=52}}
ADCIRC version: 52
?unknown support?
{{ADC version|version=44-47}}
ADCIRC version: 44-47
?unknown support?
{{ADC version|version=52|relation=>}}
ADCIRC version: > 52
?unknown support?
{{ADC version|version=52|relation=gt|support=sup}}
ADCIRC version: > 52
Supported
{{ADC version|version=53|relation=le|support=tp}}
ADCIRC version: 53
Tech Preview
{{ADC version|version=50|relation=-|support=uns}}
ADCIRC version: 50
Unsupported
{{ADC version|version=a long, long time ago|relation=+|support=dep}}
ADCIRC version: a long, long time ago
Deprecated