Difference between revisions of "Printer.setPageTitle"

From ComputerCraft Wiki
Jump to: navigation, search
m (NeedsWork: This page lacks any form of template use.)
(Fixed really bad lack of any form of template use.)
Line 1: Line 1:
{{NeedsWork|This page lacks any form of template use. ''[[User:AfterLifeLochie|AfterLifeLochie]] 02:42, 29 November 2012 (MSK)''}}
+
{{lowercase}}
 
+
{{Function
Printer.setPageTitle("Test page")
+
|name=printer.setPageTitle
 
+
|args=[[string (type)|string]] title
results in the item being called:
+
|returns=none
 
+
|api=none
Printed Page
+
|addon=ComputerCraft
Test page
+
|desc=Sets the title of the page being printed
 
+
|examples=
when you hover over it with your mouse
+
{{Example
 +
|desc=Set the title of a page to be printed.
 +
|code=Printer.setPageTitle("Test page")
 +
|output=When the page is hovered-on in the inventory, the tooltip reads "Printed Page; Test page"
 +
}}
 +
}}
  
 
[[Category:Lua_Core_Functions]]
 
[[Category:Lua_Core_Functions]]

Revision as of 23:25, 28 November 2012


Grid Redstone.png  Function printer.setPageTitle
Sets the title of the page being printed
Syntax printer.setPageTitle(string title)
Returns none
Part of ComputerCraft
API none

Examples

Grid paper.png  Example
Set the title of a page to be printed.
Code
Printer.setPageTitle("Test page")
Output When the page is hovered-on in the inventory, the tooltip reads "Printed Page; Test page"