Difference between revisions of "Template:Version"
Jump to navigation
Jump to search
Rootfather (talk | contribs) m |
Rootfather (talk | contribs) m (1 revision imported) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
< | <noinclude>{{Documentation}}</noinclude><includeonly><!-- | ||
+++ Validate params | |||
+++ | + Check if type parameter exists: | ||
-->{{#if: {{{1|}}} || <span style="font-size: 1.2em; color: red; font-weight: bold;">[[Template:Version|Error]]: Type parameter not found</span> }}<!-- | |||
+ Check if version parameter exists: | |||
-->{{#if: {{{1|}}} | {{#ifeq: {{{1|}}} | l || {{#ifeq: {{{1|}}} | lv || {{#ifeq: {{{1|}}} | t || {{#ifeq: {{{1|}}} | tv || {{#if: {{{2|}}} || <span style="font-size: 1.2em; color: red; font-weight: bold;">[[Template:Version|Error]]: Version parameter not found</span> }}}}}}}}}}|}}<!-- | |||
+++ Template | |||
-->{{#switch: {{{1}}}<!-- | |||
+ Horizontal legend | |||
-->| l = <div class="templateVersion l" style="margin-left: -1em; {{{style|}}}"><!-- | |||
--><div style="float: left; margin-left: 1em; {{#ifexpr: {{Template:Cipher|{{{show|111111}}}|5}} || display: none;}}"><span style="white-space: nowrap;">'''Legend:'''</span></div><!-- | |||
--><div style="float: left; margin-left: 1em; {{#ifexpr: {{Template:Cipher|{{{show|111111}}}|4}} || display: none;}}"><span style="border-left: 1.2em solid #FDB3AB; padding-left: 0.3em; white-space: nowrap;" title="Old version, no longer maintained">{{#ifexpr: {{Template:Cipher|{{{show|111111}}}|3}} | Old version | Old version}}</span></div><!-- | |||
--><div style="float: left; margin-left: 1em; {{#ifexpr: {{Template:Cipher|{{{show|111111}}}|3}} || display: none;}}"><span style="border-left: 1.2em solid #FEF8C6; padding-left: 0.3em; white-space: nowrap;" title="An older version, yet still maintained">Older version, still maintained</span></div><!-- | |||
--><div style="float: left; margin-left: 1em; {{#ifexpr: {{Template:Cipher|{{{show|111111}}}|2}} || display: none;}}"><span style="border-left: 1.2em solid #D4F4B4; padding-left: 0.3em; white-space: nowrap;" title="Latest stable version">'''Latest version'''</span></div><!-- | |||
--><div style="float: left; margin-left: 1em; {{#ifexpr: {{Template:Cipher|{{{show|111111}}}|1}} || display: none;}}"><span style="border-left: 1.2em solid #FED1A0; padding-left: 0.3em; white-space: nowrap;" title="Latest preview of a future release">Latest preview version</span></div><!-- | |||
--><div style="float: left; margin-left: 1em; {{#ifexpr: {{Template:Cipher|{{{show|111111}}}|0}} || display: none;}}"><span style="border-left: 1.2em solid #C1E6F5; padding-left: 0.3em; white-space: nowrap;" title="A future release">Future release</span></div><!-- | |||
--><div style="clear: left;"></div><!-- | |||
--></div><!-- | |||
+ Vertical legend | |||
-->| lv = <div class="templateVersion lv floatright" style="{{{style|}}}"><!-- | |||
--><span style="{{#ifexpr: {{Template:Cipher|{{{show|111111}}}|5}} || display: none;}}"><span style="padding-left: 1.5em; white-space: nowrap;">'''Legend:'''</span><br /></span><!-- | |||
--><span style="{{#ifexpr: {{Template:Cipher|{{{show|111111}}}|4}} || display: none;}}"><span style="border-left: 1.2em solid #FDB3AB; padding-left: 0.3em; white-space: nowrap;" title="Old version, no longer maintained">{{#ifexpr: {{Template:Cipher|{{{show|111111}}}|3}} | Old version}}</span><br /></span><!-- | |||
--><span style="{{#ifexpr: {{Template:Cipher|{{{show|111111}}}|3}} || display: none;}}"><span style="border-left: 1.2em solid #FEF8C6; padding-left: 0.3em; white-space: nowrap;" title="Older version, yet still maintained">Older version, still maintained</span><br /></span><!-- | |||
--><span style="{{#ifexpr: {{Template:Cipher|{{{show|111111}}}|2}} || display: none;}}"><span style="border-left: 1.2em solid #D4F4B4; padding-left: 0.3em; white-space: nowrap;" title="Current stable version">'''Current stable version'''</span><br /></span><!-- | |||
--><span style="{{#ifexpr: {{Template:Cipher|{{{show|111111}}}|1}} || display: none;}}"><span style="border-left: 1.2em solid #FED1A0; padding-left: 0.3em; white-space: nowrap;" title="Latest preview version of a future release">Latest preview version</span><br /></span><!-- | |||
--><span style="{{#ifexpr: {{Template:Cipher|{{{show|111111}}}|0}} || display: none;}}"><span style="border-left: 1.2em solid #C1E6F5; padding-left: 0.3em; white-space: nowrap;" title="Future release">Future release</span></span><!-- | |||
--></div> | |||
+ | <!-- + Horizontal legend, displayed as table --> | ||
-->{{ | | t = {{(!}} class="templateVersion t wikitable " style="text-align: center; {{{style|}}}" | ||
! class="hintergrundfarbe5 t" style="padding: 0.5ex 0.75em; text-align: left;"{{!}} Legend: | |||
{{!}} style="background-color: #FDB3AB; padding: 0.5ex 0.75em; {{#ifexpr: {{Template:Cipher|{{{show|11111}}}|4}} || display: none;}}" title="Old version, no longer maintained"{{!}} Old version, not maintained | |||
{{!}} style="background-color: #FEF8C6; padding: 0.5ex 0.75em; {{#ifexpr: {{Template:Cipher|{{{show|11111}}}|3}} || display: none;}}" title="Older version, yet still maintained"{{!}} Older version, still maintained | |||
- | {{!}} style="background-color: #D4F4B4; padding: 0.5ex 0.75em; {{#ifexpr: {{Template:Cipher|{{{show|11111}}}|2}} || display: none;}}" title="Current stable version"{{!}} '''Current stable version''' | ||
{{!}} style="background-color: #FED1A0; padding: 0.5ex 0.75em; {{#ifexpr: {{Template:Cipher|{{{show|11111}}}|1}} || display: none;}}" title="Latest preview version of a future release"{{!}} Latest preview version | |||
{{!}} style="background-color: #C1E6F5; padding: 0.5ex 0.75em; {{#ifexpr: {{Template:Cipher|{{{show|11111}}}|0}} || display: none;}}" title="Future release"{{!}} Future release | |||
{{!}} style="background-color: # | |||
{{ | {{!)}}<!-- | ||
+ Vertical legend, displayed as table | |||
-->| tv = {{(!}} class="templateVersion tv wikitable floatright" style="text-align: left; {{{style|}}}" | |||
{{!}} class="hintergrundfarbe5 tv" style="padding: 0.5ex 0.75em;"{{!}} Legend: | |||
{{!-}} | |||
{{!}} style="background-color: #FDB3AB; padding: 0.5ex 0.75em; {{#ifexpr: {{Template:Cipher|{{{show|11111}}}|4}} || display: none;}}" title="Old version, no longer maintained"{{!}} {{#ifexpr: {{Template:Cipher|{{{show|11111}}}|3}} | Old version, not maintained}} | |||
{{!-}} | |||
{{!}} style="background-color: #FEF8C6; padding: 0.5ex 0.75em; {{#ifexpr: {{Template:Cipher|{{{show|11111}}}|3}} || display: none;}}" title="Older version, yet still maintained"{{!}} Older version, still maintained | |||
{{!-}} | |||
{{!}} style="background-color: #D4F4B4; padding: 0.5ex 0.75em; {{#ifexpr: {{Template:Cipher|{{{show|11111}}}|2}} || display: none;}}" title="Current stable version"{{!}} '''Current stable version''' | |||
{{!-}} | |||
{{!}} style="background-color: #FED1A0; padding: 0.5ex 0.75em; {{#ifexpr: {{Template:Cipher|{{{show|11111}}}|1}} || display: none;}}" title="Latest preview version of a future release"{{!}} Latest preview version | |||
{{!-}} | |||
{{!}} style="background-color: #C1E6F5; padding: 0.5ex 0.75em; {{#ifexpr: {{Template:Cipher|{{{show|11111}}}|0}} || display: none;}}" title="Future release"{{!}} Future release | |||
{{!)}}<!-- | |||
+ Old version ("old version" >> o) | |||
-->| o = {{#if: {{{2|}}} | style="background-color: #FDB3AB; {{{style|}}}" title="Old version, no longer maintained" data-sort-value="{{{sortKey|{{{2|}}}}}}" {{!}} <span style="display: none;">Old version, no longer maintained:</span> {{{2|}}} |}}<!-- | |||
+ Current stable version of an older branch ("current older version" >> co) | |||
-->| co = class="templateVersion co" {{#if: {{{2|}}} | style="background-color: #FEF8C6; {{{style|}}}" title="Older version, yet still maintained" data-sort-value="{{{sortKey|{{{2|}}}}}}" {{!}} <span style="display: none;">Older version, yet still maintained:</span> {{{2|}}} |}}<!-- | |||
+ Current stable version ("current stable version" >> c) | |||
-->| c = class="templateVersion c" {{#if: {{{2|}}} | style="background-color: #D4F4B4; {{{style|}}}" title="Current stable version" data-sort-value="{{{sortKey|{{{2|}}}}}}" {{!}} <span style="display: none;">Current stable version:</span> '''{{{2|}}}''' |}} <!-- | |||
+ Latest preview version ("current preliminary version" >> cp) | |||
-->| cp = class="templateVersion cp" {{#if: {{{2|}}} | style="background-color: #FED1A0; {{{style|}}}" title="Latest preview version of a future release" data-sort-value="{{{sortKey|{{{2|}}}}}}" {{!}} <span style="display: none;">Latest preview version of a future release:</span> {{{2|}}} |}} <!-- | |||
+ Future release ("prospective version" >> p) | |||
-->| p = class="templateVersion p" {{#if: {{{2|}}} | style="background-color: #C1E6F5; {{{style|}}}" title="Future release" data-sort-value="{{{sortKey|{{{2|}}}}}}" {{!}} <span style="display: none;">Future release:</span> {{{2|}}} |}}<!-- | |||
+ Unknown type parameter | |||
-->| #default = {{#if: {{{1|}}} | <span style="font-size: 1.2em; color: red; font-weight: bold;">[[Template:Version|Error]]:Unknown type parameter</span> |}}<!-- | |||
-->}}</includeonly> |
Latest revision as of 13:59, 3 April 2022
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}