--- 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 1: Line 1:
<onlyinclude>
<onlyinclude>
{{ADC version/layout
{| style="border: 1px solid #888888; float: right; font-size: 80%; margin: 0 0 .5em .5em; line-height: 1.2; text-align: right; border-collapse: collapse;"
  '''ADCIRC version: '''
  | {{#switch: {{{relation|}}}
    |eq|{{=}}={{=}}
    |gt|>=>
    |lt|<=<
    |ge|+=<small>&ge;</small>
    |le|-=<small>&le;</small>
    |#default={{=}}
  {{{version}}}
|}
</onlyinclude>
 
 
|lang={{lang code}}
|lang={{lang code}}
|msg-mw-version=<translate><!--T:1--> MediaWiki version{{<tvar|1>#if:{{{version2|}}}</>|s}}:</translate>
|msg-mw-version=<translate><!--T:1--> MediaWiki version{{<tvar|1>#if:{{{version2|}}}</>|s}}:</translate>
Line 10: Line 23:
|gerrit change={{{gerrit change|}}}
|gerrit change={{{gerrit change|}}}
|compact={{{compact|}}}
|compact={{{compact|}}}
{| style="border: 1px solid #888888; float: right; font-size: 80%; margin: 0 0 .5em .5em; line-height: 1.2; text-align: right; border-collapse: collapse;"
{{#if: {{{compact|}}} ||{{!}} style="padding: .1em .3em;" {{!}} {{{msg-mw-version}}} }}
| {{#switch: {{{comment|}}}
|and after|and later|+=
  title="{{{msg-latest-tooltip}}}" style="border-color: #{{MW version/color}};
|#default=
  title="MediaWiki {{{version2|{{{version|X.XX}}}}}} is {{MW version/status|{{#if:{{{version2|}}}|{{{version2}}}|{{{version|X.XX}}}}}}} version" style="border-color: #{{MW version/color|{{{version|}}}}}; {{#if:{{{version2|}}} | border-color: #{{MW version/color|{{{version2|}}}}}; border-bottom-color: #{{MW version/color|{{{version|}}}}};}}
}} border-width: 5px; border-style: {{#switch: {{MW version/status|{{{version|}}}}} |alpha = dotted |#default =  solid }}; text-align: center; padding: .1em .3em;" | <abbr style="font-weight: bold; font-size: 180%;">{{#switch: {{{comment|}}}
|and before|and earlier|-=<small>&le;</small>
|and after|and later|+=<small>&ge;</small>
}} {{#if: {{{version|}}} | {{{version}}} | X.X }}{{#if: {{{version2|}}} | &#32;&ndash; {{{version2}}} }}</abbr>{{#if: {{{r|}}} |
<br><small>{{Rev|{{{r}}}}}</small>}}{{#if: {{{gerrit change|}}} |
<br><small>{{Gerrit search|{{{gerrit change}}}}}</small>}}
{{#switch: {{{comment|}}}
|and before|and after|and earlier|and later|+|=
|#default=<nowiki /><span style="display: none;">[[Template:MW version/list1]]</span>
{{!}} style="padding: .1em .3em;" {{!}} {{{comment}}}
}}
}}
</onlyinclude>
|}
 
 
 
This was inspired by [https://www.mediawiki.org/wiki/Template:MW_version a similar template on MediaWiki].   
This was inspired by [https://www.mediawiki.org/wiki/Template:MW_version a similar template on MediaWiki].   



Revision as of 15:13, 19 August 2018

ADCIRC version:
{{#switch: === >=> <=< += -= #default==
 {{{version}}}


|lang=Template:Lang code |msg-mw-version=<translate> MediaWiki version{{<tvar|1>#if:</>|s}}:</translate> |msg-latest-tooltip=<translate> The latest stable version is <tvar|1>Template:MW stable branch number</></translate> |version= |version2= |comment= |r= |gerrit change= |compact=


{{{msg-mw-version}}} title="MediaWiki X.XX is Template:MW version/status version" style="border-color: #Template:MW version/color; border-width: 5px; border-style: solid; text-align: center; padding: .1em .3em;" | X.X


This was inspired by a similar template on MediaWiki.

For instance,


ADCIRC version:
{{#switch: === >=> <=< += -= #default==
 1.31


Yeah!

OLD