--- 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
(Starting a series of edits. This time: got 2 row span thing working)
(added switch-case for support level)
Line 11: Line 11:
   }}  {{#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;" | ?semi-supported?
   | style="font-weight: bold; text-decoration:underline;" | {{#switch: {{{support|}}} <!----switch-case statement for support level---->
    |sup|yes|supported=Supported
    |tp|tech preview=Tech Preview
    |uns|no|unsupported=Unsupported
    |dep|deprecated=Deprecated
    |?unknown support?
  }}
|}</onlyinclude>
|}</onlyinclude>



Revision as of 12:48, 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}}
ADCIRC version: > 52
?unknown support?
{{ADC version|version=53|relation=le}}
ADCIRC version: 53
?unknown support?
{{ADC version|version=50|relation=-}}
ADCIRC version: 50
?unknown support?
{{ADC version|version=a long, long time ago|relation=+}}
ADCIRC version: a long, long time ago
?unknown support?