More actions
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 {{{ | {{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", | "type": "string", | ||
"required": true | "required": true | ||
| Line 49: | Line 45: | ||
"type": "number", | "type": "number", | ||
"suggested": true | "suggested": 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", | ||
" | "chapter", | ||
"firstpage", | "firstpage", | ||
"lastpage", | "lastpage", | ||
Latest revision as of 08:23, 17 June 2025
| Chapter {{{chapter}}} (of Unknown) | |
|---|---|
| Pages | {{{firstpage}}}-{{{lastpage}}} |
| Index | |
|
Not Applicable Yet |
|
An infobox that describes a chapter summary
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | The name of the book without "Wings of Fire"
| String | required |
| Chapter | chapter | The chapter this page describes. Can be a number, prologue, or epilogue.
| String | required |
| First Page | firstpage | The number of the page that this chapter starts on.
| Number | suggested |
| Last Page | lastpage | The number of the page that this chapter ends on.
| Number | suggested |
| Point of View | pov | The page name of the character that this chapter follows.
| Page name | suggested |