Template:Lorebooks infobox: Difference between revisions
Jump to navigation
Jump to search
Donni Iris (talk | contribs) only show locimage if file exists |
Donni Iris (talk | contribs) m editor's note |
||
| Line 2: | Line 2: | ||
! colspan="2" style="font-size:17px; text-align:center; border-radius:2px; background-color:#826c3e;color:#ffffff;" |{{Item icon|Blank Book}} {{{title|title}}} | ! colspan="2" style="font-size:17px; text-align:center; border-radius:2px; background-color:#826c3e;color:#ffffff;" |{{Item icon|Blank Book}} {{{title|title}}} | ||
|- | |- | ||
| style="width:300px;" colspan="2" align="center" | {{#ifexist:File:filename.png{{{locimage|[[Image:{{PAGENAME}} (lorebook).png{{pipe}}400px{{pipe}}]]}}}|{{{locimage|[[Image:{{PAGENAME}} (lorebook).png{{pipe}}400px{{pipe}}]]}}}<br/>|}}<div class="block2" style="color:#ffffff;font-size:11px;">Hint: {{{lochint}}}</div> | | style="width:300px;" colspan="2" align="center" | {{#ifexist:File:filename.png{{{locimage|[[Image:{{PAGENAME}} (lorebook).png{{pipe}}400px{{pipe}}]]}}}|{{{locimage|[[Image:{{PAGENAME}} (lorebook).png{{pipe}}400px{{pipe}}]]}}}<br/>|<!-- File Not Found, consider adding a category like [Pages with broken file links] -->}}<div class="block2" style="color:#ffffff;font-size:11px;">Hint: {{{lochint}}}</div> | ||
|- valign="top" | |- valign="top" | ||
! style="background:#eee; color:#000000; border-radius:2px; width:100px;" align="center" | Category: | ! style="background:#eee; color:#000000; border-radius:2px; width:100px;" align="center" | Category: | ||
Revision as of 07:20, 19 March 2026
| {{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_4006.png | http://cdn.projectgorgon.com/v456/icons/icon_.png | Error: Item not found }} title | |
|---|---|---|---|
Hint: {{{lochint}}}
| |||
| Category: | -
| ||
| Area: | -
| ||
| Visibility: | -
| ||
Syntax
{{Lorebooks infobox
| title =
| locimage=
| lochint=
| category=
| area=
| visibility=
}}
Parameters
- title
- Not Optional. Must be Lorebook name as given in lorebooks.json.
- locimage
- Optional. Defaults to a .png image to be used to show the in-game location. If the image already exists, use
File:ImageName.png - lochint
- Not Optional. The provided hint in lorebooks.json.
- category
- Not Optional. The provided category in lorebooks.json.
- area
- Not Optional. The provided area in lorebooks.json formatted to match an in-game location.
- visibility
- Not Optional. The provided visibility in lorebooks.json formatted to be readable.
Description
Create an attractive "at a glance" information card for Lorebooks.
The info card features one image, an in-game screenshot of the lorebook location.
Notes
As with all more complex templates, remember that changes spread on all concerned articles. Please discuss it with the author before making significant changes.
Examples
The typical usage is to use this in a new article, save, and THEN upload the image by clicking the image link (which then is pre-set with the article name):
| {{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_4006.png | http://cdn.projectgorgon.com/v456/icons/icon_.png | Error: Item not found }} The Wasted Wishes | |
|---|---|---|---|
Hint: Found in a house in Serbule
| |||
| Category: | Stories
| ||
| Area: | |||
| Visibility: | Hidden Until Found
| ||
{{Lorebooks infobox
| title = The Wasted Wishes
| lochint= Found in a house in Serbule
| category= Stories
| area= [[Serbule]]
| visibility= Hidden Until Found
}}