--- 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
(something)
(added size option, now using the Support Level Text template)
Line 8: Line 8:
 
     }} float: right; font-size: 80%; margin: 0 0 .5em .5em; line-height: 1.2; text-align: right; border-collapse: collapse;"  <!-----Table format----->
 
     }} float: right; font-size: 80%; margin: 0 0 .5em .5em; line-height: 1.2; text-align: right; border-collapse: collapse;"  <!-----Table format----->
 
   |-
 
   |-
   | ADCIRC version:  
+
   | {{#switch: {{{size|}}} |full=ADCIRC version: |mini= | #default=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|{{=}}={{=}}
Line 17: Line 17:
 
     }}  {{#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; text-align:center;" | {{#switch: {{{support|}}} <!----switch-case statement for support level text---->
+
   | 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}}}}}
    |sup|yes|supported=Supported
+
   }} <!----end outer switch-case statement for size---->
    |tp|tech preview=Tech Preview
 
    |uns|no|unsupported=Unsupported
 
    |dep|deprecated=Deprecated
 
    | #default=?unknown support?
 
   }} <!----end switch-case statement for support level text---->
 
 
|}</onlyinclude>
 
|}</onlyinclude>
  
Line 47: Line 42:
 
  |-
 
  |-
 
  | <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|support=sup}}</nowiki></code> || {{ADC version|version=52|relation=gt|support=sup}}
 +
|-
 +
| <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|support=tp}}</nowiki></code> || {{ADC version|version=53|relation=le|support=tp}}
 
  | <code><nowiki>{{ADC version|version=53|relation=le|support=tp}}</nowiki></code> || {{ADC version|version=53|relation=le|support=tp}}
Line 53: Line 50:
 
  |-
 
  |-
 
  | <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}}</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 18:51, 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:  ?????
{{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|support=sup}}
ADCIRC version: > 52
{{ADC version|version=52|relation=gt|support=sup|size=mini}}
ADCIRC version: > 52
{{ADC version|version=53|relation=le|support=tp}}
ADCIRC version: 53
{{ADC version|version=50|relation=-|support=uns}}
ADCIRC version: 50
{{ADC version|version=a long, long time ago|relation=+|support=dep}}
ADCIRC version: a long, long time ago
{{ADC version|version=a long, long time ago|relation=+|support=dep|size=full}}
ADCIRC version: a long, long time ago
{{ADC version|version=a long, long time ago|relation=+|support=dep|size=mini}}
ADCIRC version: a long, long time ago