Template:SourceMod API

From AlliedModders Wiki
Revision as of 09:13, 23 October 2022 by Nosoop (talk | contribs) (Add support for linking to include file roots)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

<{{{file}}}>

This generates a link to the SourceMod Scripting API reference entry.

Usage

{{SourceMod API|file=dhooks}}

produces

<dhooks>
{{SourceMod API|file=sourcemod|function=OnMapStart}}

produces

OnMapStart
{{SourceMod API|file=datapack|class=DataPack|function=Reset}}

produces

DataPack.Reset

Parameters

file
the source file that contains the function. If no other parameters are provided, the link will be displayed as <file>.
class
optional. The methodmap class associated with a method. If this is present, the link will be displayed as Class.Method.
identifier
optional. The function / method / other identifier that is part of the file.