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

From OWASP
Jump to: navigation, search
(sipmle update solved 'subsection=vulnerableTo' issue)
(deleted all old lines besides number=<1|2|3|4|left|right|whole> to stay backward compatible for Template:Top 10 2010:SubsectionAdvancedTemplate; but please do NOT use any longer)
Line 95: Line 95:
 
               <td colspan="2"  
 
               <td colspan="2"  
 
       | #default = <!-- no 'position' set yet (old style)-->
 
       | #default = <!-- no 'position' set yet (old style)-->
         {{#switch: {{{number}}}
+
         {{#switch: {{{number}}} <!--- backward compatible for Template:Top 10 2010:SubsectionAdvancedTemplate; please do NOT use any longer --->
          | firstLeft = <!-- left half -->
+
              {{Top_10:SubsectionTableBeginTemplate|type=main}}
+
                  <tr>
+
                  <td
+
          | firstWhole = <!-- first element with full width -->
+
                {{Top_10:SubsectionTableBeginTemplate|type=main}}
+
                  <tr>
+
                  <td colspan="2"
+
 
           | left = <!-- left half -->
 
           | left = <!-- left half -->
 
               {{Top_10:SubsectionTableBeginTemplate|type=main}}
 
               {{Top_10:SubsectionTableBeginTemplate|type=main}}
Line 128: Line 120:
 
                   <tr>
 
                   <tr>
 
                   <td  
 
                   <td  
           | 4  
+
           | 4 = <!-- 2nd defending Option 2, right -->
          | defOp2 = <!-- 2nd defending Option 2, right -->
+
 
                   </td>
 
                   </td>
 
                   <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 -->
 
                  {{Top_10:SubsectionTableBeginTemplate|type=headertab}}
 
                      <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) -->
 
                  {{Top_10:SubsectionTableBeginTemplate|type=headertab}}
 
                      <tr>
 
                      <td colspan="2"
 
 
         }}
 
         }}
 
     }}
 
     }}
Line 187: Line 144:
 
       | vulnerableTo={{Top_10:LanguageFile|text=vulnerableTo1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos;{{Top_10:LanguageFile|text=vulnerableTo2|language={{{language}}} }}
 
       | vulnerableTo={{Top_10:LanguageFile|text=vulnerableTo1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos;{{Top_10:LanguageFile|text=vulnerableTo2|language={{{language}}} }}
 
       | #default= <!-- no 'subsection' set yet (old style)-->
 
       | #default= <!-- no 'subsection' set yet (old style)-->
         {{#switch: {{{number}}}  
+
         {{#switch: {{{number}}} <!--- backward compatible for Template:Top 10 2010:SubsectionAdvancedTemplate; please do NOT use any longer --->
          | firstLeft
+
          | firstWhole
+
 
           | left  
 
           | left  
 
           | right  
 
           | right  
           | whole={{{title}}}  
+
           | whole={{{title}}}
           | 1={{Top_10:LanguageFile|text=exampleScenarios|risk={{{risk}}}|language={{{language}}}|year={{{year}}} }}
+
           | 1={{Top_10:LanguageFile|text=vulnerableTo1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos;
 
           | 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}}} }}
 
           | 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}}} }}
           | 3={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 1: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}  
+
           | 3={{Top_10:LanguageFile|text=exampleScenarios|risk={{{risk}}}|language={{{language}}}|year={{{year}}} }}
           | 4
