Jump to content

Template:World: Difference between revisions

From example
改进世界模板渲染,添加美观的渐变背景和概念列表
使用 #set 来设置属性,避免在页面上显示元数据
Line 1: Line 1:
<includeonly>[[Category:World]]
<includeonly>[[Category:World]]
{{#set:
World name={{{name|{{PAGENAME}}}}}
{{#if:{{{description|}}}|World description={{{description}}}|}}
}}
<div class="lorebook-world" style="border: 2px solid #0645ad; border-radius: 8px; padding: 20px; margin: 15px 0; background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%); box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
<div class="lorebook-world" style="border: 2px solid #0645ad; border-radius: 8px; padding: 20px; margin: 15px 0; background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%); box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
<!-- World Header -->
<!-- World Header -->

Revision as of 18:02, 17 October 2025

World template

This template standardises world-level pages for the Lorebook → MediaWiki demo.

Parameters

name (optional)
Overrides the display name. Defaults to the page title.
description (optional)
Short summary of the world.

Example

{{World
 |name=Farlandia
 |description=A fantasy setting used for examples.
}}