Jump to content

SMW Lorebook Properties: Difference between revisions

From example
Upload SMW Lorebook Properties reference page
 
添加新的 World 属性到列表
 
Line 3: Line 3:
Create the following property pages so the templates can assign structured data. Each bullet links to the intended Property namespace page and declares its type.
Create the following property pages so the templates can assign structured data. Each bullet links to the intended Property namespace page and declares its type.


== World Properties ==
* [[Property:World name]] – <nowiki>[[Has type::Text]]</nowiki>
* [[Property:World description]] – <nowiki>[[Has type::Text]]</nowiki>
== Concept Properties ==
* [[Property:Belongs to world]] – <nowiki>[[Has type::Page]]</nowiki>
* [[Property:Belongs to world]] – <nowiki>[[Has type::Page]]</nowiki>
* [[Property:Parent concept]] – <nowiki>[[Has type::Page]]</nowiki>
* [[Property:Parent concept]] – <nowiki>[[Has type::Page]]</nowiki>
Line 18: Line 23:
# Paste the matching declaration from above and save.
# Paste the matching declaration from above and save.
# Optionally add descriptions or allowed values using SMW property annotations.
# Optionally add descriptions or allowed values using SMW property annotations.
== Note ==
Templates use <code>{{#set:}}</code> to assign property values, which keeps the metadata hidden from the page display while still making it available for queries.

Latest revision as of 18:03, 17 October 2025

Semantic MediaWiki properties for Lorebook demo

[edit | edit source]

Create the following property pages so the templates can assign structured data. Each bullet links to the intended Property namespace page and declares its type.

World Properties

[edit | edit source]

Concept Properties

[edit | edit source]

Usage

[edit | edit source]
  1. Open each property page on the wiki (e.g. Property:Belongs to world).
  2. Paste the matching declaration from above and save.
  3. Optionally add descriptions or allowed values using SMW property annotations.

Templates use to assign property values, which keeps the metadata hidden from the page display while still making it available for queries.