# growi-plugin-attachment-refs
[](https://david-dm.org/weseek/growi-plugin-attachment-refs)
[](https://david-dm.org/weseek/growi-plugin-attachment-refs?type=dev)
[](LICENSE)
Install
--------
1. install plugin
```bash
yarn add growi-plugin-attachment-refs
```
1. build client app (see official documents)
Usage
------
### `ref` tag
#### Syntax
```
$ref(file.txt)
$ref(file.txt, page=/somewhere/page)
```
#### Output

#### Options
- **`page`** : Target page path of reference file
### `refs` tag
#### Syntax
```
$refs(/somewhere/page, regexp=/^file.*\.txt$/)
```
#### Output

#### Options
- **`regexp`** : Regular Expression to retrieve
- **`format`** : File format specification
### `refimg` tag
#### Syntax
```
$refimg(pict.png, width=50%, alt=Pic)
```
#### Output
```html
```
#### Options
- **`width`** : width
- **`height`** : height
- **`max-width`** : max-width
- **`max-height`** : max-height
- **`alt`** : alt text
### `refsimg` tag
#### Syntax
```
$refsimg(/somewhere/page, regexp=/^.*\.png$/, max-width=200)
```
#### Output
```html