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