Add single image display.

This commit is contained in:
2026-01-19 09:16:02 +01:00
parent 95a0e94b4a
commit 8aa022feff
14 changed files with 390 additions and 59 deletions

View File

@@ -174,7 +174,25 @@ This always renders as a table. It includes an "Open Location" link above the ta
Clicking a thumbnail opens a lightbox viewer. Thumbnails are generated and cached via the plugin endpoint.
### 4) Open a local path/folder (best-effort)
### 4) Single image with caption (imagebox)
```
{{image>/Scape/photos/picture.jpg|This is the caption}}
{{image>/Scape/photos/picture.jpg?400|Resized to 400px width}}
{{image>/Scape/photos/picture.jpg?400x300|Fixed dimensions}}
{{image>/Scape/photos/picture.jpg?left|Float left}}
{{image>/Scape/photos/picture.jpg?400&center|Resized and centered}}
```
Renders a Wikipedia-style image box with optional caption. Parameters after `?` are separated by `&`:
- Size: `?200` (width) or `?200x150` (width × height)
- Alignment: `?left`, `?right` (default), or `?center`
- Combined: `?400&left` or `?400x300&center`
The image links to the full-size version when clicked.
### 5) Open a local path/folder (best-effort)
```
{{open>/Scape/projects|Open projects folder}}
@@ -186,7 +204,7 @@ Behaviour:
- Prefer calling the configured local client service (open_service_url).
- Fall back to opening a file:// URL in a new tab (often blocked by browsers).
### 5) Scratchpads (shared, file-backed, no page revisions)
### 6) Scratchpads (shared, file-backed, no page revisions)
```
{{scratchpad>start}}
@@ -221,6 +239,17 @@ Additionally for `{{files>...}}`:
| tableheader | 0\|1 | Render table header row. |
## Admin settings
The admin settings page includes a **default_tablecolumns** option that lets you specify which columns are displayed by default in table-style listings. This is a comma-separated list of column names:
- `name` File/folder name (always shown)
- `size` File size
- `date` Last modified date
Example: `name,size,date` shows all columns by default.
## Credits / upstream
luxtools is a fork of the [DokuWiki Filelist plugin](https://www.dokuwiki.org/plugin:filelist).