<= [[opensource:codebricklayer:start|CodeBricklayer]] ====== Blueprint ====== {{template>:meta:template:pageinfo#tpl |desc=Blueprint pattern of CodeBricklayer.}} ===== How to describe a blueprint ===== * ''%%...%%'' \\ The content between ''%%...%%'' is the structure of the house. * ''${}'' \\ The content wrapped by ''${hole}'' describes a wall hole. The holes will be filled by fitting bricks. (The ''${hole}'' will be replaced by the contents of the brick.) You can refer to [[#example-a|Example A]] to understand the usage. * ''$<>'' \\ The content wrapped by ''$'' describes a wall. ''$'' must wrap at least one ''${hole}''. If all ''${hole}'' among them are not filled with any bricks, the ''$'' will be destroyed. You can refer to [[#example-b|Example B]] to understand the usage. * ''%%---%%'' \\ The content between ''%%---%%'' describes the fitting relationship between holes and bricks. * The first row specifies a separator for splitting the holes and bricks. * The second row lists the holes wrapped by ''${}''. * The subsequent rows are the fitting relationship of bricks to holes. If you want to build more houses, then you should make more bricks arrays. ===== Example A ===== **Blueprint** ... ${a} == ${b} ... --- , a,b 1,2 3,4 --- **Generated content** 1 == 2 3 == 4 ===== Example B ===== **Blueprint** ... ${a} $<== ${b}> ... --- , a,b 1,2 3 --- **Generated content** 1 == 2 3