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 (centralized: style="vertical-align: top; width: 50%; padding: 5px; border: 3px solid {{Top_10:BorderColor|year={{{year}}}}}; background-color: {{Top_10:BackgroundColor|year={{{year}}}}};")
m
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq: {{{type}}} | box |
+
<!---------------------------------------------------------------------------->
    {{#switch: {{{number}}}
+
<!-- Template:Top 10 2010 Developer Edition De:SubsectionAdvancedTemplate  -->
      | firstleft <!-- left half -->
+
<!---------------------------------------------------------------------------->
          <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px;">
+
==='''Usage:''' ===
              <tr>
+
# Start Table
                 <td
+
#* <nowiki>{{Top_10:SubsectionTableBeginTemplate|type=main}}      <!--- in the main page ---></nowiki>
    | firstwhole = <!-- first element with full width -->
+
#* <nowiki>{{Top_10:SubsectionTableBeginTemplate|type=headertab}} <!--- in the languages part, like JAVA ---></nowiki>
          <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px;">
+
#:
              <tr>
+
# hint: use 'position=firstLeft', 'firstWhole' or 'firstLongLeft' for the 1st element<br/>
                <td
+
::{|  
      | left = <!-- left half -->
+
| <nowiki>{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate</nowiki> ||  &nbsp;
          <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px;">
+
|-
              <tr>
+
| &nbsp;&nbsp;<nowiki>|type={{Top_10_2010:StyleTemplate}}</nowiki>  || <nowiki> <!---  => box  ---> </nowiki>
                <td
+
|-
      | right = <!-- right half -->
+
| &nbsp;&nbsp;<nowiki>|subsection=<defOp|example|freetext|howPrevent|references|userImpact|vulnerableTo></nowiki>  || &nbsp;
                </td>  
+
|-
                <td
+
| &nbsp;&nbsp;<nowiki>|title=your title</nowiki>                    || <nowiki> <!--- additional parameter for subsection=freetext or defOp (for the number) ---> </nowiki>               
      | whole =      
+
|-
            <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px;">
+
| &nbsp;&nbsp;<nowiki>|position=<firstLeft|firstWhole|firstLongLeft|left|right|whole|longLeft|longRight></nowiki>  || &nbsp;
              <tr>
+
|-  
                <td
+
| &nbsp;&nbsp;<nowiki>|risk=1                            </nowiki>  || <nowiki> <!--- additional parameter for subsection=<defOp|example|howPrevent|vulnerableTo>:</nowiki>
      | 1 = <!-- number 1: Links 1. Eintrag -->
+
|-
          <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px;">
+
| &nbsp;                                                           || according to [[:Template:Top_10_2010_Developer_Edition_De:ByTheNumbers]] <nowiki> ---> </nowiki>
 +
|-
 +
| &nbsp;&nbsp;<nowiki>|year=<2010|2013>                  </nowiki>  || <nowiki> <!--- changes year of the Top-10-Version for subsection=<defOp|example|howPrevent|vulnerableTo> ---> </nowiki>
 +
|-
 +
| &nbsp;&nbsp;<nowiki>|language=de                      </nowiki>  || <nowiki> <!--- additional parameter for all subsection-tags without fulltext ---> </nowiki>
 +
|-
 +
| &nbsp;                                                          || according to [[:Template:Top 10:LanguageFile]] <nowiki> ---> </nowiki>
 +
|-  
 +
| <nowiki>}}                                      </nowiki> || &nbsp;
 +
|-
 +
| &nbsp;outdatet:                                            || &nbsp;
 +
|-
 +
| &nbsp;&nbsp;<span style="color:red;"><nowiki>|number=<1|2|3|4|left|right|whole></nowiki></span>  || <span style="color:red;"><nowiki> <!--- backward compatible for Template:Top 10 2010:SubsectionAdvancedTemplate; please do NOT use any longer ---></nowiki></span>
 +
|}
 +
:3. End Table
 +
:* <nowiki>{{Top_10:SubsectionTableEndTemplate}}                      <!--- in the main page ---></nowiki>
 +
:* <nowiki>{{Top_10_2010_Developer_Edition_De:BottomAdvancedTemplate  <!--- end of the page ---></nowiki>
 +
::: <nowiki>    |type={{Top_10_2010:StyleTemplate}}</nowiki>
 +
::: <nowiki>    |useprev=PrevLink_Germany_Projekte</nowiki>
 +
::: <nowiki>    |prev=Top_10_fuer_Entwickler</nowiki>
 +
::: <nowiki>    |usenext=NextLink_Germany_Projekte</nowiki>
 +
::: <nowiki>    |next=Top_10_fuer_Entwickler/Die Top-10-Risiken</nowiki>
 +
:: <nowiki>}}</nowiki>
 +
 
 +
 
 +
=== '''Example:''' ===
 +
:<nowiki>{{Top_10:SubsectionTableBeginTemplate|type=main}} {{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate</nowiki>
 +
::<nowiki>|type={{Top_10_2010:StyleTemplate}}</nowiki>
 +
::<nowiki>|subsection=vulnerableTo</nowiki>
 +
::<nowiki>|position=firstLeft</nowiki>
 +
::<nowiki>|risk=1</nowiki>
 +
::<nowiki>|year=2013</nowiki>
 +
::<nowiki>|language=de</nowiki>
 +
:<nowiki>}}</nowiki>
 +
:<nowiki>1st box</nowiki>
 +
:<nowiki>{{Top_10:SubsectionTableEndTemplate}}</nowiki>
 +
 
 +
===English New Syntax===
 +
{{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}} 
 +
1st box
 +
 
 +
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|subsection=howPrevent|position=right|risk=1|year=2013}} 
 +
