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

From OWASP
Jump to: navigation, search
m (whole: <td colspan="2" (no ';'))
(Added Documentation)
Line 1: Line 1:
{{#ifeq: {{{type}}} | box |
+
<!---------------------------------------------------------------------------->
 +
<!-- Template:Top 10 2010 Developer Edition De:SubsectionAdvancedTemplate  -->
 +
<!---------------------------------------------------------------------------->
 +
'''Usage:'''
 +
# Start Table
 +
#* <nowiki>{{Top_10:SubsectionTableBeginTemplate|type=main}}      <!--- in the main page ---></nowiki>
 +
#* <nowiki>{{Top_10:SubsectionTableBeginTemplate|type=headertab}} <!--- in the languages part, like JAVA ---></nowiki>
 +
#:
 +
# hint: use 'position=firstLeft' or 'firstWhole' for the 1st element<br/>
 +
::{|
 +
| <nowiki>{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate</nowiki> ||  &nbsp;
 +
|-
 +
| &nbsp;&nbsp;<nowiki>|type={{Top_10_2010:StyleTemplate}}</nowiki>  || <nowiki> <!---  => box  ---> </nowiki>
 +
|-
 +
| &nbsp;&nbsp;<nowiki>|subsection=<defOp|example|freetext|howPrevent|references|userImpact|vulnerableTo></nowiki>  || &nbsp;
 +
|-
 +
| &nbsp;&nbsp;<nowiki>|title=your title</nowiki>                    || <nowiki> <!--- additional parameter for subsection=freetext or defOp (for the number) ---> </nowiki>               
 +
|-
 +
| &nbsp;&nbsp;<nowiki>|position=<firstLeft|firstWhole|left|right|whole></nowiki>  || &nbsp;
 +
|-
 +
| &nbsp;&nbsp;<nowiki>|risk=1                            </nowiki>  || <nowiki> <!--- additional parameter for subsection=<defOp|example|howPrevent|vulnerableTo>:</nowiki>
 +
|-
 +
| &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 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>
 +
 
 +
 
 +
{{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:LanguageFile|text=vulnerableTo1|language=de}} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|1|language=de|year={{{year}}} }}&apos; {{Top_10:LanguageFile|text=vulnerableTo2|language=de}}
 +
 
 +
{{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}}
 +
<onlyinclude> {{#ifeq: {{{type}}} | box |
 
     {{#switch: {{{position}}}
 
     {{#switch: {{{position}}}
 
       | firstLeft = <!-- left half -->
 
       | firstLeft = <!-- left half -->
Line 103: Line 180:
 
     <!--- Box-Sub-Headline --->
 
     <!--- Box-Sub-Headline --->
 
     {{#switch: {{{subsection}}}
 
     {{#switch: {{{subsection}}}
       | freetext=   {{{title}}}  
+
       | freetext=   {{{title}}}  
       | example=   {{Top_10:LanguageFile|text=exampleScenarios|risk={{{risk}}}|language={{{language}}}|year={{{year}}} }}
+
       | example=     {{Top_10:LanguageFile|text=exampleScenarios|risk={{{risk}}}|language={{{language}}}|year={{{year}}} }}
       | 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}}} }}
+
       | 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_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}  
+
       | defOp=       {{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} {{{title}}}: {{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}  
       | userImpact= {{Top_10:LanguageFile|text=userImpact|language={{{language}}} }}
+
       | userImpact= {{Top_10:LanguageFile|text=userImpact|language={{{language}}} }}
       | references= {{Top_10:LanguageFile|text=references|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)-->
 
       | #default= <!-- no 'subsection' set yet (old style)-->
 
         {{#switch: {{{number}}}  
 
         {{#switch: {{{number}}}  
Line 142: Line 220:
 
       | userImpact= {{Top_10:LanguageFile|text=userImpact|language={{{language}}} }}
 
       | userImpact= {{Top_10:LanguageFile|text=userImpact|language={{{language}}} }}
 
       | references= {{Top_10:LanguageFile|text=references|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)-->
 
       | #default= <!-- no 'subsection' set yet (old style)-->
 
       {{#switch: {{{number}}}  
 
       {{#switch: {{{number}}}  
Line 167: Line 246:
 
       }}
 
       }}
 
   }}|}}
 
   }}|}}
}}
+
}} </onlyinclude>

Revision as of 09:20, 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 Bin ich durch 'Injection'  verwundbar?

Wie kann ich 'Injection' verhindern?

2nd box

Mögliche Angriffsszenarien

3rd box

Referenzen

4th box

Verteidigungs-Option 1 gegen 'Injection':

5th box (big box)