Module:ApiDoc
From Liquipedia Commons Wiki
Utility for {{ApiDoc}}
API[edit]
- Programmatic name: ApiDoc
- isDocPage → boolean
Returns true if this is a doc page, i.e. if this pagename contains "doc"
See all our documentation here.
The above documentation is transcluded from Module:ApiDoc/doc. (edit | history) Editors can experiment in this module's sandbox (create | mirror) and testcases (create) pages. Subpages of this module. |
--- -- @author Vogan for Liquipedia -- local ApiDoc = {} function ApiDoc.isDocPage() local pagename = mw.title.getCurrentTitle().text return string.find(pagename, '/doc') end return ApiDoc