<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://wiki.iccup.org/index.php?action=history&amp;feed=atom&amp;title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD%3AApiDoc%2Fdoc</id>
	<title>Шаблон:ApiDoc/doc - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.iccup.org/index.php?action=history&amp;feed=atom&amp;title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD%3AApiDoc%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.iccup.org/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:ApiDoc/doc&amp;action=history"/>
	<updated>2026-05-31T23:21:57Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.iccup.org/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:ApiDoc/doc&amp;diff=132&amp;oldid=prev</id>
		<title>DarkMuse: Новая страница: «iCCup API Documentation Guide Allows for easy creation of API documentation (e.g., for modules) within the iCCup platform. Use in combination with {{tl|ApiDocStart}} and {{tl|ApiDocEnd}} (at the start and end of the documentation section). Functions generate links to a subpage, so that more detailed documentation can be provided. Use {{tl|ApiDocBig}} there. By default, this setup stores documentation into LPDB (as datapoints). To turn this off, use the {{tl|...»</title>
		<link rel="alternate" type="text/html" href="https://wiki.iccup.org/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:ApiDoc/doc&amp;diff=132&amp;oldid=prev"/>
		<updated>2024-08-31T15:17:03Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «iCCup API Documentation Guide Allows for easy creation of API documentation (e.g., for modules) within the iCCup platform. Use in combination with {{tl|ApiDocStart}} and {{tl|ApiDocEnd}} (at the start and end of the documentation section). Functions generate links to a subpage, so that more detailed documentation can be provided. Use {{tl|ApiDocBig}} there. By default, this setup stores documentation into LPDB (as datapoints). To turn this off, use the {{tl|...»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;iCCup API Documentation Guide&lt;br /&gt;
Allows for easy creation of API documentation (e.g., for modules) within the iCCup platform. Use in combination with {{tl|ApiDocStart}} and {{tl|ApiDocEnd}} (at the start and end of the documentation section). Functions generate links to a subpage, so that more detailed documentation can be provided. Use {{tl|ApiDocBig}} there. By default, this setup stores documentation into LPDB (as datapoints). To turn this off, use the {{tl|ApiDocStart}} parameter.&lt;br /&gt;
==Parameters==&lt;br /&gt;
;{{para|}}&lt;br /&gt;
the function name to document. This is a required parameter that identifies the function being documented. ;{{para|description}}&lt;br /&gt;
a brief description of what the function does. This should be a concise summary that gives an overview of the function’s purpose. ;{{para|params}} :(Optional) Lists and describes the parameters that the function accepts. This can include the parameter type, name, and a brief description of its role. ;{{para|returns}} :(Optional) Specifies the return value of the function, including the type and a brief description. If the function does not return anything, this can be left blank.&lt;br /&gt;
==Copy/Paste Code==&lt;br /&gt;
To quickly add API documentation for your modules or functions, use the following template. Copy and paste the code below and fill in the appropriate details for each function:&lt;br /&gt;
&amp;lt;pre&amp;gt; {{ApiDoc | |description= |returns= |params= }} &amp;lt;/pre&amp;gt;&lt;br /&gt;
==Example==&lt;br /&gt;
Below is an example of how to use the API documentation templates to create structured documentation for module functions:&lt;br /&gt;
&amp;lt;pre&amp;gt; {{ApiDocStart}} {{ApiDoc|createGameInstance|returns=object|description=Creates a new game instance in the system|params=name, settings}} {{ApiDoc|deleteGameInstance|returns=void|description=Deletes an existing game instance by its identifier|params=id}} {{ApiDocEnd}} &amp;lt;/pre&amp;gt;&lt;br /&gt;
In some cases, you might want to turn off storing documentation into LPDB. Use the store parameter as shown below:&lt;br /&gt;
&amp;lt;pre&amp;gt; {{ApiDocStart|store=false}} {{ApiDoc|createGameInstance|returns=object|description=Creates a new game instance in the system|params=name, settings}} {{ApiDoc|deleteGameInstance|returns=void|description=Deletes an existing game instance by its identifier|params=id}} {{ApiDocEnd}} &amp;lt;/pre&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{tl|ApiDocList}}: Use this template to list all documented API functions.&lt;br /&gt;
{{tl|ApiDocStart}}: Marks the beginning of an API documentation section.&lt;br /&gt;
{{tl|ApiDocEnd}}: Marks the end of an API documentation section.&lt;br /&gt;
{{tl|ApiDocBig}}: Use this on subpages to provide detailed documentation for a specific function.&lt;br /&gt;
&amp;lt;noinclude&amp;gt; [[Category:API Documentation Templates]] [[Category:iCCup Modules]] &amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>DarkMuse</name></author>
	</entry>
</feed>