Character Vault
Any Concept / Any System
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Template:Api repository link/doc

From Roll20 Wiki

Revision as of 17:31, 8 January 2015 by Brian (Talk | contribs)

Jump to: navigation, search

Links to a file on the API Script Repository


Name Description
directory Directory from the root of the repository that the file is located in. Defaults to the first anonymous parameter.
file File within the directory to link to. Defaults to the second anonymous parameter.
ext File extension of the file to link to. Defaults to the third anonymous parameter.

If ext is supplied, the link is guaranteed to link to a file; if file is not supplied (for example, {{api repository link|ext=js|Foo}}), the directory will be used for the file name as well.


Wikitext Output Notes
{{api repository link|Foo}} Foo This links to /tree/master/Foo
{{api repository link|Foo|Bar}} Bar This links to /blob/master/Foo/Bar
{{api repository link|Foo|ext=md}} Foo This links to /blob/master/Foo/
{{api repository link|Foo|Bar|json}} Bar This links to /blob/master/Foo/Bar.json