Template:Test/C: Difference between revisions
mNo edit summary Tag: Reverted |
mNo edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if:{{{infobox|}}} | {{#if:{{{1|}}} | {{#switch:{{lc:{{{ | <includeonly>{{#if:{{{infobox|}}} | ||
| | | {{#if:{{{1|}}} | ||
| {{#switch:{{lc:{{{2}}}}} | |||
| | | prologue = [[Summary:{{B|{{{1}}}}}#Prologue|''{{B|{{{1}}}}}'', Prologue]] | ||
| epilogue = [[Summary:{{B|{{{1}}}}}#Epilogue|''{{B|{{{1}}}}}'', Epilogue]] | |||
| {{#ifexpr: {{{2}}} > 0 and {{{2}}} <= 75 | | {{#ifexpr: {{{2}}} > 0 and {{{2}}} <= 75 | ||
| [[Summary:{{B|{{{1}}}}}#Chapter_{{{2}}}|''{{B|{{{1}}}}}'', Chapter {{{2}}}]] | |||
| <span style="color:red">Error: Chapter exceeds 75</span> | |||
}} | |||
}} | }} | ||
| <span style="color:red">Error: Missing book title</span> | |||
}} | |||
| {{#tag:ref| | | {{#tag:ref| | ||
{{#if:{{{1|}}} | {{#switch:{{lc:{{{ | {{#if:{{{1|}}} | ||
| | | {{#switch:{{lc:{{{2}}}}} | ||
| prologue = [[Summary:{{B|{{{1}}}}}#Prologue|''{{B|{{{1}}}}}'', Prologue]] | |||
| | | epilogue = [[Summary:{{B|{{{1}}}}}#Epilogue|''{{B|{{{1}}}}}'', Epilogue]] | ||
| {{#ifexpr: {{{2}}} > 0 and {{{2}}} <= 75 | | {{#ifexpr: {{{2}}} > 0 and {{{2}}} <= 75 | ||
| [[Summary:{{B|{{{1}}}}}#Chapter_{{{2}}}|''{{B|{{{1}}}}}'', Chapter {{{2}}}]] | |||
| <span style="color:red">Error: Chapter exceeds 75</span> | |||
}} | |||
}} | }} | ||
| <span style="color:red">Error: Missing book title</span> | |||
| name={{{ | }} | ||
| name={{#switch:{{lc:{{{2}}}}} | |||
| prologue = {{B|{{{1}}}}}#Prologue | |||
| epilogue = {{B|{{{1}}}}}#Epilogue | |||
| {{B|{{{1}}}}}#Chapter {{{2}}} | |||
}} | |||
| group={{{group|}}} | | group={{{group|}}} | ||
}} | }} | ||
| Line 32: | Line 35: | ||
Testing out updates to {{t|Book ref}} to simplify the logic by standardizing the way chapter headings are parsed through the use of hidden chapter headings when chapter format breaks the standard format of "Chapter 1", "Chapter 2", etc. | Testing out updates to {{t|Book ref}} to simplify the logic by standardizing the way chapter headings are parsed through the use of hidden chapter headings when chapter format breaks the standard format of "Chapter 1", "Chapter 2", etc. | ||
Test{{test/C| | Test{{test/C|qg|3|infobox=yes}} | ||
Test{{test/C|q|3}} | Test{{test/C|q|3}} | ||
Revision as of 22:00, 11 May 2025
Description
Testing out updates to {{Book ref}} to simplify the logic by standardizing the way chapter headings are parsed through the use of hidden chapter headings when chapter format breaks the standard format of "Chapter 1", "Chapter 2", etc.
TestThe Queen's Gambit, Chapter 3
Test[1]