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

From OWASP
Jump to: navigation, search
m (Layout has ths same issue like howPrevent2 => back to it)
m (test left/right/whole and 12='large' howPrevent)
Line 1: Line 1:
 
{{#ifeq: {{{type}}} | box |
 
{{#ifeq: {{{type}}} | box |
 
 
     {{#switch: {{{number}}}
 
     {{#switch: {{{number}}}
 +
      | left = <!-- 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%;">
 +
      | right = <!-- right half -->
 +
                </td>
 +
                <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;
 +
                }};
 +
      | whole =       
 +
            <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;
 +
                }};
 
       | 1 = <!-- number 1: Links 1. Eintrag -->
 
       | 1 = <!-- number 1: Links 1. Eintrag -->
 
           <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 39: Line 74:
 
             <tr>
 
             <tr>
 
             <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">
 +
      | 12 =  <!-- number 16: Tabellen-Anfang, Ganze Breite (2 Spalten) Test Format für howPrevent -->
 +
          <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px; margin:0; font-size:125%">
 +
            <tr>
 +
            <td colspan="2" style="vertical-align: top; width: 50%; padding: 5px; border: 3px solid #4F81BD; background-color: #F2F2F2">
 
       | 16 =  <!-- number 16: Tabellen-Anfang, Ganze Breite (2 Spalten) -->
 
       | 16 =  <!-- number 16: Tabellen-Anfang, Ganze Breite (2 Spalten) -->
 
           <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px; margin:0; font-size:125%">
 
           <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px; margin:0; font-size:125%">
Line 44: Line 83:
 
             <td colspan="2" style="vertical-align: top; width: 50%; padding: 5px; border: 3px solid #4F81BD; background-color: #F2F2F2">
 
             <td colspan="2" 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%;">
 
<div style="font-style: bold; color: #4F81BD; font-size: 150%;">
{{#switch: {{{number}}}  
+
{{#switch: {{{number}}}
 +
  | left
 +
  | right
 +
  | whole={{{title}}}  
 
   | 1={{Top_10:LanguageFile|text=exampleScenarios|risk={{{risk}}}|language={{{language}}}|year={{{year}}} }}
 
   | 1={{Top_10:LanguageFile|text=exampleScenarios|risk={{{risk}}}|language={{{language}}}|year={{{year}}} }}
 
   | 2={{Top_10:LanguageFile|text=howPrevent1|language={{{language}}} }} '{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}' {{Top_10:LanguageFile|text=howPrevent2|language={{{language}}} }}
 
   | 2={{Top_10:LanguageFile|text=howPrevent1|language={{{language}}} }} '{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}' {{Top_10:LanguageFile|text=howPrevent2|language={{{language}}} }}
Line 57: Line 98:
 
   | 9={{Top_10:LanguageFile|text=references|language={{{language}}} }}
 
   | 9={{Top_10:LanguageFile|text=references|language={{{language}}} }}
 
   | 11={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 1: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}
 
   | 11={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 1: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}
 +
  | 12={{Top_10:LanguageFile|text=howPrevent1|language={{{language}}} }} '{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}' {{Top_10:LanguageFile|text=howPrevent2|language={{{language}}} }}
 
   | 16={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }}: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}  
 
   | 16={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }}: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}  
 
}}</div>
 
}}</div>
 
|<br/>{{Top_10_2010:SubsectionColoredTemplate|{{#switch: {{{number}}}  
 
|<br/>{{Top_10_2010:SubsectionColoredTemplate|{{#switch: {{{number}}}  
 +
  | left
 +
  | right
 +
  | whole={{{title}}}
 
   | 1={{Top_10:LanguageFile|text=exampleScenarios|risk={{{risk}}}|language={{{language}}}|year={{{year}}} }}
 
   | 1={{Top_10:LanguageFile|text=exampleScenarios|risk={{{risk}}}|language={{{language}}}|year={{{year}}} }}
 
   | 2={{Top_10:LanguageFile|text=howPrevent1|language={{{language}}} }} '{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}' {{Top_10:LanguageFile|text=howPrevent2|language={{{language}}} }}
 
   | 2={{Top_10:LanguageFile|text=howPrevent1|language={{{language}}} }} '{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}' {{Top_10:LanguageFile|text=howPrevent2|language={{{language}}} }}
Line 70: Line 115:
 
   | 9={{Top_10:LanguageFile|text=references|language={{{language}}} }}
 
   | 9={{Top_10:LanguageFile|text=references|language={{{language}}} }}
 
   | 11={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 1: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}
 
   | 11={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 1: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}
 +
  | 12={{Top_10:LanguageFile|text=howPrevent1|language={{{language}}} }} '{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}' {{Top_10:LanguageFile|text=howPrevent2|language={{{language}}} }}
 
   | 16={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }}: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}  
 
   | 16={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }}: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}  
 
}}|}}
 
}}|}}
 
}}
 
}}

Revision as of 11:51, 7 March 2013