Шаблон:Cite Book/doc
Дополнительные действия
The {{Cite Book}} template is used to format citations for specific books and chapters. It provides a consistent citation style across pages, linking to the specified book and optionally including a chapter name.
<li></li>` instead of the standard wiki markup for bullets.Usage
{{Cite Book|<book_id>|<chapter_number>|<chapter_name_flag (Optional)>}}
- Parameters
book_id(required): Specifies the book or story to cite. Accepts values like1for "Lord of Mysteries",2for "Circle of Inevitability", or other values likemodernday> for In Modern Day (Side Story).chapter_number(required): The chapter number to cite within the book.chapter_name_flag(optional): When set toname, it appends the chapter name from the appropriate book module (Module:ChaptersList/Book1 or Module:ChaptersList/Book2). Leave this parameter empty to exclude the chapter name.ref(optional): Iftrue, it adds the corresponding reference. This is formatted preemptively usingbook_idandchapter_number.
- Book IDs
The following book_id values are available:
1: Lord of Mysteries2: Circle of Inevitabilitymodernday: In Modern Day (Side Story)ordinaryperson: An Ordinary Person's Daily Life (Side Story)year1346: A Day in The Year 1346 (Side Story)rebellious: Rebellious Teenager (Side Story)corner: That Corner (Bonus Chapter)littlecase: A Little Case (Side Story)convince: How to Convince Melissa (Side Story)fullmoon: Whenever I See the Full Moon (Side Story)cordu: Daily Life in Cordu (Side Story)
Examples
Citation with Chapter Number
{{Cite Book|1|2}}
yields: Повелитель Тайн, глава 2
Citation with Chapter Name
{{Cite Book|1|2|name}}
yields: Повелитель Тайн, глава 2: Нынешнее положение
Citing a Side Story
{{Cite Book|modernday|2}}
yields: В наше время, глава 2
{{Cite Book|littlecase}}
yields: Маленькое дело
Error Handling
If an invalid book_id is provided, an error message will display:
{{Cite Book|invalid_id}}
yields: Ошибка: источник не найден
Template Data For Visual Edit
Ссылка на главу книги («Повелитель Тайн, глава 6»). С ref=1 — оформляется как сноска.
| Параметр | Описание | Тип | Статус | |
|---|---|---|---|---|
| Книга | 1 | 1 — «Повелитель Тайн», 2 — «Цикл Неизбежности» (остальные коды — в документации).
| Строковый (без форматирования) | обязательный |
| Номер главы | 2 | без описания | Число | предложенный |
| Название главы | 3 | Только значение name — добавить название главы.
| Строковый (без форматирования) | необязательный |
| Как сноска | ref | 1 (или y, +) — вывести как сноску. | Строковый (без форматирования) | необязательный |