Difference between revisions of "Template:Top 10 2010:SubsectionAdvancedTemplate"

From OWASP
Jump to: navigation, search
Line 2: Line 2:
  
 
     {{#switch: {{{number}}}
 
     {{#switch: {{{number}}}
 +
<!-- Don't think these are used
 
       | left = <!-- left half -->
 
       | left = <!-- left half -->
 
           <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px;">
 
           <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px;">
Line 7: Line 8:
 
       | right = <!-- right half -->
 
       | right = <!-- right half -->
 
                 </td>  
 
                 </td>  
 +
-->
 
       | 1 = <!-- number 1 -->
 
       | 1 = <!-- number 1 -->
 
           <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px;">
 
           <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px;">
Line 19: Line 21:
 
                 </td>
 
                 </td>
 
   }}
 
   }}
                 <td style="vertical-align: top; width: 50%; padding: 5px; border: 3px solid #4F81BD; background-color: #F2F2F2">
+
                 <td style="vertical-align: top; width: {{#ifeq: {{{width}}} || 50% | {{{width}}} }};
 +
                    padding: 5px; border: 3px solid #4F81BD; background-color: #F2F2F2">
  
 
<div style="font-style: bold; color: #4F81BD; font-size: 150%;">{{#switch: {{{number}}} | 1=Am I Vulnerable To {{Top_10_2010:ByTheNumbers|{{{risk}}}|year={{{year}}}}}? | 2=How Do I Prevent {{Top_10_2010:ByTheNumbers|{{{risk}}}|year={{{year}}}}}? | 3=Example Scenarios | 4=References | left={{{title}}} | right={{{title}}} | center={{{title}}} }}</div>
 
<div style="font-style: bold; color: #4F81BD; font-size: 150%;">{{#switch: {{{number}}} | 1=Am I Vulnerable To {{Top_10_2010:ByTheNumbers|{{{risk}}}|year={{{year}}}}}? | 2=How Do I Prevent {{Top_10_2010:ByTheNumbers|{{{risk}}}|year={{{year}}}}}? | 3=Example Scenarios | 4=References | left={{{title}}} | right={{{title}}} | center={{{title}}} }}</div>
 
|<br/>{{Top_10_2010:SubsectionColoredTemplate|{{#switch: {{{number}}} | 1=Am I Vulnerable To {{Top_10_2010:ByTheNumbers|{{{risk}}}|year={{{year}}}}}? | 2=How Do I Prevent {{Top_10_2010:ByTheNumbers|{{{risk}}}|year={{{year}}}}}? | 3=Example Scenarios | 4=References | left={{{title}}} | right={{{title}}} | center={{{title}}} }}|}}
 
|<br/>{{Top_10_2010:SubsectionColoredTemplate|{{#switch: {{{number}}} | 1=Am I Vulnerable To {{Top_10_2010:ByTheNumbers|{{{risk}}}|year={{{year}}}}}? | 2=How Do I Prevent {{Top_10_2010:ByTheNumbers|{{{risk}}}|year={{{year}}}}}? | 3=Example Scenarios | 4=References | left={{{title}}} | right={{{title}}} | center={{{title}}} }}|}}
 
}}
 
}}

Revision as of 19:35, 20 February 2013