Jump to content

Template:Concept: Difference between revisions

From example
使用 #set 来设置属性,避免在页面上显示元数据
m Protected "Template:Concept" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
{{#set:
{{#set:
  Belongs to world={{{world|}}}
  Belongs to world={{{world|}}}
  {{#if:{{{parent|}}}|Parent concept={{{parent}}}|}}
  |{{#if:{{{parent|}}}|Parent concept={{{parent}}}|}}
  {{#if:{{{plist|}}}|Plist={{{plist}}}|}}
  |{{#if:{{{plist|}}}|Plist={{{plist}}}|}}
  {{#if:{{{alichat|}}}|AliChat={{{alichat}}}|}}
  |{{#if:{{{alichat|}}}|AliChat={{{alichat}}}|}}
  {{#if:{{{primary|}}}|Primary keys={{{primary}}}|}}
  |{{#if:{{{primary|}}}|Primary keys={{{primary}}}|}}
  {{#if:{{{secondary|}}}|Secondary keys={{{secondary}}}|}}
  |{{#if:{{{secondary|}}}|Secondary keys={{{secondary}}}|}}
  {{#if:{{{logic|}}}|Logic={{{logic}}}|}}
  |{{#if:{{{logic|}}}|Logic={{{logic}}}|}}
  {{#if:{{{mode|}}}|Key mode={{{mode}}}|}}
  |{{#if:{{{mode|}}}|Key mode={{{mode}}}|}}
  {{#if:{{{placement|}}}|Placement={{{placement}}}|}}
  |{{#if:{{{placement|}}}|Placement={{{placement}}}|}}
  {{#if:{{{nonrecursable|}}}|Non-recursable={{{nonrecursable}}}|}}
  |{{#if:{{{nonrecursable|}}}|Non-recursable={{{nonrecursable}}}|}}
}}
}}
<div class="lorebook-concept" style="border: 1px solid #a2a9b1; border-radius: 4px; padding: 15px; margin: 10px 0; background: #f8f9fa;">
<div class="lorebook-concept" style="border: 1px solid #a2a9b1; border-radius: 4px; padding: 15px; margin: 10px 0; background: #f8f9fa;">

Latest revision as of 19:39, 17 October 2025

Concept template

This template stores a lore or environment concept using Semantic MediaWiki properties.

Core parameters

world
Name of the parent world page (required for categorisation).
parent
Optional parent concept (enables recursive triggering).
plist
PList-style description content.
alichat
Optional Ali:Chat style reaction text.
primary / secondary
Comma-separated key lists. Combine with logic to reproduce Lorebook conditions.
logic
ANY (default), AND, or NOT.
mode
constant, conditional (default), or disabled.
placement / nonrecursable
Additional hints controlling injection order and recursion.

Example

{{Concept
 |world=Farlandia
 |parent=Farlandia:Monsters
 |plist=[slime: enemy, slimeball, made of gelatin, bounces to move, annoyance]
 |alichat={{user}}: Slime?
{{char}}: "Oh... Those things." She blushes, remembering their first battle.
 |primary=slime,slimes
 |logic=ANY
 |mode=conditional
 |placement=depth:5
}}