This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org

Difference between revisions of "Template:Top 10 2010 Developer Edition De:SubsectionAdvancedTemplate"

From OWASP
Jump to: navigation, search
m (Test I: Original setup with <onlyinclude> in LanguageFile)
m
Line 1: Line 1:
 
{{#ifeq: {{{type}}} | box |
 
{{#ifeq: {{{type}}} | box |
 
     {{#switch: {{{number}}}
 
     {{#switch: {{{number}}}
 +
      | firstleft <!-- left half -->
 +
          <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px;">
 +
              <tr>
 +
                <td style="vertical-align: top; padding:5px;
 +
                    width: 50%;
 +
                    border: 3px solid {{Top_10:BorderColor|year={{{year}}}}};
 +
                    background-color: {{Top_10:BackgroundColor|year={{{year}}}}};">
 +
                <div style="font-style: bold;
 +
                {{#switch: {{{year}}}
 +
                    | 2013=color: #000000; border-bottom: #999999 solid 1px; margin-bottom: 3px; padding-bottom: 3px;
 +
                    | #default=color: #4F81BD;
 +
                }};
 +
                font-size: 150%;">
 +
    | firstwhole = <!-- first element with full width -->
 +
          <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px;">
 +
              <tr>
 +
                <td colspan="2" style="vertical-align: top; padding:5px;
 +
                    width: 50%;
 +
                    border: 3px solid {{Top_10:BorderColor|year={{{year}}}}};
 +
                    background-color: {{Top_10:BackgroundColor|year={{{year}}}}};">
 +
                <div style="font-style: bold;
 +
                {{#switch: {{{year}}}
 +
                    | 2013=color: #000000; border-bottom: #999999 solid 1px; margin-bottom: 3px; padding-bottom: 3px;
 +
                    | #default=color: #4F81BD;
 +
                }};
 +
                font-size: 150%;">
 
       | 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;">

Revision as of 13:00, 28 March 2013