RuFoundation icon indicating copy to clipboard operation
RuFoundation copied to clipboard

Вставка страницы, содержащей несколько условий с [[if]] (и несколько модулей/блоков внутри каждого), через [[include]], приводит к генерированию лишних параграфов

Open jewalky opened this issue 1 year ago • 0 comments

Воспроизводится на странице https://scpfoundation.net/draft:nx-143

Там несколько вызовов customizable-acs, код:


[[include component:customizable-acs
|containment-class= терновник
|containment-image= https://scpfoundation.net/local--files/draft:nx-143/briar_icon.svg
|containment-color= 0, 135, 189
|inc-containment = true]]

[[include component:customizable-acs
|item-number= Nx-143
|clearance= 1
|container-class= терновник
|secondary-class=
|secondary-icon=
|disruption-class= SCPF
|risk-class= низкая
|item-text=
|level-text= уровень
|clearance-number-text= 1
|clearance-text= НЕОГРАНИЧЕННЫЙ
|containment-text= КЛАСС НЕКСУСА:
|secondary-text=
|disruption-text= АДМИНИСТРАЦИЯ:
|risk-text= НАСЕЛЁННОСТЬ:
|inc-custom-text= true]]

[[include component:customizable-acs
|disruption-class= SCPF
|disruption-image= https://scpfoundation.net/local--files/draft:nx-143/scpf-icon.svg
|disruption-color= 0, 135, 189
|inc-disruption= true]]

[[include component:customizable-acs
|risk-class= низкая
|risk-image= https://scpfoundation.net/local--files/draft:nx-143/lowpop-icon.svg
|risk-color= 0, 159, 107
|inc-risk= true]]

[[include component:customizable-acs
|category-count= 1
|class-color-1= 0, 159, 107
|class-category-1= Civilian Designation:
|class-text-1= Lake Huron Supply, Control and Purification
|inc-extra-categories= true]]

В текущей реализации над блоком с "Civilian Designation" появляется штук 5 параграфов, некоторые из них содержат внутри себя модуль цсс.

jewalky avatar Nov 25 '24 15:11 jewalky