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
m |
m (Box-Headline font-size: 150% -> 120%;) |
||
| (15 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| + | <noinclude> | ||
<!---------------------------------------------------------> | <!---------------------------------------------------------> | ||
| − | <!-- Template: | + | <!-- Template: TextBoxTemplate --> |
<!---------------------------------------------------------> | <!---------------------------------------------------------> | ||
==='''Usage:''' === | ==='''Usage:''' === | ||
| Line 10: | Line 11: | ||
| <nowiki>|title=your title</nowiki> || | | <nowiki>|title=your title</nowiki> || | ||
|- | |- | ||
| − | | <nowiki>|position=<firstLeft|firstWhole|firstLongLeft|left|right|whole|longLeft|longRight></nowiki> || | + | | <nowiki>|position=<firstLeft|firstWhole|firstLongLeft|left|right|whole|longLeft|longRight|newLineRight></nowiki> || |
|- | |- | ||
| <nowiki>|color=<colour> </nowiki> || | | <nowiki>|color=<colour> </nowiki> || | ||
| Line 24: | Line 25: | ||
:<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}} | + | {{BoxTableBeginTemplate}} {{TextBoxTemplate|title=Test 1|position=firstLeft|color=#4d3d95|bgcolor=#F8F8FF}} |
| − | {{TextBoxTemplate | + | 1st box |
| − | + | ||
| − | |position= | + | {{TextBoxTemplate|title=Test 3|position=longRight|color=#4d3d95|bgcolor=#F8F8FF}} |
| − | + | 3nd box (longRight) | |
| − | + | ||
| − | }} | + | {{TextBoxTemplate|title=Test 2|position=left|color=#4d3d95|bgcolor=#F8F8FF}} |
| − | * as programmer | + | 2rd box |
| − | * as manager looking to understand what security means for your business | + | |
| − | * security professional | + | {{TextBoxTemplate|title=Test 4|position=longLeft|color=#4d3d95|bgcolor=#F8F8FF}} |
| − | {{BoxTableEndTemplate}}<onlyinclude> | + | 4nd box (longLeft) |
| + | |||
| + | {{TextBoxTemplate|title=Test 5|position=right|color=#4d3d95|bgcolor=#F8F8FF}} | ||
| + | 5rd box | ||
| + | |||
| + | {{TextBoxTemplate|title=Test 6|position=newLineRight|color=#4d3d95|bgcolor=#F8F8FF}} | ||
| + | 6rd box | ||
| + | |||
| + | {{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}} | ||
| + | <br/> | ||
| + | |||
| + | <br/> | ||
| + | </noinclude> | ||
| + | <onlyinclude><includeonly> | ||
{{ #switch: {{{position}}} | {{ #switch: {{{position}}} | ||
| firstLeft = <!-- first element: left half --> | | firstLeft = <!-- first element: left half --> | ||
| Line 59: | 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 75: | Line 141: | ||
<td | <td | ||
}} | }} | ||
| − | style="vertical-align: top; padding: | + | style="vertical-align: top; padding: 0px; width: 50%; |
| − | border: 3px solid {{{color}}}; | + | {{#ifeq: {{{color|}}} | {{{bgcolor|}}} | border: 0px; | border: 3px solid {{{color|#000000}}}; <!---- |#4d3d95 ---->}} <!--- no border, if color== bgcolor ---> |
| − | background-color: {{{bgcolor}}};"> | + | background-color: {{{bgcolor|#FFFFFF}}};"> <!---- |#F8F8FF ----> |
| − | < | + | <h2 style="font-style: bold; |
| − | color: #000000; | + | color: #000000; margin: 0; margin-bottom: 3px; |
| − | font-size: | + | background:#cee0f2; font-family:inherit; padding:0.2em 0.4em; |
| − | + | font-weight:bold; border: 0; text-align: left; | |
| − | + | font-size: 120%;"> <!--- Box-Headline ---> {{{title|}}} </h2> | |
| − | </onlyinclude> | + | </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 11st box
|
Test 33nd box (longRight)
|
Test 22rd box
| |
Test 44nd box (longLeft)
|
Test 55rd box
|
Test 66rd box
| |
Test 77th box (big box) | |
I'd like to ...
get Information
|
get Tools
|
get more Information about OWASP
|
meet the OWASP Community
|
get more Information about OWASP
|
help the Community
|
get help for my Project/Chapter
|
... more boxes ...
|
... whole box ...
| |