2nd box
 +
 
 +
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|subsection=example|position=left|risk=1|year=2013}} 
 +
3rd box
 +
 
 +
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|subsection=references|position=right|risk=1|year=2013}} 
 +
4th box
 +
 
 +
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|subsection=defOp|title=1|position=whole|risk=1|year=2013}} 
 +
5th box (big box)
 +
{{Top_10:SubsectionTableEndTemplate}}
 +
<br/>
 +
===English old Syntax 2013===
 +
{{Top_10:SubsectionTableBeginTemplate|type=main}} {{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|number=1|risk=1|year=2013}} 
 +
1st box
 +
 
 +
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|number=2|risk=1|year=2013}} 
 +
2nd box
 +
 
 +
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|number=3|risk=1|year=2013}} 
 +
3rd box
 +
 
 +
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|number=4|risk=1|year=2013}} 
 +
4th box
 +
 
 +
{{Top_10:SubsectionTableEndTemplate}}
 +
<br/>
 +
===English Old Syntax 2010===
 +
{{Top_10:SubsectionTableBeginTemplate|type=main}} {{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|number=1|risk=1}} 
 +
1st box
 +
 
 +
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|number=2|risk=1}} 
 +
2nd box
 +
 
 +
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|number=3|risk=1}} 
 +
3rd box
 +
 
 +
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|number=4|risk=1}} 
 +
4th box
 +
 
 +
{{Top_10:SubsectionTableEndTemplate}}
 +
<br/>
 +
===German 2013===
 +
{{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_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|subsection=howPrevent|position=right|risk=1|year=2013|language=de}} 
 +
2nd box
 +
 
 +
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|subsection=example|position=left|risk=1|year=2013|language=de}} 
 +
3rd box
 +
 
 +
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|subsection=references|position=right|risk=1|year=2013|language=de}} 
 +
4th box
 +
 
 +
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|subsection=defOp|title=1|position=whole|risk=1|year=2013|language=de}} 
 +
5th box (big box)
 +
 
 +
{{Top_10:SubsectionTableEndTemplate}}
 +
 
 +
<br/>
 +
