Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| batocera_wiki_code_snippets [2022/08/16 13:43] – Add: Syntax for the newly added "imagebox" DokuWiki plugin. grandmabetty | batocera_wiki_code_snippets [2023/10/20 06:02] (current) – [Embedded images]: Explain how to avoid font issues in SVG ssokolow | ||
|---|---|---|---|
| Line 109: | Line 109: | ||
| {{: | {{: | ||
| - | The wiki's media manager can actually accept SVG files even though it doesn' | + | The wiki's media manager can actually accept SVG files even though it doesn' |
| - | However, by using the official DokuWiki [[https:// | + | However, by using the official DokuWiki [[https:// |
| [{{ wiki: | [{{ wiki: | ||
| [{{ wiki: | [{{ wiki: | ||
| + | | ||
| + | ===== Embedded videos ===== | ||
| + | |||
| + | It is recommended to convert the video to a WEBM with a resolution of 655x368 to prepare it for embedding into the wiki page and not have interruptions during playback. With that said, the wiki supports many video formats (check what you can upload in the media uploading tool) and the resolution will always be downscaled to whatever size you specify in the embed code itself. For example: | ||
| + | |||
| + | < | ||
| + | {{URL-to-video? | ||
| + | </ | ||
| + | |||
| + | This would result in the video looking similar to this: | ||
| + | |||
| + | {{blog: | ||
| + | |||
| + | <WRAP center round tip> | ||
| + | A quick way to record videos from Batocera itself is to sign in via SSH and run the '' | ||
| + | </ | ||
| ===== Unformatted code ===== | ===== Unformatted code ===== | ||
| Line 298: | Line 314: | ||
| <-- | <-- | ||
| + | |||
| + | ===== File tree ASCII art ===== | ||
| + | |||
| + | When you need to display a folder' | ||
| + | |||
| + | < | ||
| + | roms/ | ||
| + | ├─ psx/ | ||
| + | │ ├─ Final Fantasy VII (Disc 1).bin | ||
| + | │ └─ Final Fantasy VII (Disc 1).cue | ||
| + | └─ Final Fantasy VII (Disc 1).m3u | ||
| + | </ | ||
| + | |||
| + | Although it may be fun to write these out yourself, an automatic tool to create them is available at https:// | ||
| ===== CSV SAMPLE OUTPUT GOOGLE ===== | ===== CSV SAMPLE OUTPUT GOOGLE ===== | ||
| Line 320: | Line 350: | ||
| - Copy the link (check it ends with output=csv) and paste it into your dokuwiki CSV table using the file= attribute described above. | - Copy the link (check it ends with output=csv) and paste it into your dokuwiki CSV table using the file= attribute described above. | ||
| </ | </ | ||
| + | |||
| + | ===== Embed a website into a wiki page ===== | ||
| + | |||
| + | Batocera wiki supports iframes, showing another web page inside of the article. Simple example: | ||
| + | |||
| + | < | ||
| + | {{url> | ||
| + | </ | ||
| + | |||
| + | Full syntax: | ||
| + | |||
| + | < | ||
| + | {{url> | ||
| + | </ | ||
| + | |||
| + | Javascript URLs are not supported. More info at https:// | ||
| ===== Templates ===== | ===== Templates ===== | ||
- batocera_wiki_code_snippets.1660657438.txt.gz
- Last modified: 4 years ago
- by grandmabetty