Difference between revisions of "Template:Function"

From wiki.emacinc.com
Jump to: navigation, search
(Initial Page Creation)
 
m (Tweak)
 
(8 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
Use this template like this:
 
Use this template like this:
  
  <nowiki>{{Function|probe_it|desc=My cool function for probing stuff|args=target, type, when}}</nowiki>
+
  <nowiki>{{Function | name=probe_it | My cool function for probing stuff}}</nowiki>
  
 
to produce:
 
to produce:
  
{{Function|probe_it|desc=My cool function for probing stuff|args=target, type, when}}
+
{{Function | name=probe_it | My cool function for probing stuff}}
 
</noinclude>
 
</noinclude>
  
  
  
<includeonly><div class="funcbox" style="margin-top:-4%;">
+
<includeonly><div class="funcbox" style="margin-left:3.8%; margin-right:25%; margin-top:1%; border-style:none; border-radius:10px; box-shadow:2px 2px 11px #888; background:antiqueWhite; padding:21px; padding-right:32px;">
<table class="funcbox_table"><tr class="funcbox_table_r1"><td class="funcbox_table_c1"><span class="funcbox_header">{{{1}}}</span></td></tr><tr class="funcbox_table_r2"><td class="funcbox_table_c2"><span class="funcbox_content"><code>{{{1}}}( {{{args}}} )</code></span></td></tr></table></div>
+
<span class="funcbox_header"><code style="text-align:center; font-size:xx-large; font-style:oblique;">'''{{#ifeq:{{{name|}}}|{{{name|-}}}|{{{name}}}|function}}()'''</code></span><br /><br /><span class="funcbox_content">{{{1}}}</span></div>
 
</includeonly>
 
</includeonly>

Latest revision as of 18:20, 17 November 2015

Use this template like this:

{{Function | name=probe_it | My cool function for probing stuff}}

to produce:



probe_it()

My cool function for probing stuff