Difference between revisions of "Template:Millennium Book citation"
("chapter" overwrites "section", even if it is blank) |
(get the section and chapter from the page number, if supplied) |
||
Line 1: | Line 1: | ||
− | {{cite book | + | {{ #vardefine: $section | {{ #if: {{{section|}}} |
+ | | {{{section}}} | ||
+ | | <!-- | ||
+ | -->{{ #ifexpr: {{{page|0}}} >= 13 AND {{{page|0}}} <= 28 | ''Yu-Gi-Oh!'' Movie Super Special Report }}<!-- | ||
+ | -->{{ #ifexpr: {{{page|0}}} >= 29 AND {{{page|0}}} <= 238 | Millennium Book }}<!-- | ||
+ | -->{{ #ifexpr: {{{page|0}}} >= 239 AND {{{page|0}}} <= 288 | Duels Chapter }}<!-- | ||
+ | -->{{ #ifexpr: {{{page|0}}} >= 289 AND {{{page|0}}} <= 304 | Spirit-Demon Chapter }} | ||
+ | }} | ||
+ | }}<!-- | ||
+ | |||
+ | -->{{ #vardefine: $chapter | <!-- | ||
+ | -->{{ #ifexpr: {{{chapter|0}}} = 1 OR ({{{page|0}}} >= 33 AND {{{page|0}}} <= 62) | Chapter 1: School arc }}<!-- | ||
+ | -->{{ #ifexpr: {{{chapter|0}}} = 2 OR ({{{page|0}}} >= 63 AND {{{page|0}}} <= 76) | Chapter 2: Death-T arc }}<!-- | ||
+ | -->{{ #ifexpr: {{{chapter|0}}} = 3 OR ({{{page|0}}} >= 77 AND {{{page|0}}} <= 92) | Chapter 3: Monster World arc }}<!-- | ||
+ | -->{{ #ifexpr: {{{chapter|0}}} = 4 OR ({{{page|0}}} >= 93 AND {{{page|0}}} <= 124) | Chapter 4: Duelist Kingdom arc }}<!-- | ||
+ | -->{{ #ifexpr: {{{chapter|0}}} = 5 OR ({{{page|0}}} >= 125 AND {{{page|0}}} <= 134) | Chapter 5: D.D.D. arc }}<!-- | ||
+ | -->{{ #ifexpr: {{{chapter|0}}} = 6 OR ({{{page|0}}} >= 135 AND {{{page|0}}} <= 162) | Chapter 6: Battle City arc }}<!-- | ||
+ | -->{{ #ifexpr: {{{chapter|0}}} = 7 OR ({{{page|0}}} >= 163 AND {{{page|0}}} <= 188) | Chapter 7: Tournament Finals arc }}<!-- | ||
+ | -->{{ #ifexpr: {{{chapter|0}}} = 8 OR ({{{page|0}}} >= 189 AND {{{page|0}}} <= 226) | Chapter 8: Pharaoh's Memory arc }}<!-- | ||
+ | -->{{ #ifexpr: {{{chapter|0}}} = 9 OR ({{{page|0}}} >= 227 AND {{{page|0}}} <= 236) | Final Chapter: Ceremonial Battle arc }}<!-- | ||
+ | -->{{ #ifeq: {{{chapter}}} | Final | Final Chapter: Ceremonial Battle arc }} | ||
+ | }}<!-- | ||
+ | |||
+ | -->{{cite book | ||
| last = Takahashi | | last = Takahashi | ||
| first = Kazuki | | first = Kazuki | ||
Line 13: | Line 36: | ||
| isbn = 978-4-08-779722-0 | | isbn = 978-4-08-779722-0 | ||
− | | chapter = {{ # | + | | chapter = {{ #var: $section }}<!-- |
− | + | -->{{ #ifeq: {{ #var: $section | 1 }}{{ #var: $chapter | 1 }} | 11 | |  –  }}<!-- | |
− | + | -->{{ #var: $chapter }} | |
− | |||
− | |||
− | |||
− | |||
− | -->{{ # | ||
− | |||
− | -->{{ # | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| page = {{{page|}}} | | page = {{{page|}}} | ||
| pages = {{{pages|}}} | | pages = {{{pages|}}} | ||
| quote = {{{quote|}}} | | quote = {{{quote|}}} | ||
− | }}<noinclude> | + | }}<!-- |
+ | |||
+ | -->{{ #var: $section | }}{{ #var: $chapter | }}<noinclude> | ||
{{documentation}}</noinclude> | {{documentation}}</noinclude> |
Revision as of 15:01, 8 November 2015
Takahashi, Kazuki (2015). Yu-Gi-Oh! Character Guidebook: Millennium Book (in Japanese). Shueisha. ISBN 978-4-08-779722-0. Cite has empty unknown parameter: |trans_title=
(help)
{{Millennium Book citation}} is used to create citations for Yu-Gi-Oh! Character Guidebook: Millennium Book. {{Cite YCB2}} redirects here and can be used as a shortcut.
Usage
{{cite YCB2|localname=|section|chapter=|page=|quote=}}
All parameters are optional.
- localname: Set this equal to true, if you want the name of the book, in the language it is printed, to be displayed.
- section: The section of the book
- chapter: The chapter number
- page: The page number. If this is used the section and chapter will automatically be determined, if applicable.
- pages: The page numbers, if there are more than one
- quote: A quotation