Jump to content

Template:Concept: Difference between revisions

From example
改进模板渲染,添加美观的可视化布局和图标
m Protected "Template:Concept" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[[Category:Concept]]
<includeonly>[[Category:Concept]]
[[Belongs to world::{{{world|}}}]]
{{#set:
{{#if:{{{parent|}}}|[[Parent concept::{{{parent}}}]]|}}
Belongs to world={{{world|}}}
{{#if:{{{plist|}}}|[[Plist::{{{plist}}}]]|}}
|{{#if:{{{parent|}}}|Parent concept={{{parent}}}|}}
{{#if:{{{alichat|}}}|[[AliChat::{{{alichat}}}]]|}}
|{{#if:{{{plist|}}}|Plist={{{plist}}}|}}
{{#if:{{{primary|}}}|[[Primary keys::{{{primary}}}]]|}}
|{{#if:{{{alichat|}}}|AliChat={{{alichat}}}|}}
{{#if:{{{secondary|}}}|[[Secondary keys::{{{secondary}}}]]|}}
|{{#if:{{{primary|}}}|Primary keys={{{primary}}}|}}
{{#if:{{{logic|}}}|[[Logic::{{{logic}}}]]|}}
|{{#if:{{{secondary|}}}|Secondary keys={{{secondary}}}|}}
{{#if:{{{mode|}}}|[[Key mode::{{{mode}}}]]|}}
|{{#if:{{{logic|}}}|Logic={{{logic}}}|}}
{{#if:{{{placement|}}}|[[Placement::{{{placement}}}]]|}}
|{{#if:{{{mode|}}}|Key mode={{{mode}}}|}}
{{#if:{{{nonrecursable|}}}|[[Non-recursable::{{{nonrecursable}}}]]|}}
|{{#if:{{{placement|}}}|Placement={{{placement}}}|}}
|{{#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;">
<!-- Header -->
<!-- Header -->

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
}}