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
(added new variables 'position' and 'subsection'; renamed def to defOp)
Line 1: Line 1:
 
{{#ifeq: {{{type}}} | box |
 
{{#ifeq: {{{type}}} | box |
     {{#switch: {{{number}}}
+
     {{#switch: {{{position}}}
       | firstleft <!-- left half -->
+
       | firstLeft <!-- left half -->
          <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px;">
 
 
               <tr>
 
               <tr>
 
               <td  
 
               <td  
       | firstwhole = <!-- first element with full width -->
+
       | firstWhole = <!-- first element with full width -->
          <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px;">
 
 
               <tr>
 
               <tr>
 
               <td colspan="2";
 
               <td colspan="2";
 
       | left = <!-- left half -->
 
       | left = <!-- left half -->
          <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px;">
+
              </td></tr>
 
               <tr>
 
               <tr>
 
               <td  
 
               <td  
 
       | right = <!-- right half -->
 
       | right = <!-- right half -->
                </td>
 
                <td
 
      | whole =       
 
            <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px;">
 
              <tr>
 
              <td
 
      | 1 = <!-- number 1: Links 1. Eintrag -->
 
            <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px;">
 
              <tr>
 
              <td
 
      | 2 =  <!-- number 2: Rechts 2. Eintrag-->
 
 
               </td>  
 
               </td>  
 
               <td  
 
               <td  
       | 3 = <!-- number 3 Links 1. Verteidigungs-Option -->
+
       | whole =      
              </td></tr>
 
              <tr>
 
              <td
 
      | 4 
 
      | def2 = <!-- 2nd defending Option 2, right -->
 
              </td>
 
              <td
 
      | 5 
 
      | def3 = <!-- 3.rd defending Option 3, left -->
 
              </td></tr>
 
              <tr>
 
              <td
 
      | 6
 
      | def=  <!-- number 6: Ganze Breite (2 Spalten) -->
 
 
               </td></tr>
 
               </td></tr>
 
               <tr>
 
               <tr>
 
               <td colspan="2";
 
               <td colspan="2";
       | 7 =  <!-- number 7 Links Auswirkung(en) auf den Benutzer -->
+
       | #default = <!-- no 'position' set yet (old style)-->
              </td></tr>
+
        {{#switch: {{{number}}}
              <tr>
+
          | firstLeft <!-- left half -->
              <td  
+
              <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px;">
      | 8 =  <!-- number 8: References right -->
+
                  <tr>
              </td>  
+
                  <td
              <td  
+
          | firstWhole = <!-- first element with full width -->
      | 9 =  <!-- number 9: References left  -->
+
                <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px;">
              </td></tr>
+
                  <tr>
              <tr>
+
                  <td colspan="2";
              <td  
+
          | left = <!-- left half -->
      | 11   
+
              <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px;">
      | def1 = <!-- defendingOption 1: Tabellen-Anfang, Links 1. Verteidigungs-Option -->
+
                  <tr>
          <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px; margin:0; font-size:125%">
+
                  <td
            <tr>
+
          | right = <!-- right half -->
            <td  
+
                      </td>
      | 12 = <!-- number 12: Tabellen-Anfang, Ganze Breite (2 Spalten) Test Format für howPrevent -->
+
                      <td
              </td></tr>
+
          | whole =       
              <tr>
+
                  <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px;">
              <td colspan="2";  
+
                  <tr>
      | 16 =  <!-- number 16: Tabellen-Anfang, Ganze Breite (2 Spalten) -->
+
                  <td
          <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px; margin:0; font-size:125%">
+
          | 1 = <!-- number 1: Links 1. Eintrag -->
            <tr>
+
                <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px;">
            <td colspan="2";
+
                  <tr>
 +
                  <td
 +
          | 2 =  <!-- number 2: Rechts 2. Eintrag-->
 +
                  </td>
 +
                  <td
 +
          | 3 =  <!-- number 3 Links 1. Verteidigungs-Option -->
 +
                  </td></tr>
 +
                  <tr>
 +
                  <td
 +
          | 4 
 +
          | defOp2 = <!-- 2nd defending Option 2, right -->
 +
                  </td>
 +
                  <td
 +
          | 5 
 +
          | defOp3 = <!-- 3.rd defending Option 3, left -->
 +
                  </td></tr>
 +
                  <tr>
 +
                  <td
 +
          | 6
 +
          | defOp=  <!-- number 6: Ganze Breite (2 Spalten) -->
 +
                  </td></tr>
 +
                  <tr>
 +
                  <td colspan="2";
 +
          | 7 =  <!-- number 7 Links Auswirkung(en) auf den Benutzer -->
 +
                  </td></tr>
 +
                  <tr>
 +
                  <td  
 +
          | 8 =  <!-- number 8: References right -->
 +
                  </td>  
 +
                  <td  
 +
          | 9 =  <!-- number 9: References left  -->
 +
                  </td></tr>
 +
                  <tr>
 +
                  <td  
 +
          | 11   
 +
          | defOp1 = <!-- defendingOption 1: Tabellen-Anfang, Links 1. Verteidigungs-Option -->
 +
                  <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px; margin:0; font-size:125%">
 +
                      <tr>
 +
                      <td  
 +
          | 12 = <!-- number 12: Tabellen-Anfang, Ganze Breite (2 Spalten) Test Format für howPrevent -->
 +
                      </td></tr>
 +
                      <tr>
 +
                      <td colspan="2";  
 +
          | 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%">
 +
                      <tr>
 +
                      <td colspan="2";
 +
        }}
 
     }}
 
     }}
 
     style="vertical-align: top; padding:5px; width: 50%;
 
     style="vertical-align: top; padding:5px; width: 50%;
Line 80: Line 100:
 
           font-size: 150%;">
 
           font-size: 150%;">
 
     <!--- Box-Sub-Headline --->
 
     <!--- Box-Sub-Headline --->
     {{#switch: {{{number}}}
+
     {{#switch: {{{subsection}}}
      | left  
+
      | freetext=  {{{title}}}
      | right  
+
      | example=    {{Top_10:LanguageFile|text=exampleScenarios|risk={{{risk}}}|language={{{language}}}|year={{{year}}} }}
      | whole={{{title}}}  
+
      | howPrevent= {{Top_10:LanguageFile|text=howPrevent1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos; {{Top_10:LanguageFile|text=howPrevent2|language={{{language}}} }}
      | 1={{Top_10:LanguageFile|text=exampleScenarios|risk={{{risk}}}|language={{{language}}}|year={{{year}}} }}
+
      | defOp=      {{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 1: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}
      | 2={{Top_10:LanguageFile|text=howPrevent1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos; {{Top_10:LanguageFile|text=howPrevent2|language={{{language}}} }}
+
      | userImpact= {{Top_10:LanguageFile|text=userImpact|language={{{language}}} }}
      | 3={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 1: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}  
+
      | references= {{Top_10:LanguageFile|text=references|language={{{language}}} }}
      | 4
+
      | #default= <!-- no 'subsection' set yet (old style)-->
      | def2={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 2: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}  
+
        {{#switch: {{{number}}}  
      | 5
+
          | firstLeft
      | def3={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 3: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}
+
          | firstWhole
      | 6
+
          | left  
      | def={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }}: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}
+
          | right  
      | 7={{Top_10:LanguageFile|text=userImpact|language={{{language}}} }}
+
          | whole={{{title}}}  
      | 8={{Top_10:LanguageFile|text=references|language={{{language}}} }}
+
          | 1={{Top_10:LanguageFile|text=exampleScenarios|risk={{{risk}}}|language={{{language}}}|year={{{year}}} }}
      | 9={{Top_10:LanguageFile|text=references|language={{{language}}} }}
+
          | 2={{Top_10:LanguageFile|text=howPrevent1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos; {{Top_10:LanguageFile|text=howPrevent2|language={{{language}}} }}
      | 11
+
          | 3={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 1: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}  
      | def1={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 1: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}
+
          | 4
      | 12={{Top_10:LanguageFile|text=howPrevent1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos; {{Top_10:LanguageFile|text=howPrevent2|language={{{language}}} }}
+
          | defOp2={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 2: {{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}}} }}  
+
          | 5
 +
          | defOp3={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 3: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}
 +
          | 6
 +
          | defOp={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }}{{{title}}}: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}
 +
          | 7={{Top_10:LanguageFile|text=userImpact|language={{{language}}} }}
 +
          | 8={{Top_10:LanguageFile|text=references|language={{{language}}} }}
 +
          | 9={{Top_10:LanguageFile|text=references|language={{{language}}} }}
 +
          | 11
 +
          | defOp1={{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}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos; {{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}}} }}
 +
      }}  
 
   }}</div>
 
   }}</div>
 
|<br/>{{Top_10_2010:SubsectionColoredTemplate|
 
|<br/>{{Top_10_2010:SubsectionColoredTemplate|
   {{#switch: {{{number}}}  
+
    {{#switch: {{{subsection}}}
    | left  
+
      | freetext=   {{{title}}}
    | right  
+
      | example=    {{Top_10:LanguageFile|text=exampleScenarios|risk={{{risk}}}|language={{{language}}}|year={{{year}}} }}
    | whole={{{title}}}  
+
      | howPrevent= {{Top_10:LanguageFile|text=howPrevent1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos; {{Top_10:LanguageFile|text=howPrevent2|language={{{language}}} }}
    | 1={{Top_10:LanguageFile|text=exampleScenarios|risk={{{risk}}}|language={{{language}}}|year={{{year}}} }}
+
      | defOp=      {{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 1: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}
    | 2={{Top_10:LanguageFile|text=howPrevent1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos; {{Top_10:LanguageFile|text=howPrevent2|language={{{language}}} }}
+
      | userImpact= {{Top_10:LanguageFile|text=userImpact|language={{{language}}} }}
    | 3={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 1: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}  
+
      | references= {{Top_10:LanguageFile|text=references|language={{{language}}} }}
    | 4
+
      | #default= <!-- no 'subsection' set yet (old style)-->
    | def2={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 2: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}  
+
      {{#switch: {{{number}}}  
    | 5
+
        | firstLeft
    | def3={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 3: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}
+
        | firstWhole
    | 6
+
        | left  
    | def= {{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }}: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}
+
        | right  
    | 7={{Top_10:LanguageFile|text=userImpact|language={{{language}}} }}
+
        | whole={{{title}}}  
    | 8={{Top_10:LanguageFile|text=references|language={{{language}}} }}
+
        | 1={{Top_10:LanguageFile|text=exampleScenarios|risk={{{risk}}}|language={{{language}}}|year={{{year}}} }}
    | 9={{Top_10:LanguageFile|text=references|language={{{language}}} }}
+
        | 2={{Top_10:LanguageFile|text=howPrevent1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos; {{Top_10:LanguageFile|text=howPrevent2|language={{{language}}} }}
    | 11
+
        | 3={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 1: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}  
    | def1={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 1: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}
+
        | 4
    | 12={{Top_10:LanguageFile|text=howPrevent1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos; {{Top_10:LanguageFile|text=howPrevent2|language={{{language}}} }}
+
        | defOp2={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 2: {{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}}} }}  
+
        | 5
  }}|}}
+
        | defOp3={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 3: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}
 +
        | 6
 +
        | defOp= {{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }}{{{title}}}: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}
 +
        | 7={{Top_10:LanguageFile|text=userImpact|language={{{language}}} }}
 +
        | 8={{Top_10:LanguageFile|text=references|language={{{language}}} }}
 +
        | 9={{Top_10:LanguageFile|text=references|language={{{language}}} }}
 +
        | 11
 +
        | defOp1={{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}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos; {{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}}} }}  
 +
      }}
 +
  }}|}}
 
}}
 
}}

Revision as of 19:37, 6 April 2013