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
Line 17: Line 17:
 
|-
 
|-
 
| <nowiki>}}                                      </nowiki>  || &nbsp;
 
| <nowiki>}}                                      </nowiki>  || &nbsp;
 +
|-
 +
| <nowiki>{{BoxTableEndTemplate}}            </nowiki>
 
|}
 
|}
: End Table
 
: <nowiki>{{TextBoxEndTemplate}}            </nowiki>
 
  
 
=== '''Example:''' ===
 
=== '''Example:''' ===
Line 42: Line 42:
 
* as manager looking to understand what security means for your business <as a link>
 
* as manager looking to understand what security means for your business <as a link>
 
* security professional <as a link , and so on>
 
* security professional <as a link , and so on>
{{BoxTableEndTemplate}}
+
{{BoxTableEndTemplate}}<onlyinclude>  
 
 
<onlyinclude>  
 
 
{{ #switch: {{{position}}}
 
{{ #switch: {{{position}}}
 
       | firstLeft = <!-- first element: left half -->
 
       | firstLeft = <!-- first element: left half -->
Line 78: Line 76:
 
}}
 
}}
 
style="vertical-align: top; padding:5px; width: 50%;
 
style="vertical-align: top; padding:5px; width: 50%;
       border: 3px solid {{{color<!---- |#4d3d95 ---->}}};
+
       border: 3px solid {{{color}}};            <!---- |#4d3d95 ---->
       background-color: {{{bgcolor<!---|#F8F8FF ---->}}};">
+
       background-color: {{{bgcolor}}}">        <!---- |#F8F8FF ---->
 
<div style="font-style: bold;  
 
<div style="font-style: bold;  
 
       color: #000000; border-bottom: #999999 solid 1px; margin-bottom: 3px; padding-bottom: 3px;
 
       color: #000000; border-bottom: #999999 solid 1px; margin-bottom: 3px; padding-bottom: 3px;
Line 86: Line 84:
 
       {{{title}}}  
 
       {{{title}}}  
 
</div>
 
</div>
 +
</onlyinclude>

Revision as of 22:33, 5 April 2014

Usage:

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

Example:

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

get Information

  • as programmer <as a link>
  • as manager looking to understand what security means for your business <as a link>
  • security professional <as a link , and so on>

<tr>

             <td

style="vertical-align: top; padding:5px; width: 50%;

      border: 3px solid {{{color}}};            
      background-color: {{{bgcolor}}}">         
      {{{title}}}