===German 2010===
 +
{{Top_10:SubsectionTableBeginTemplate|type=main}} {{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|subsection=vulnerableTo|position=firstLeft|risk=1|language=de}} 
 +
1st box
 +
 
 +
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|subsection=howPrevent|position=right|risk=1|language=de}} 
 +
2nd box
 +
 
 +
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|subsection=example|position=left|risk=1|language=de}} 
 +
3rd box
 +
 
 +
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|subsection=references|position=right|risk=1|language=de}} 
 +
4th box
 +
 
 +
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|subsection=defOp|title=1|position=whole|risk=1|language=de}} 
 +
5th box (big box)
 +
 
 +
{{Top_10:SubsectionTableEndTemplate}}
 +
 
 +
<br/>
 +
===Special 2013===
 +
{{Top_10:SubsectionTableBeginTemplate|type=main}} {{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|subsection=vulnerableTo|position=firstLeft|risk=2|year=2013}} 
 +
1st box
 +
 
 +
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|subsection=howPrevent|position=right|risk=2|year=2013}} 
 +
2nd box
 +
 
 +
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|subsection=example|position=left|risk=2|year=2013}} 
 +
3rd box
 +
 
 +
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|subsection=userImpact|position=right|risk=2|year=2013}} 
 +
4th box
 +
 
 +
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|subsection=defOp|title=1|position=longLeft|risk=2|year=2013}} 
 +
5th box (long box)
 +
 
 +
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|subsection=defOp|title=2|position=right|risk=2|year=2013}}
 +
6th box
 +
 
 +
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate|type={{Top_10_2010:StyleTemplate}}|subsection=references|position=left|risk=2|year=2013}} 
 +
7th box
 +
 
 +
{{Top_10:SubsectionTableEndTemplate}}
 +
 
 +
