Jump to content

Template:World: Difference between revisions

From example
使用 #set 来设置属性,避免在页面上显示元数据
m Protected "Template:World" ([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:
  World name={{{name|{{PAGENAME}}}}}
  World name={{{name|{{PAGENAME}}}}}
  {{#if:{{{description|}}}|World description={{{description}}}|}}
  |{{#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);">

Latest revision as of 19:39, 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.
}}