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

From OWASP
Jump to: navigation, search
Line 1: Line 1:
{{#ifeq: {{{type}}} | box |
+
{{#ifeq: {{{type}}} | box  
 
+
  |
 
     {{#switch: {{{number}}}
 
     {{#switch: {{{number}}}
      | 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;">
              <tr>
+
              <tr>
      | 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;">
              <tr>
+
              <tr>
      | 2 =  <!-- number 2 -->
+
        | 2 =  <!-- number 2 -->
                </td>  
+
                  </td>  
      | 3 =  <!-- number 3 -->
+
        | 3 =  <!-- number 3 -->
                </td>
+
                  </td>
 
               </tr>
 
               </tr>
 
               <tr>
 
               <tr>
      | 4 =  <!-- number 4 -->
+
        | 4 =  <!-- number 4 -->
                </td>
+
                  </td>
  }}
+
    }}
                <td style="vertical-align: top; width: 50%; padding: 5px; border: 3px solid #4F81BD; background-color: #F2F2F2">
+
    <td style="vertical-align: top; width: 50%; 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%;">
|<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}}} }}|}}
+
        {{#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}}}
 +
        }}
 +
  |}}
 
}}
 
}}

Revision as of 20:20, 20 February 2013