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:TextBoxTemplate"

From OWASP
Jump to: navigation, search
m
m (Box-Headline font-size: 150% -> 120%;)
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<noinclude>
 
<!--------------------------------------------------------->  
 
<!--------------------------------------------------------->  
<!--  Template: TextBox                                -->
+
<!--  Template: TextBoxTemplate                        -->
 
<!--------------------------------------------------------->
 
<!--------------------------------------------------------->
 
==='''Usage:''' ===
 
==='''Usage:''' ===
Line 10: Line 11:
 
| &nbsp;&nbsp;<nowiki>|title=your title</nowiki>                    ||  
 
| &nbsp;&nbsp;<nowiki>|title=your title</nowiki>                    ||  
 
|-  
 
|-  
| &nbsp;&nbsp;<nowiki>|position=<firstLeft|firstWhole|firstLongLeft|left|right|whole|longLeft|longRight></nowiki>  || &nbsp;
+
| &nbsp;&nbsp;<nowiki>|position=<firstLeft|firstWhole|firstLongLeft|left|right|whole|longLeft|longRight|newLineRight></nowiki>  || &nbsp;
 
|-  
 
|-  
 
| &nbsp;&nbsp;<nowiki>|color=<colour>                  </nowiki>  ||  
 
| &nbsp;&nbsp;<nowiki>|color=<colour>                  </nowiki>  ||  
Line 17: Line 18:
 
|-
 
|-
 
| <nowiki>}}                                      </nowiki>  || &nbsp;
 
| <nowiki>}}                                      </nowiki>  || &nbsp;
 +
|-
 +
| <nowiki>{{BoxTableEndTemplate}}            </nowiki>
 
|}
 
|}
: End Table
 
: <nowiki>{{TextBoxEndTemplate}}            </nowiki>
 
  
 
=== '''Example:''' ===
 
=== '''Example:''' ===
 
:<nowiki>{{BoxTableBeginTemplate}}</nowiki>
 
:<nowiki>{{BoxTableBeginTemplate}}</nowiki>
 
:<nowiki>{{TextBoxTemplate</nowiki>
 
:<nowiki>{{TextBoxTemplate</nowiki>
::<nowiki>|title=get Information</nowiki>
+
::<nowiki>| title=get Information</nowiki>
::<nowiki>|position=firstLeft</nowiki>
+
::<nowiki>| position=firstLeft</nowiki>
::<nowiki>|color=#4d3d95</nowiki>
+
::<nowiki>| color=#4d3d95</nowiki>
::<nowiki>|bgcolor=#F8F8FF</nowiki>
+
::<nowiki>| bgcolor=#F8F8FF</nowiki>
 
:<nowiki>}}</nowiki>
 
:<nowiki>}}</nowiki>
 
:<nowiki>1st box</nowiki>
 
:<nowiki>1st box</nowiki>
 
:<nowiki>{{BoxTableEndTemplate}}</nowiki>
 
:<nowiki>{{BoxTableEndTemplate}}</nowiki>
 +
<br/>
 +
