Template:Snippet Header: Difference between revisions

From AutoIt Wiki
Jump to navigation Jump to search
mNo edit summary
m (fix: Category:Templates (wrong location))
 
(55 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#if: {{{UDFName|}}}
<blockquote style="width: 60%; background-color:#FAEBD7; padding: 5px; padding-bottom: 3px; border-bottom: 2px solid #aaa; margin-bottom: 1ex;">
|==={{{UDFName|}}}===}}


{{#if: {{{AuthorURL|}}}  
{{ #if: {{{AuthorURL|}}}
|<blockquote style="background-color:white; padding:1em; border:2px solid #8FBC8F">}}
| '''Author: [http://www.autoitscript.com/forum/user/{{{AuthorURL}}} {{{AuthorName}}}]'''
| '''{{{AuthorName}}}'''
}}
 
{{ #if: {{{AuthorURL2|}}}
| '''Author: [http://www.autoitscript.com/forum/user/{{{AuthorURL2}}} {{{AuthorName2}}}]'''
| {{ #if: {{{AuthorName2|}}}
    | '''{{{AuthorName2}}}'''
  }}
}}
 
{{ #if: {{{AuthorURL3|}}}
| '''Author: [http://www.autoitscript.com/forum/user/{{{AuthorURL2}}} {{{AuthorName3}}}]'''
| {{ #if: {{{AuthorName3|}}}
    | '''{{{AuthorName3}}}'''
  }}
}}


{{#if: {{{AuthorURL|}}}  
{{ #if: {{{ModifierURL|}}}
|'''Author: [http://www.autoitscript.com/forum/user/{{{AuthorURL|}}}/ {{{AuthorName|}}}]'''}} 
  | <br> '''Modified: [http://www.autoitscript.com/forum/user/{{{ModifierURL}}} {{{ModifierName}}}]'''
   
  | {{ #if: {{{ModifierName|}}}  
{{#if: {{{ModifierURL|}}}
    | <br> '''Modified: {{{ModifierName}}}'''
|<br>'''Modified: [http://www.autoitscript.com/forum/user/{{{ModifierURL|}}}/ {{{ModifierName|}}}]'''}} 
  }}
   
}}
{{#if: {{{ModifierURL2|}}}
|'''[http://www.autoitscript.com/forum/user/{{{ModifierURL2|}}}/ {{{ModifierName2|}}}]'''}} 
{{#if: {{{ModifierURL3|}}}  
|'''[http://www.autoitscript.com/forum/user/{{{ModifierURL3|}}}/ {{{ModifierName3|}}}]'''}} 
{{#if: {{{ModifierURL4|}}}
|'''[http://www.autoitscript.com/forum/user/{{{ModifierURL4|}}}/ {{{ModifierName4|}}}]'''}} 
{{#if: {{{ModifierURL5|}}}  
|'''[http://www.autoitscript.com/forum/user/{{{ModifierURL5|}}}/ {{{ModifierName5|}}}]'''}}


{{#if: {{{Desc|}}}  
{{ #if: {{{ModifierURL2|}}}
|<br> <br> {{{Desc|}}} }}  
| '''[http://www.autoitscript.com/forum/user/{{{ModifierURL2}}} {{{ModifierName2}}}]'''
| {{ #if: {{{ModifierName2|}}}
    | '''{{{ModifierName2}}}'''
  }}
}}


{{#if: {{{AuthorURL|}}}  
{{ #if: {{{ModifierURL3|}}}
|</blockquote>}}
| '''[http://www.autoitscript.com/forum/user/{{{ModifierURL3}}} {{{ModifierName3}}}]'''
| {{ #if: {{{ModifierName3|}}}
    | '''{{{ModifierName3}}}'''
  }}
}}


{{#if: {{{AutoItCode|}}}  
{{ #if: {{{Desc|}}}
|{{#tag:syntaxhighlight
| <br> {{{Desc}}}  
|{{{AutoItCode|}}}  
}}
|lang = "autoit"}} }}
 
</blockquote>
{{#if: {{{ReturnToTop|}}}
|<br>[[#top | Return To Contents]]}}


<noinclude>
<noinclude>
<div style="background-color:#FAEBD7; padding: 15px; padding-bottom: 3px; border-bottom: 2px; solid #aaa; margin-bottom: 1ex;">
Note that the entire Author URL is not needed.
Unlimited authors and modifiers.  If more are needed then edit this template accordingly.
<pre>
{{Snippet Header
{{Snippet Header
|UDFName=my_awesome_function
| AuthorURL = 35302-guinness Optional.
|AuthorURL=40560-lacastiglione
| AuthorName = guinness
|AuthorName=Jaberwocky6669
| ModifiedURL = Optional.
|ModifierURL=40560-lacastiglione
| ModifiedName = Optional.
|ModifierName=Jaberwocky6669
| ModifiedURL2 = Optional.
|ModifierURL2=40560-lacastiglione
| ModifiedName2 = Optional.
|ModifierName2=Jaberwocky6669
| ModifiedName3 = Optional.
|ModifierURL3=40560-lacastiglione
| Desc = This is a short description of the snippet. Optional.
|ModifierName3=Jaberwocky6669
|ModifierURL4=40560-lacastiglione
|ModifierName4=Jaberwocky6669
|ModifierURL5=40560-lacastiglione
|ModifierName5=Jaberwocky6669
|Desc=This is a description of the snippet.
|AutoItCode=
Global Const $var = 675
Global Const $var2 = 6753
}}
}}
</pre>
Please see this link for more information: [[Posting Code]]
</div>
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 23:16, 9 November 2013

{{{AuthorName}}}








Note that the entire Author URL is not needed.

Unlimited authors and modifiers. If more are needed then edit this template accordingly.


{{Snippet Header
| AuthorURL = 35302-guinness Optional.
| AuthorName = guinness
| ModifiedURL =  Optional.
| ModifiedName = Optional.
| ModifiedURL2 = Optional.
| ModifiedName2 = Optional.
| ModifiedName3 = Optional.
| Desc = This is a short description of the snippet. Optional.
}}

Please see this link for more information: Posting Code