Template:Snippet Header: Difference between revisions

From AutoIt Wiki
Jump to navigation Jump to search
mNo edit summary
m (fix: Category:Templates (wrong location))
 
(52 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Snippet Header
<blockquote style="width: 60%; background-color:#FAEBD7; padding: 5px; padding-bottom: 3px; border-bottom: 2px solid #aaa; margin-bottom: 1ex;">
|UDFName=my_awesome_function
 
|AuthorURL=40560-lacastiglione
{{ #if: {{{AuthorURL|}}}
|AuthorName=Jaberwocky6669
| '''Author: [http://www.autoitscript.com/forum/user/{{{AuthorURL}}} {{{AuthorName}}}]'''
|ModifierURL=40560-lacastiglione
| '''{{{AuthorName}}}'''
|ModifierName=ViolentJ
}}
|ModifierURL2=40560-lacastiglione
 
|ModifierName2=Shaggy2Dope
{{ #if: {{{AuthorURL2|}}}
|ModifierURL3=40560-lacastiglione
| '''Author: [http://www.autoitscript.com/forum/user/{{{AuthorURL2}}} {{{AuthorName2}}}]'''
|ModifierName3=LaCastiglione
| {{ #if: {{{AuthorName2|}}}
|ModifierURL4=40560-lacastiglione
    | '''{{{AuthorName2}}}'''
|ModifierName4=SomeUserNotALoser
  }}
|ModifierURL5=40560-lacastiglione
}}
|ModifierName5=WhoThisGuyThatsWho
 
|Desc=This is a description of the snippet.
{{ #if: {{{AuthorURL3|}}}
|AutoItCode=
| '''Author: [http://www.autoitscript.com/forum/user/{{{AuthorURL2}}} {{{AuthorName3}}}]'''
Global Const $var = 675
| {{ #if: {{{AuthorName3|}}}
Global Const $var2 = 6753
    | '''{{{AuthorName3}}}'''
  }}
}}
 
{{ #if: {{{ModifierURL|}}}
| <br> '''Modified: [http://www.autoitscript.com/forum/user/{{{ModifierURL}}} {{{ModifierName}}}]'''
| {{ #if: {{{ModifierName|}}}
    | <br> '''Modified: {{{ModifierName}}}'''
  }}
}}
 
{{ #if: {{{ModifierURL2|}}}
| '''[http://www.autoitscript.com/forum/user/{{{ModifierURL2}}} {{{ModifierName2}}}]'''
| {{ #if: {{{ModifierName2|}}}
    | '''{{{ModifierName2}}}'''
  }}
}}
 
{{ #if: {{{ModifierURL3|}}}
| '''[http://www.autoitscript.com/forum/user/{{{ModifierURL3}}} {{{ModifierName3}}}]'''
| {{ #if: {{{ModifierName3|}}}
    | '''{{{ModifierName3}}}'''
  }}
}}
 
{{ #if: {{{Desc|}}}
| <br> {{{Desc}}}
}}
}}


<includeonly>{{#if: {{{UDFName|}}}
</blockquote>
|==={{{UDFName|}}}===}}
 
<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.


{{#if: {{{AuthorURL|}}}
Unlimited authors and modifiers.  If more are needed then edit this template accordingly.
|<blockquote style="background-color:white; padding:1em; border:2px solid #8FBC8F">}}
 
<pre>
 
{{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.
}}


{{#if: {{{AuthorURL|}}}
</pre>
|'''Author: [http://www.autoitscript.com/forum/user/{{{AuthorURL|}}}/ {{{AuthorName|}}}]'''}} 
{{#if: {{{ModifierURL|}}}
|<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|}}}
Please see this link for more information: [[Posting Code]]
|<br> <br> {{{Desc|}}} }}


{{#if: {{{AuthorURL|}}}
</div>
|</blockquote>}}


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

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