<onlyinclude> {{#ifeq: {{{type}}} | box |
 +
    {{#switch: {{{position}}}
 +
      | firstLeft = <!-- first element: left half -->
 
               <tr>
 
               <tr>
 
               <td  
 
               <td  
       | 2 = <!-- number 2: Rechts 2. Eintrag-->
+
       | firstWhole = <!-- first element with full width -->
              </td>
 
              <td
 
      | 3 =  <!-- number 3 Links 1. Verteidigungs-Option -->
 
              </td></tr>
 
 
               <tr>
 
               <tr>
               <td  
+
               <td colspan="2"
      | 4 = <!-- number 4 Rechts 2. Verteidigungs-Option -->
+
       | firstLongLeft =
              </td>
 
              <td
 
       | 5 = <!-- number 5 Links 3. Verteidigungs-Option -->
 
              </td></tr>
 
 
               <tr>
 
               <tr>
               <td  
+
               <td rowspan="2"  
      | 6 =  <!-- number 6: Ganze Breite (2 Spalten) -->
+
       | left = <!-- left half -->
              </td></tr>
 
              <tr>
 
              <td colspan="2"  
 
       | 7 = <!-- number 7 Links Auswirkung(en) auf den Benutzer -->
 
 
               </td></tr>
 
               </td></tr>
 
               <tr>
 
               <tr>
 
               <td  
 
               <td  
       | 8 = <!-- number 8: References right -->
+
       | right = <!-- right half -->
 
               </td>  
 
               </td>  
 
               <td  
 
               <td  
       | 9 = <!-- number 9: References left  -->
+
       | whole =      
 
               </td></tr>
 
               </td></tr>
 
               <tr>
 
               <tr>
               <td  
+
               <td colspan="2"
      | 11 =  <!-- number 11: Tabellen-Anfang, Links 1. Verteidigungs-Option -->
+
       | longLeft =
          <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px; margin:0; font-size:125%">
 
            <tr>
 
            <td
 
       | 12 = <!-- number 16: Tabellen-Anfang, Ganze Breite (2 Spalten) Test Format für howPrevent -->
 
 
               </td></tr>
 
               </td></tr>
 
               <tr>
 
               <tr>
               <td colspan="2"  
+
               <td rowspan="2"  
       | 16 = <!-- number 16: Tabellen-Anfang, Ganze Breite (2 Spalten) -->
+
       | longRight = <!-- right half -->
          <table style="border: none; text-align: left; width: 100%; border-spacing:5px 5px; margin:0; font-size:125%">
+
              </td>
            <tr>
+
              <td rowspan="2"
            <td colspan="2"
+
      | #default = <!-- no 'position' set yet (old style)-->
  }}
+
        {{#switch: {{{number}}} <!--- backward compatible for Template:Top 10 2010:SubsectionAdvancedTemplate; please do NOT use any longer --->
style="vertical-align: top; width: 50%; padding: 5px; border: 3px solid {{Top_10:BorderColor|year={{{year}}}}}; background-color: {{Top_10:BackgroundColor|year={{{year}}}}};">
+
          | left =  <!-- first element: left half (=> firstLeft in new nomenclature for position!-->
<div style="font-style: bold;
+
              {{Top_10:SubsectionTableBeginTemplate|type=main}}
    {{#switch: {{{year}}}  
+
                  <tr>
        | 2013=color: #000000; border-bottom: #999999 solid 1px; margin-bottom: 3px; padding-bottom: 3px;
+
                  <td
        | #default=color: #4F81BD;
+
          | right = <!-- right half -->
    }};
+
                  </td>
font-size: 150%;">
+
                  <td
{{#switch: {{{number}}}
+
          | whole = <!-- first element with full width (=> firstWhole in new nomenclature for position!--
  | left
+
                  {{Top_10:SubsectionTableBeginTemplate|type=main}}
  | right
+
                  <tr>
  | whole={{{title}}}  
+
                  <td
  | 1={{Top_10:LanguageFile|text=exampleScenarios|risk={{{risk}}}|language={{{language}}}|year={{{year}}} }}
+
          | 1 = <!-- number 1: Left 1st Element  => firstLeft in new nomenclature for position!-->
  | 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}}} }}
+
                {{Top_10:SubsectionTableBeginTemplate|type=main}}
  | 3={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 1: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}  
+
                  <tr>
  | 4={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 2: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}  
+
                  <td
  | 5={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 3: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}
+
          | 2 = <!-- number 2: right 2nd Element => right in new nomenclature for position!-->
  | 6={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }}: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}
+
                  </td>
  | 7={{Top_10:LanguageFile|text=userImpact|language={{{language}}} }}
+
                  <td
  | 8={{Top_10:LanguageFile|text=references|language={{{language}}} }}
+
          | 3 = <!-- number 3: Links 3rd Element => left in new nomenclature for position!-->
  | 9={{Top_10:LanguageFile|text=references|language={{{language}}} }}
+
                  </td></tr>
  | 11={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 1: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}
+
                  <tr>
  | 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}}} }}
+
                  <td
  | 16={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }}: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}  
+
          | 4 = <!-- number 4: right 4th Element => right in new nomenclature for position!-->
}}</div>
+
                  </td>
|<br/>{{Top_10_2010:SubsectionColoredTemplate|{{#switch: {{{number}}}
+
                  <td
  | left
+
        }}
  | right
+
    }}
  | whole={{{title}}}  
+
    style="vertical-align: top; padding:5px; width: 50%;
  | 1={{Top_10:LanguageFile|text=exampleScenarios|risk={{{risk}}}|language={{{language}}}|year={{{year}}} }}
+
          border: 3px solid {{Top_10:BorderColor|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}}} }}
+
          background-color: {{Top_10:BackgroundColor|year={{{year}}} }};">
  | 3={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 1: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}  
+
    <div style="font-style: bold;
  | 4={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 2: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}  
+
          {{#switch: {{{year}}}  
  | 5={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 3: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}
+
            | 2013=color: #000000; border-bottom: #999999 solid 1px; margin-bottom: 3px; padding-bottom: 3px;
  | 6={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }}: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}
