# Шаблон YAML для создания веб-манги с Gemini и Nano Banana Pro

ТРЕБУЕТСЯ СТРОГОЕ СОБЛЮДЕНИЕ:
  - Точно следуйте этой спецификации YAML. НЕ отклоняйтесь от неё, не добавляйте неразрешённые элементы и не допускайте «творческих» интерпретаций.
  - Необходимо ПРЕДЕЛЬНО точно сохранять внешность персонажей по референсным изображениям, если они предоставлены.
  - Обязательно тщательно анализируйте изображения, чтобы сохранить это соответствие. Любой результат, в котором персонажи не совпадают с референсами, недопустим.

Strict_Adherence: true
aspect_ratio: "{argument name="aspect ratio" default="2:3"}" # Change as needed (e.g., "1:1", "16:9")
resolution: "{argument name="resolution" default="2K"}"    # Change as needed (e.g., "4K")
Character_Count: {{ Total number of characters appearing }}
Total_Panel_Count: {{ Total number of panels (usually 4-8 for a 4-tier structure) }}

Summary: >
  {argument name="summary" default="Overall summary of the story. Briefly describe the plot flow, setting, main events, and conclusion."}

Style_Guide:
  # Стиль деления на панели фиксирован: "без внешней рамки, изображение до краёв холста"
  comic_style: "Манга-стрип из 4 уровней и нескольких панелей без внешней рамки. Панели должны доходить до самых краёв холста и разделяться только внутренними белыми линиями."
  lighting: "{{ Specify lighting. Time of day (day/night), light source (sunlight/electric light/moonlight), atmosphere (bright/dark/dramatic shadows), etc. }}"
  background_elements: "{{ Main setting, specific description of the location, important props or environmental elements placed. }}"
  dialogue_bubbles: "Обычные белые пузыри для реплик, облака мыслей для внутренних мыслей, пунктирные пузыри для шёпота и прямоугольные блоки для повествования/монолога. {{ Add definitions for special speech bubbles if necessary (e.g., spiky bubbles for shouting) }}"
  visual_effects: "{{ Specify manga visual effects. Manga symbols (sweat, veins, sparkle), effect lines (concentration lines, speed lines, tremor lines), visualization of sound effects, etc. }}"

Characters:
  # Определение персонажей. Рекомендуется использовать буквенно-цифровые идентификаторы.
  {{ Character ID_1 }}:
    description: "{{ Appearance, hairstyle, color, clothing, distinctive items, personality and expression tendencies. If reference images exist, write the file name here (e.g., reference image_0.png). }}"
  {{ Character ID_2 }}:
    description: "{{ Second character details... Describe for the number of characters. }}"
  # При необходимости добавьте другие записи...

Storyboard:
  # Определение деления на панели по 4 уровням
  Tier_1:
    {{ Panel ID_T1_P1 (e.g., Panel_1_Large_Top) }}:
      scene: "{{ Specific situation description for this panel. Who, where, and what they are doing. Composition and camera work can also be specified. }}"
      dialogue:
        - speaker: "{{ Speaker's Character ID }}"
          type: "{{ Type of line: speech(normal), thought(thought), whisper(whisper), shout(shout), monologue(monologue/narration) }}"
          text: "{{ Specific content of the line. Use \n if a line break is needed. }}"
        # Если в одной панели несколько реплик, добавьте список
        # - speaker: "..."
        #   type: "..."
        #   text: "..."
    # Здесь можно добавлять панели уровня Tier_1
  Tier_2:
    {{ Panel ID_T2_P1 }}:
      scene: "{{ Scene details }}"
      dialogue:
        - speaker: "{{ Speaker ID }}"
          type: "{{ Type }}"
          text: "{{ Content }}"
    # Добавьте нужное количество панелей
  Tier_3:
    {{ Panel ID_T3_P1 }}:
      scene: "{{ Scene details }}"
      dialogue:
        - speaker: "{{ Speaker ID }}"
          type: "{{ Type }}"
          text: "{{ Content }}"
    # Добавьте нужное количество панелей
  Tier_4:
    {{ Panel ID_T4_P1 }}:
      scene: "{{ Scene details }}"
      dialogue:
        - speaker: "{{ Speaker ID }}"
          type: "{{ Type }}"
          text: "{{ Content }}"
    # Добавьте нужное количество панелей

---
Источник: YouMind (https://youmind.com/ru-RU/prompts/yaml-template-for-web-manga-creation-using-gemini-nano-banana-pro-7012). Автор: Dakiny. Русская версия: Kvantora.

MIT License

Copyright (c) 2026 YouMind-OpenLab

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