+
           | 4={{Top_10:LanguageFile|text=references|language={{{language}}} }}
          | defOp2={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 2: {{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>
Line 221: Line 164:
 
       | vulnerableTo= {{Top_10:LanguageFile|text=vulnerableTo1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos; {{Top_10:LanguageFile|text=vulnerableTo2|language={{{language}}} }}
 
       | vulnerableTo= {{Top_10:LanguageFile|text=vulnerableTo1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos; {{Top_10:LanguageFile|text=vulnerableTo2|language={{{language}}} }}
 
       | #default= <!-- no 'subsection' set yet (old style)-->
 
       | #default= <!-- no 'subsection' set yet (old style)-->
       {{#switch: {{{number}}}  
+
       {{#switch: {{{number}}} <!--- backward compatible for Template:Top 10 2010:SubsectionAdvancedTemplate; please do NOT use any longer --->
        | firstLeft
+
        | firstWhole
+
 
         | left  
 
         | left  
 
         | right  
 
         | right  
 
         | whole={{{title}}}  
 
         | whole={{{title}}}  
         | 1={{Top_10:LanguageFile|text=exampleScenarios|risk={{{risk}}}|language={{{language}}}|year={{{year}}} }}
+
        | left
 +
        | right
 +
        | whole={{{title}}}
 +
         | 1={{Top_10:LanguageFile|text=vulnerableTo1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos;
 
         | 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}}} }}
 
         | 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}}} }}
         | 3={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 1: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}  
+
         | 3={{Top_10:LanguageFile|text=exampleScenarios|risk={{{risk}}}|language={{{language}}}|year={{{year}}} }}
         | 4
+
         | 4={{Top_10:LanguageFile|text=references|language={{{language}}} }}
        | defOp2={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 2: {{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}}} }}
+
      }}
+
 
   }}|}}
 
   }}|}}
 
}} </onlyinclude>
 
}} </onlyinclude>

Revision as of 08:35, 8 April 2013

Usage:

  1. Start Table
    • {{Top_10:SubsectionTableBeginTemplate|type=main}} <!--- in the main page --->
    • {{Top_10:SubsectionTableBeginTemplate|type=headertab}} <!--- in the languages part, like JAVA --->
  2. hint: use 'position=firstLeft' or 'firstWhole' for the 1st element
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate  
  |type={{Top_10_2010:StyleTemplate}} <!--- => box --->
  |subsection=<defOp|example|freetext|howPrevent|references|userImpact|vulnerableTo>  
  |title=your title <!--- additional parameter for subsection=freetext or defOp (for the number) --->
  |position=<firstLeft|firstWhole|left|right|whole>  
  |risk=1 <!--- additional parameter for subsection=<defOp|example|howPrevent|vulnerableTo>:
  according to Template:Top_10_2010_Developer_Edition_De:ByTheNumbers --->
  |year=<2010|2013> <!--- changes year of the Top-10-Version for subsection=<defOp|example|howPrevent|vulnerableTo> --->
  |language=de <!--- additional parameter for all subsection-tags without fulltext --->
  according to Template:Top 10:LanguageFile --->
}}  
 outdatet:  
  |number=<1|2|3|4|left|right|whole> <!--- backward compatible for Template:Top 10 2010:SubsectionAdvancedTemplate; please do NOT use any longer --->
3. End Table
  • {{Top_10:SubsectionTableEndTemplate}} <!--- in the main page --->
  • {{Top_10_2010_Developer_Edition_De:BottomAdvancedTemplate <!--- end of the page page --->
|type={{Top_10_2010:StyleTemplate}}
|useprev=PrevLink_Germany_Projekte
|prev=Top_10_fuer_Entwickler
|usenext=NextLink_Germany_Projekte
|next=Top_10_fuer_Entwickler/Die Top-10-Risiken
}}


example:

{{Top_10:SubsectionTableBeginTemplate|type=main}} {{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate
|type={{Top_10_2010:StyleTemplate}}
|subsection=vulnerableTo
|position=firstLeft
|risk=1
|year=2013
|language=de
}}
1st box
{{Top_10:SubsectionTableEndTemplate}}


Bin ich durch 'Injection' verwundbar?

1st box

Wie kann ich 'Injection' verhindern?

2nd box

Mögliche Angriffsszenarien

3rd box

Referenzen

4th box

Verteidigungs-Option 1 gegen 'Injection':

5th box (big box)