Difference between pages "Have equipped" and "Template:TOCright"

From Kolmafia
(Difference between pages)
Jump to navigation Jump to search
imported>Bale
m
 
imported>StDoodle
(Created page with '{| cellspacing="0" cellpadding="0" style="clear: {{{clear|none}}}; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none; width: {{{width|{{{1|auto}}}}}…')
 
Line 1: Line 1:
{{
+
{| cellspacing="0" cellpadding="0" style="clear: {{{clear|none}}}; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none; width: {{{width|{{{1|auto}}}}}};" {{#if:{{{limit|}}}|class="toclimit-{{{limit}}}"}}
#vardefine:name|have_equipped}}{{
+
| __TOC__
#vardefine:return_type|boolean}}{{
+
|}<noinclude>
 
+
{{pp-template|small=yes}}
FunctionPage|
+
{{documentation}}
name={{#var:name}}|
+
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
+
</noinclude>
function1={{Function|
 
name={{#var:name}}|
 
aggregate={{#var:aggregate}}|
 
return_type={{#var:return_type}}|
 
return_also={{#var:return_also}}|
 
parameter1={{Param|item|check}}|
 
p1desc={{Pspan|check}} is the item to test for|
 
}}|
 
 
 
function_description=Returns true if you currently have the specified item {{pspan|check}} equipped, false if you do not. For familiar equipment, it only checks the familiar you currently have with you. Always returns false if {{pspan|check}} is not an item that can be equipped.|
 
 
 
code1={{CodeSample|
 
title=Code Sample|
 
description=This example will check if you have the Pirate fledges equipped, and equip it if not.|
 
code=
 
<syntaxhighlight>
 
if ( !have_equipped($item[pirate fledges]) )
 
    equip( $slot[acc1], $item[pirate fledges] );
 
</syntaxhighlight>}}|
 
 
 
see_also={{SeeAlso|can_equip|equip}}|
 
cli_equiv=The CLI commands "equip" and others function similarly, if the parameter "list" or no parameters are given.|
 
}}
 
 
 
[[Category:Equipment]]
 

Revision as of 21:22, 5 March 2010