Difference between revisions of "Template:EOL"

From DAVE Developer's Wiki
Jump to: navigation, search
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
Usage: <nowiki>{{EOL|status= |NEW-productname-page= }}</nowiki> where:
+
Usage: <nowiki>{{EOL|width= |iconwidth= |fontsize= |status= |NEW-productname-page=}}</nowiki> where:
 +
* width: value in px (symbol px is not required)
 +
* iconwidth: value in px (symbol px is not required)
 +
* fontsize: value in pt (symbol pt is not required)
 
* status: can be:
 
* status: can be:
 
** ACT (means Active)
 
** ACT (means Active)
** NFU (Not Reccomended)
+
** NFU (Not Recommended)
 
** EOL (End Of Life)
 
** EOL (End Of Life)
 
in cases of NFU or EOL the other link is required
 
in cases of NFU or EOL the other link is required
 
* NEW-productname-page: page name (internal link) of the new product
 
* NEW-productname-page: page name (internal link) of the new product
Examples:
 
<nowiki>{{EOL|status=ACT|NEW-productname-page= }}</nowiki>:
 
{{EOL|status=ACT |NEW-productname-page=pluto page }}
 
<nowiki>{{EOL|status=NFU|NEW-productname-page=pluto }}</nowiki>:
 
{{EOL|status=NFU |NEW-productname-page=plut }}
 
<nowiki>{{EOL|status=EOL|NEW-productname-page=pluto }}</nowiki>:
 
{{EOL|status=EOL |NEW-productname-page=pluto }}
 
 
</noinclude>
 
</noinclude>
  
 
<includeonly>
 
<includeonly>
<div style="float:left;border:solid #73B2C7 2px;margin:1px">
+
{{#switch: {{{status}}}
{| cellspacing="0" style="width:600px;background:#ededed"
+
| ACT = <div style="float:left;border:solid #FFFFFF 2px;margin:2px">
| style="width:100px;height:45px;background:#ededed;text-align:center;font-size:14pt" |
+
| NFU = <div style="float:left;border:solid #ededed 2px;margin:2px">
{{#switch: status
+
| EOL = <div style="float:left;border:solid #FF0000 2px;margin:2px">
| ACT: A
 
| NFU: B
 
| EOL: C [[File:EOL.png|150px]]
 
 
}}  
 
}}  
| style="font-size:14pt;padding:4pt;line-height:1.25em" |  
+
{| cellspacing="0" style="width:{{{width}}}px;background:#FFFFFF"
{{#switch: status
+
| style="height:45px;background:#FFFFFF;text-align:center;font-size:{{{fontsize}}}pt" |
  | ACT: The product is active
+
{{#switch: {{{status}}}
  | NFU: The product is Not Reccomended for new designs. Please refer to this product: [[{{{NEW-productname-page}}}]]
+
| ACT = [[File:Traffic-light-GREEN.png|{{{iconwidth}}}px]]
  | EOL: The product is End Of Life for new designs. Please refer to this product: [[{{{NEW-productname-page}}}]]
+
| NFU = [[File:Traffic-light-YELLOW.png|{{{iconwidth}}}px]]
 +
| EOL = [[File:Traffic-light-RED.png|{{{iconwidth}}}px]]
 +
}}
 +
| style="font-size:{{{fontsize}}}pt;padding:4pt;line-height:1.25em" |  
 +
{{#switch: {{{status}}}
 +
  | ACT = The product is '''ACTIVE'''
 +
  | NFU = The product is '''NOT RECOMMENDED''' for new designs. Please refer to this product: [[{{{NEW-productname-page}}}]]
 +
  | EOL = The product is '''END OF LIFE'''. Please refer to this product: [[{{{NEW-productname-page}}}]]
 
}}
 
}}
 
|}</div>
 
|}</div>
 
</includeonly>
 
</includeonly>

Latest revision as of 12:38, 21 January 2022

Usage: {{EOL|width= |iconwidth= |fontsize= |status= |NEW-productname-page=}} where:

  • width: value in px (symbol px is not required)
  • iconwidth: value in px (symbol px is not required)
  • fontsize: value in pt (symbol pt is not required)
  • status: can be:
    • ACT (means Active)
    • NFU (Not Recommended)
    • EOL (End Of Life)

in cases of NFU or EOL the other link is required

  • NEW-productname-page: page name (internal link) of the new product