Template:World: Difference between revisions
Appearance
Create World template for lorebook demo |
改进世界模板渲染,添加美观的渐变背景和概念列表 |
||
Line 1: | Line 1: | ||
<includeonly>[[Category:World]] | <includeonly>[[Category:World]] | ||
; | <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);"> | ||
; Description: {{{description|}}} | <!-- World Header --> | ||
<div style="text-align: center; margin-bottom: 15px;"> | |||
<div style="font-size: 2em; font-weight: bold; color: #0645ad; text-shadow: 1px 1px 2px rgba(0,0,0,0.1);"> | |||
🌍 {{{name|{{PAGENAME}}}}} | |||
</div> | |||
<div style="font-size: 0.9em; color: #54595d; margin-top: 5px; font-style: italic;"> | |||
Lorebook World | |||
</div> | |||
</div> | |||
<!-- Description --> | |||
{{#if:{{{description|}}}| | |||
<div style="padding: 12px 15px; background: white; border-radius: 5px; border-left: 4px solid #0645ad; margin-bottom: 10px;"> | |||
<div style="font-weight: bold; color: #0645ad; margin-bottom: 5px;">📖 Description:</div> | |||
<div style="line-height: 1.6;">{{{description}}}</div> | |||
</div> | |||
|}} | |||
<!-- Concepts List --> | |||
<div style="margin-top: 15px; padding: 10px; background: rgba(255,255,255,0.7); border-radius: 5px;"> | |||
<div style="font-weight: bold; color: #0645ad; margin-bottom: 8px;">📚 Concepts in this World:</div> | |||
{{#ask: [[Category:Concept]] [[Belongs to world::{{PAGENAME}}]] | |||
|format=ul | |||
|link=all | |||
|limit=50 | |||
|default=<em style="color: #72777d;">No concepts defined yet.</em> | |||
}} | |||
</div> | |||
</div> | |||
</includeonly><noinclude> | </includeonly><noinclude> | ||
== World template == | == World template == |
Revision as of 17:59, 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. }}