--- 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
No edit summary
No edit summary
Line 8: Line 8:
     |ge|+=<small>&ge;</small>
     |ge|+=<small>&ge;</small>
     |le|-=<small>&le;</small>
     |le|-=<small>&le;</small>
   }}  {{{version}}} </abbr>
   }}  {{#ifeq: {{{version|}}} | {{{version}}} | {{{version}}} | ?????}} </abbr>
|}
|}
</onlyinclude>
</onlyinclude>


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


== Syntax ==
== Syntax ==
Line 23: Line 23:
  !you type
  !you type
  !you get
  !you get
|-
| <code><nowiki>{{ADC version}}</nowiki></code> || {{ADC version}}
  |-
  |-
  | <code><nowiki>{{ADC version|version=52}}</nowiki></code> || {{ADC version|version=52}}
  | <code><nowiki>{{ADC version|version=52}}</nowiki></code> || {{ADC version|version=52}}
|-
| <code><nowiki>{{ADC version|version=44-47}}</nowiki></code> || {{ADC version|version=44-47}}
  |-
  |-
  | <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=>}}

Revision as of 15:36, 19 August 2018

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