Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Chapter: Difference between revisions

Template page
Create chapter infobox template
 
m Correct subpage reference
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Template:About|{{#ifeq:{{{chapter}}}|prologue|the prologue|{{#ifeq:{{{chapter}}}|epilogue|the epilogue|chapter {{{chapter}}}}}}} of {{{name|{{BASEPAGENAME}}}}}|a shorter summary|{{{name|{{BASEPAGENAME}}}}}/Cliffnotes|a summary of the entire book|{{{name|{{BASEPAGENAME}}}}}}}
<templatestyles src="Module:Infobox/styles.css" />
<templatestyles src="Module:Infobox/styles.css" />
<table class="infobox">
<table class="infobox">
<caption class="infobox-title">{{{name|{{BASEPAGENAME}}}}}</caption>
<caption class="infobox-title">{{{name|{{BASEPAGENAME}}}}}</caption>
{{infobox/row|header={{{chapter}}} (of {{{chaptercount}}})}}
{{infobox/row|header={{#ifeq:{{{chapter}}}|prologue|Prologue|{{#ifeq:{{{chapter}}}|epilogue|Epilogue|Chapter {{{chapter}}} (of {{Chapter/List|1={{{name|{{BASEPAGENAME}}}}}}})}}}}}}
{{infobox/row
{{#ifeq:{{{chapter}}}|prologue||{{#ifeq:{{{chapter}}}|epilogue||{{infobox/row
   |label=Pages
   |label=Pages
   |data={{{firstpage}}}-{{{lastpage}}}
   |data={{{firstpage}}}-{{{lastpage}}}
}}
}}}}}}
{{infobox/row
{{infobox/row
   |label=Point of view
   |label=Point of view
Line 13: Line 14:
{{infobox/row|header=Index}}
{{infobox/row|header=Index}}
<tr>
<tr>
<td>
<td colspan="2" style="text-align:center;">
{{#invoke:Chapterlist|numOnly}}
<p>
{{#invoke:Chapterlist|numOnly|{{{name|{{BASEPAGENAME}}}}}}}
</p>
</td>
</td>
</tr>
</tr>
Line 26: Line 29:
"description": "The name of the book without \"Wings of Fire\"",
"description": "The name of the book without \"Wings of Fire\"",
"example": "The Dragonet Prophecy",
"example": "The Dragonet Prophecy",
"type": "string",
"required": true
},
"chatper": {
"label": "Chapter",
"description": "The chapter this page describes. Can be a number, prologue, or epilogue.",
"example": "1",
"type": "string",
"type": "string",
"required": true
"required": true
Line 49: Line 45:
"type": "number",
"type": "number",
"suggested": true
"suggested": true
},
"chaptercount": {
"label": "Chapter Count",
"description": "The total number of chapters in this book.",
"example": "35",
"required": true
},
},
"pov": {
"pov": {
Line 62: Line 52:
"type": "wiki-page-name",
"type": "wiki-page-name",
"suggested": true
"suggested": true
},
"chapter": {
"label": "Chapter",
"description": "The chapter this page describes. Can be a number, prologue, or epilogue.",
"example": "1",
"type": "string",
"required": true
}
}
},
},
Line 67: Line 64:
"paramOrder": [
"paramOrder": [
"name",
"name",
"chatper",
"chapter",
"chaptercount",
"firstpage",
"firstpage",
"lastpage",
"lastpage",

Latest revision as of 08:23, 17 June 2025

Chapter
Chapter {{{chapter}}} (of Unknown)
Pages {{{firstpage}}}-{{{lastpage}}}
Index

Not Applicable Yet

An infobox that describes a chapter summary

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Namename

The name of the book without "Wings of Fire"

Example
The Dragonet Prophecy
Stringrequired
Chapterchapter

The chapter this page describes. Can be a number, prologue, or epilogue.

Example
1
Stringrequired
First Pagefirstpage

The number of the page that this chapter starts on.

Example
1
Numbersuggested
Last Pagelastpage

The number of the page that this chapter ends on.

Example
11
Numbersuggested
Point of Viewpov

The page name of the character that this chapter follows.

Example
Clay
Page namesuggested
Cookies help us deliver our services. By using our services, you agree to our use of cookies.