Template:IngameBook: Difference between revisions

From CinderCivs Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude>
<div style="display:flex; justify-content:center;">
<div style="display:flex; justify-content:center;">
<div style="
<div style="max-width:720px; padding:24px; background:#fdfcf7; border:1px solid #cfcfcf; font-family:serif; line-height:1.6;">
  max-width:720px;
  padding:24px;
  background:#fdfcf7;
  border:1px solid #cfcfcf;
  font-family:serif;
  line-height:1.6;
">


{{#if:{{{title|}}}|
{{#if:{{{title|}}}|
Line 22: Line 14:
}}
}}


{{#if:{{{author|}}}{{{date|}}}{{{location|}}}|
{{#if:{{{author|}}}|
<div style="font-size:0.9em; color:#444;">
<b>Author:</b> {{{author}}}
</div>
}}
 
{{#if:{{{date|}}}|
<div style="font-size:0.9em; color:#444;">
<b>Written:</b> {{{date}}}
</div>
}}
 
{{#if:{{{location|}}}|
<div style="font-size:0.9em; margin-bottom:1.5em; color:#444;">
<div style="font-size:0.9em; margin-bottom:1.5em; color:#444;">
{{#if:{{{author|}}}|<b>Author:</b> {{{author}}}<br>}
<b>Location:</b> {{{location}}}
{{#if:{{{date|}}}|<b>Written:</b> {{{date}}}<br>}
{{#if:{{{location|}}}|<b>Location:</b> {{{location}}}}
</div>
</div>
}}
}}


{{#if:{{{chapter1|}}}|
<div>
{{#if:{{{chapter1|}}}|
{{#if:{{{chapter1|}}}|
<div style="margin-top:1.5em;">
<div style="margin-top:1.5em;">
<div style="font-size:1.3em; font-weight:bold; margin-bottom:0.5em;">{{{chapter1}}}</div>
<div style="font-size:1.3em; font-weight:bold;">{{{chapter1}}}</div>
{{{text1}}}
{{{text1}}}
</div>
</div>
}}
}}
{{#if:{{{chapter2|}}}|
{{#if:{{{chapter2|}}}|
<div style="margin-top:1.5em;">
<div style="margin-top:1.5em;">
<div style="font-size:1.3em; font-weight:bold; margin-bottom:0.5em;">{{{chapter2}}}</div>
<div style="font-size:1.3em; font-weight:bold;">{{{chapter2}}}</div>
{{{text2}}}
{{{text2}}}
</div>
</div>
}}
}}
{{#if:{{{chapter3|}}}|
{{#if:{{{chapter3|}}}|
<div style="margin-top:1.5em;">
<div style="margin-top:1.5em;">
<div style="font-size:1.3em; font-weight:bold; margin-bottom:0.5em;">{{{chapter3}}}</div>
<div style="font-size:1.3em; font-weight:bold;">{{{chapter3}}}</div>
{{{text3}}}
{{{text3}}}
</div>
</div>
}}
}}
{{#if:{{{chapter4|}}}|
{{#if:{{{chapter4|}}}|
<div style="margin-top:1.5em;">
<div style="margin-top:1.5em;">
<div style="font-size:1.3em; font-weight:bold; margin-bottom:0.5em;">{{{chapter4}}}</div>
<div style="font-size:1.3em; font-weight:bold;">{{{chapter4}}}</div>
{{{text4}}}
{{{text4}}}
</div>
</div>
}}
}}
</div>
 
|
{{#if:{{{text|}}}|
<div>
<div>
{{{text}}}
{{{text}}}
Line 65: Line 68:
</div>
</div>
</div>
</div>
</onlyinclude>
<noinclude>
<templatedata>
{
  "description": "Formats in-game Minecraft books, letters, and texts with optional metadata and chapters.",
  "params": {
    "title": {
      "label": "Title",
      "type": "string",
      "required": true
    },
    "subtitle": {
      "label": "Subtitle",
      "type": "string"
    },
    "author": {
      "label": "Author",
      "type": "string"
    },
    "date": {
      "label": "Date Written",
      "type": "string"
    },
    "location": {
      "label": "Location Written",
      "type": "string"
    },
    "text": {
      "label": "Full Text (no chapters)",
      "type": "string",
      "description": "Used only if no chapters are defined."
    },
    "chapter1": {
      "label": "Chapter 1 Title",
      "type": "string"
    },
    "text1": {
      "label": "Chapter 1 Text",
      "type": "string"
    },
    "chapter2": {
      "label": "Chapter 2 Title",
      "type": "string"
    },
    "text2": {
      "label": "Chapter 2 Text",
      "type": "string"
    },
    "chapter3": {
      "label": "Chapter 3 Title",
      "type": "string"
    },
    "text3": {
      "label": "Chapter 3 Text",
      "type": "string"
    },
    "chapter4": {
      "label": "Chapter 4 Title",
      "type": "string"
    },
    "text4": {
      "label": "Chapter 4 Text",
      "type": "string"
    }
  }
}
</templatedata>
</noinclude>

Latest revision as of 03:17, 27 December 2025