+
            | #default=color: #4F81BD;
  | 7={{Top_10:LanguageFile|text=userImpact|language={{{language}}} }}
+
          }};  
  | 8={{Top_10:LanguageFile|text=references|language={{{language}}} }}
+
          font-size: 150%;">
  | 9={{Top_10:LanguageFile|text=references|language={{{language}}} }}
+
    <!--- Box-Sub-Headline --->
  | 11={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} 1: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}
+
    {{#switch: {{{subsection}}}
  | 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}}} }}
+
      | freetext=    {{{title}}}  
  | 16={{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }}: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}  
+
      | example=     {{Top_10:LanguageFile|text=exampleScenarios|language={{{language}}} }}
}}|}}
+
      | 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}}} }}
}}
+
      | defOp=      {{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} {{{title}}} {{Top_10:LanguageFile|text=against|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos;:
 +
      | userImpact= {{Top_10:LanguageFile|text=userImpact|language={{{language}}} }}
 +
      | references=  {{Top_10:LanguageFile|text=references|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)-->
 +
        {{#switch: {{{number}}} <!--- backward compatible for Template:Top 10 2010:SubsectionAdvancedTemplate; please do NOT use any longer --->
 +
          | 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;{{Top_10:LanguageFile|text=vulnerableTo2|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=exampleScenarios|language={{{language}}} }}
 +
          | 4={{Top_10:LanguageFile|text=references|language={{{language}}} }}
 +
      }}
 +
  }}</div>
 +
|<br/>{{Top_10_2010:SubsectionColoredTemplate|
 +
    {{#switch: {{{subsection}}}
 +
      | freetext=   {{{title}}}  
 +
      | example=   {{Top_10:LanguageFile|text=exampleScenarios|language={{{language}}} }}
 +
      | 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}}} }}
 +
      | defOp=      {{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} {{{title}}} {{Top_10:LanguageFile|text=against|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos;:
 +
      | userImpact= {{Top_10:LanguageFile|text=userImpact|language={{{language}}} }}
 +
      | references= {{Top_10:LanguageFile|text=references|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)-->
 +
      {{#switch: {{{number}}} <!--- backward compatible for Template:Top 10 2010:SubsectionAdvancedTemplate; please do NOT use any longer --->
 +
        | 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;{{Top_10:LanguageFile|text=vulnerableTo2|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=exampleScenarios|language={{{language}}} }}
 +
        | 4={{Top_10:LanguageFile|text=references|language={{{language}}} }}
 +
      }}
 +
  }}|}}
 +
}} </onlyinclude>

Latest revision as of 16:49, 12 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', 'firstWhole' or 'firstLongLeft' 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|firstLongLeft|left|right|whole|longLeft|longRight>  
  |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 --->
|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}}

English New Syntax

Am I Vulnerable To 'Injection'?

1st box

How Do I Prevent 'Injection'?

2nd box

Example Attack Scenarios

3rd box

References

4th box

Defending Option 1 against 'Injection':

5th box (big box)


English old Syntax 2013

Am I Vulnerable To 'Injection'?

1st box

How Do I Prevent 'Injection'?

2nd box

Example Attack Scenarios

3rd box

References

4th box


English Old Syntax 2010

Am I Vulnerable To 'Injection'?

1st box

How Do I Prevent 'Injection'?

2nd box

Example Attack Scenarios

3rd box

References

4th box


German 2013

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)


German 2010

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)


Special 2013

Am I Vulnerable To 'Broken Authentication and Session Management'?

1st box

How Do I Prevent 'Broken Authentication and Session Management'?

2nd box

Example Attack Scenarios

3rd box

Impact to the User

4th box

Defending Option 1 against 'Broken Authentication and Session Management':

5th box (long box)

Defending Option 2 against 'Broken Authentication and Session Management':

6th box

References

7th box