Difference between revisions of "To url"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
m (moved Location to url to To url)
imported>StDoodle
Line 1: Line 1:
 
{{
 
{{
 
#vardefine:name|to_url}}{{
 
#vardefine:name|to_url}}{{
#vardefine:return_type|buffer}}{{
+
#vardefine:return_type|string}}{{
#vardefine:aggregate|yes}}{{
 
#vardefine:return_also|buffer}}{{
 
  
 
FunctionPage|
 
FunctionPage|
 
name={{#var:name}}|
 
name={{#var:name}}|
function_category=|
+
function_category=String Handling Routines|
  
 
function1={{Function|
 
function1={{Function|
Line 14: Line 12:
 
return_type={{#var:return_type}}|
 
return_type={{#var:return_type}}|
 
return_also={{#var:return_also}}|
 
return_also={{#var:return_also}}|
parameter1={{Param|}}|
+
parameter1={{Param|location|place}}|
parameter2={{Param|}}|
+
p1desc={{Pspan|place}} is an in-game location to parse|
p1desc={{Pspan|}}|
 
p2desc={{Pspan|}}|
 
 
}}|
 
}}|
  
function_description=|
+
function_description=Returns the short url (normally of the form "adventure.php?snarfblat=") used to visit the location {{pspan|place}}.|
  
 
needscode=yes|
 
needscode=yes|
  
see_also={{SeeAlso|}}|
+
see_also={{SeeAlso|visit_url}}|
cli_equiv=The CLI command |
+
special=Trying to use $location[none] will generate an "Unexpected error."|
more_info= |
 
special= |
 
 
}}
 
}}

Revision as of 19:20, 9 March 2010

needs(code_samples);

Function Syntax

string to_url(location place )

  • place is an in-game location to parse

Returns the short url (normally of the form "adventure.php?snarfblat=") used to visit the location place.

See Also

visit_url()

Special

Trying to use $location[none] will generate an "Unexpected error."