1====== WebComponent - Unit ====== 2 3 4===== About ===== 5''unit'' is just a semantic [[webcomponent|component]] to indicate a unit of sequence of [[doku>wiki:syntax#code_blocks|code block]]. 6 7It doesn't render. 8 9===== Articles Related ===== 10{{backlinks>.}} 11 12===== Syntax ===== 13 14 * The unit node may got the ''display="none"'' property to not display the whole block 15<code > 16<unit display="none"> 17<file txt nico.txt> 18Nico 19</file> 20%%A block code%% 21<console> 22Nico 23</console> 24</unit> 25</code> 26 27 28 29===== Example ===== 30==== Default ==== 31 32<webcode name="Render" frameborder=0 width=100% scrolling=yes externalResources="," renderingMode=story > 33<code dw> 34<unit> 35<file txt nico.txt> 36Nico 37</file> 38%%A code block may also come here but as we can't nest node in dokuwiki we can put it in a rendering block%% 39<console> 40Nico 41</console> 42</unit> 43</code> 44</webcode> 45 46 47 48 49==== Display: none ==== 50The unit node may got the ''display="none"'' property to not display the whole block 51 52The below code should not render. 53 54<webcode name="No render" frameborder=0 width=100% scrolling=yes externalResources="," renderingMode=story > 55<code dw> 56<unit display="none"> 57<file> 58</file> 59<console> 60</console> 61</unit> 62</code> 63</webcode> 64