fn: link
[contents]

Contents

Syntax

The syntax for link calls is:

f++:  
link{options}(url)
link{options}(url, string)

n++:  
@link{options}(url)
@link{options}(url, string)

Description

The link function returns code for inserting links in to different languages. It either takes just a single string parameter specifying a url or the same first parameter with an optional second string parameter specifying the text to be displayed for the link, by default it returns code for html links.

The format of the code returned by link is as follows:

html:  
<a href="url">url</a>
<a href="url">string</a>

md:  
[url](url)
[string](url)

Options

The following options are available for link calls:

f++ example

Examples of link being used with f++:

link("https://nift.cc", "Nift website")

n++ example

Example of link being used with n++:

@link("https://nift.cc", "Nift website")

Sponsors