Lorebooks2MediaWiki: Difference between revisions

No edit summary
No edit summary
Line 11: Line 11:
# Run {{#invoke:Lorebook|inject|world=Farlandia|context=Slime in Mossford}}
# Run {{#invoke:Lorebook|inject|world=Farlandia|context=Slime in Mossford}}
# You get context like:
# You get context like:
<pre>[Farlandia's monsters: slimes, dragons]
 
[slime: enemy, slimeball, made of gelatin, bounces to move, annoyance]
<code>{{#invoke:Lorebook|inject|world=Farlandia|context=Slime in Mossford}}</code>
{{char}}: "Oh... Those things." She blushes, remembering their first battle.</pre>
 
That output mirrors the original lorebook behaviour while everything remains queryable inside the wiki.
That output mirrors the original lorebook behaviour while everything remains queryable inside the wiki.