===Test-Boxes===
 +
 +
{{BoxTableBeginTemplate}} {{TextBoxTemplate|title=Test 1|position=firstLeft|color=#4d3d95|bgcolor=#F8F8FF}} 
 +
1st box
 +
 +
{{TextBoxTemplate|title=Test 3|position=longRight|color=#4d3d95|bgcolor=#F8F8FF}} 
 +
3nd box (longRight)
 +
 +
{{TextBoxTemplate|title=Test 2|position=left|color=#4d3d95|bgcolor=#F8F8FF}}
 +
2rd box
  
{{BoxTableBeginTemplate}}
+
{{TextBoxTemplate|title=Test 4|position=longLeft|color=#4d3d95|bgcolor=#F8F8FF}} 
{{TextBoxTemplate
+
4nd box (longLeft)
|title=get Information
+
 
|position=firstLeft
+
{{TextBoxTemplate|title=Test 5|position=right|color=#4d3d95|bgcolor=#F8F8FF}}
|color=#4d3d95
+
5rd box
|bgcolor=#F8F8FF
+
 
}}
+
{{TextBoxTemplate|title=Test 6|position=newLineRight|color=#4d3d95|bgcolor=#F8F8FF}}
* as programmer <as a link>
+
6rd box
* as manager looking to understand what security means for your business <as a link>
+
 
* security professional <as a link , and so on>
+
{{TextBoxTemplate|title=Test 7|position=whole|color=#4d3d95|bgcolor=#F8F8FF}}
 +
7th box (big box)
 +
{{BoxTableEndTemplate}}
 +
<br/>
 +
 
 +
===I'd like to ...===
 +
{{BoxTableBeginTemplate}} {{TextBoxTemplate|title=get Information|position=firstLeft|color=#F8F8FF|bgcolor=#F8F8FF}}
 +
* as programmer
 +
* as manager looking to understand what security means for your business
 +
* security professional
 +
 
 +
{{TextBoxTemplate|title=get Tools|position=right|color=#F8F8FF|bgcolor=#F8F8FF}} 
 +
* as programmer
 +
* security professional
 +
 
 +
{{TextBoxTemplate|title=get more Information about OWASP|position=left|color=#F8F8FF|bgcolor=#F8F8FF}}
 +
* about
 +
* OWASP Statement of the Security of the Internet
 +
* Social Media
 +
 
 +
{{TextBoxTemplate|title=meet the OWASP Community|position=right|color=#F8F8FF|bgcolor=#F8F8FF}} 
 +
* OWASP worldwide
 +
* Security Conferences, Training
 +
 
 +
{{TextBoxTemplate|title=get more Information about OWASP|position=left|color=#F8F8FF|bgcolor=#F8F8FF}}
 +
* about
 +
* OWASP Statement of the Security of the Internet
 +
* Social Media
 +
 
 +
{{TextBoxTemplate|title=help the Community|position=right|color=#F8F8FF|bgcolor=#F8F8FF}} 
 +
* give Feedback
 +
* get involved in Projects
 +
* launch a project
 +
* found a Chapter
 +
 
 +
{{TextBoxTemplate|title=get help for my Project/Chapter|position=left|color=#F8F8FF|bgcolor=#F8F8FF}}
 +
* Wiki
 +
* ...
 +
 
 +
{{TextBoxTemplate|title=... more boxes ...|position=right|color=#F8F8FF|bgcolor=#F8F8FF}}
 +
* more boxes
 +
* ...
 +
 
 +
{{TextBoxTemplate|title=... whole box ...|position=whole|color=#F8F8FF|bgcolor=#F8F8FF}}
 +
* Wiki
 +
* ...
 
{{BoxTableEndTemplate}}
 
{{BoxTableEndTemplate}}
 +
<br/>
  
<onlyinclude>  
+
<br/>
 +
</noinclude>
 +
<onlyinclude><includeonly>
 
{{ #switch: {{{position}}}
 
{{ #switch: {{{position}}}
 
       | firstLeft = <!-- first element: left half -->
 
       | firstLeft = <!-- first element: left half -->
Line 61: Line 121:
 
       | right = <!-- right half -->
 
       | right = <!-- right half -->
 
               </td>  
 
               </td>  
 +
              <td
 +
      | newLineRight = <!-- right half in a new linle (for 2nd right in longLeft)-->
 +
              </td></tr>
 +
              <tr>
 
               <td  
 
               <td  
 
       | whole =         
 
       | whole =         
Line 77: Line 141:
 
               <td  
 
               <td  
 
}}
 
}}
style="vertical-align: top; padding:5px; width: 50%;
+
style="vertical-align: top; padding: 0px; width: 50%;
       border: 3px solid {{{color<!---- |#4d3d95 ---->}}};
+
       {{#ifeq: {{{color|}}} | {{{bgcolor|}}} | border: 0px; | border: 3px solid {{{color|#000000}}}; <!---- |#4d3d95 ---->}} <!--- no border, if color== bgcolor --->
       background-color: {{{bgcolor<!---|#F8F8FF ---->}}};">
+
       background-color: {{{bgcolor|#FFFFFF}}};">                                      <!---- |#F8F8FF ---->
<div style="font-style: bold;  
+
<h2 style="font-style: bold;
       color: #000000; border-bottom: #999999 solid 1px; margin-bottom: 3px; padding-bottom: 3px;
+
       color: #000000; margin: 0; margin-bottom: 3px;
       font-size: 150%;">
+
      background:#cee0f2; font-family:inherit; padding:0.2em 0.4em;
      <!--- Box-Headline --->
+
      font-weight:bold; border: 0; text-align: left;  
      {{{title}}}  
+
       font-size: 120%;"> <!--- Box-Headline ---> {{{title|}}} </h2>
</div>
+
</includeonly></onlyinclude>
 +
__NOTOC__

Latest revision as of 19:49, 27 April 2014

Usage:

{{BoxTableBeginTemplate}}
 {{TextBoxTemplate
  |title=your title
  |position=<firstLeft|firstWhole|firstLongLeft|left|right|whole|longLeft|longRight|newLineRight>  
  |color=<colour>
  |bgcolor=<background colour>
}}  
{{BoxTableEndTemplate}}

Example:

{{BoxTableBeginTemplate}}
{{TextBoxTemplate
| title=get Information
| position=firstLeft
| color=#4d3d95
| bgcolor=#F8F8FF
}}
1st box
{{BoxTableEndTemplate}}


Test-Boxes

Test 1

1st box


Test 3

3nd box (longRight)


Test 2

2rd box


Test 4

4nd box (longLeft)


Test 5

5rd box


Test 6

6rd box


Test 7

7th box (big box)


I'd like to ...

get Information

  • as programmer
  • as manager looking to understand what security means for your business
  • security professional


get Tools

  • as programmer
  • security professional


get more Information about OWASP

  • about
  • OWASP Statement of the Security of the Internet
  • Social Media


meet the OWASP Community

  • OWASP worldwide
  • Security Conferences, Training


get more Information about OWASP

  • about
  • OWASP Statement of the Security of the Internet
  • Social Media


help the Community

  • give Feedback
  • get involved in Projects
  • launch a project
  • found a Chapter


get help for my Project/Chapter

  • Wiki
  • ...


... more boxes ...

  • more boxes
  • ...


... whole box ...

  • Wiki
  • ...