fix image loading

This commit is contained in:
Lucas 2023-07-31 18:24:46 +02:00 committed by LUCASTUCIOUS
parent 68bf0de608
commit b16e74f21b
29 changed files with 32 additions and 56 deletions

View file

@ -24,8 +24,7 @@ source: Studio Agate, Créatures vol.1
> [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -18,8 +18,7 @@ organisations:
status: TODO
---
> [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -20,8 +20,7 @@ todo:
- Lui trouver une utilité plus large
---
> [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -20,8 +20,7 @@ organisations:
status: TODO
---
> [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -23,8 +23,7 @@ organisations: ["[La Tridentine](../../Factions/La%20Tridentine.md)"]
status: DONE
---
> [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -21,8 +21,7 @@ organisations:
- "[Aïpio](../../Factions/Aïpio.md)"
---
> [!infobox]+ `= this.file.name`
> `$= "<a class='internal-link' data-href=" + dv.current().image + "><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img></a>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -17,8 +17,7 @@ hates: []
status: TODO
---
> [!infobox]+ `= this.file.name`
> `$= "<a class='internal-link' data-href='" + dv.current().image + "'><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img></a>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -19,8 +19,7 @@ status: TODO
---
> [!infobox]+ `= this.file.name`
>`$= "<a class='internal-link' data-href='" + dv.current().image.replace(/'/g, "%27") + "' ><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + encodeURIComponent(dv.current().image).replace(/'/g, "%27") + "' > </a>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -17,8 +17,7 @@ hates: []
status: TODO
---
> [!infobox]+ `= this.file.name`
> `$= "<a class='internal-link' data-href='" + dv.current().image + "'><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img></a>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -7,6 +7,7 @@ class:
ethnicity:
short-desc: test
image:
source: Studio Agate, Créatures 1
goals:
- ""
likes: []
@ -14,8 +15,7 @@ hates: []
status: TODO
---
> [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"`
> *source: Studio Agate, Créatures 1*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -21,8 +21,7 @@ status: TODO
---
> [!infobox]+ `= this.file.name`
>`$= "<a class='internal-link' data-href='" + dv.current().image.replace(/'/g, "%27") + "' ><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + encodeURIComponent(dv.current().image).replace(/'/g, "%27") + "' > </a>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -21,8 +21,7 @@ todo:
- Leur créer une backstory interessante. Peut-etre les utiliser pour justifier les travaux du [Taudis d'Asoif](../../Locations/Taudis%20d'Asoif.md)
---
> [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"`
> *source: *
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -15,8 +15,7 @@ hates: []
status: TODO
---
> [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -23,8 +23,7 @@ organisations:
- "[La Main](../../Factions/La%20Main.md)"
---
> [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"`
> *source:: *
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -15,8 +15,7 @@ hates: []
status: TODO
---
> [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -20,8 +20,7 @@ organisations: ["[La Raqisa](../../Factions/La%20Raqisa.md)",]
status: TODO
---
> [!infobox]+ `= this.file.name`
> `$= "<a class='internal-link' data-href='" + dv.current().image + "'><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img></a>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -20,8 +20,7 @@ organisations: ["[La Raqisa](../../Factions/La%20Raqisa.md)","[Nihiliens](../../
status: WIP
---
> [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -18,8 +18,7 @@ organisations:
status: TODO
---
> [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -17,8 +17,7 @@ hates: []
status: TODO
---
> [!infobox]+ `= this.file.name`
> `$= "<a class='internal-link' data-href='" + dv.current().image + "'><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img></a>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -19,8 +19,7 @@ status: TODO
---
> [!infobox]+ `= this.file.name`
>`$= "<a class='internal-link' data-href='" + dv.current().image.replace(/'/g, "%27") + "' ><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + encodeURIComponent(dv.current().image).replace(/'/g, "%27") + "' > </a>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -19,8 +19,7 @@ status: TODO
---
> [!infobox]+ `= this.file.name`
>`$= "<a class='internal-link' data-href='" + dv.current().image.replace(/'/g, "%27") + "' ><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + encodeURIComponent(dv.current().image).replace(/'/g, "%27") + "' > </a>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -19,8 +19,7 @@ status: TODO
---
> [!infobox]+ `= this.file.name`
>`$= "<a class='internal-link' data-href='" + dv.current().image.replace(/'/g, "%27") + "' ><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + encodeURIComponent(dv.current().image).replace(/'/g, "%27") + "' > </a>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -21,8 +21,7 @@ status: DONE
banner_y: 0.65714
---
> [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -8,6 +8,7 @@ class: Bourgeoisie
ethnicity: Ouestrien
short-desc: L'homme de main d'[[Erulissen]] et le leader politique des Elenions à [[LAssemblée]]
image: ../Illustrations/dai_lavellan_by_nanoetetsu_d8ajxjc-fullview.jpg
source: dai lavellan, by nanoetetsu
goals:
- Accéder à [[La Main]]
- " Dominer les races inférieurs et assurer la suprématie elfique"
@ -24,8 +25,7 @@ organisations:
status: DONE
---
> [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"`
> *source:: dai lavellan, by nanoetetsu *
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -19,8 +19,7 @@ organisations:
status: TODO
---
> [!infobox]+ `= this.file.name`
> `$= "<a class='internal-link' data-href='" + dv.current().image + "'><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img></a>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -16,8 +16,7 @@ status: TODO
---
> [!infobox]+ `= this.file.name`
>`$= "<a class='internal-link' data-href='" + dv.current().image.replace(/'/g, "%27") + "' ><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + encodeURIComponent(dv.current().image).replace(/'/g, "%27") + "' > </a>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -17,8 +17,7 @@ status: TODO
---
> [!infobox]+ `= this.file.name`
>`$= "<a class='internal-link' data-href='" + dv.current().image.replace(/'/g, "%27") + "' ><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + encodeURIComponent(dv.current().image).replace(/'/g, "%27") + "' > </a>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -19,8 +19,7 @@ status: TODO
---
> [!infobox]+ `= this.file.name`
>`$= "<a class='internal-link' data-href='" + dv.current().image.replace(/'/g, "%27") + "' ><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + encodeURIComponent(dv.current().image).replace(/'/g, "%27") + "' > </a>"`
> *source: `= this.source`*
> `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
>
> | | |
> | --- | --- |

View file

@ -0,0 +1,2 @@
> `$= "<a class='internal-link' data-href='" + dv.current().image + "'><img src='file:///" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img></a>"`
> *source: `= this.source`*