Template:Dul

From Wikibooks, open books for an open world
Jump to navigation Jump to search
  • {{{1}}}


Use[edit source]

Makes an unnumbered bullet item in a dark coloured box. Intended to alternate with Lul, all within Container. For full page widths or when the amount of text is sufficient to form more than one line for every bullet point, use Lightul and Darkul without a container in a stack.

Example[edit source]

[[image:gerbera_pink.jpg|200px|thumb|right|Gerbera]]
{{Container|1=
{{dul|Short text}}
{{lul|{{text}}}}
{{dul|{{text}}}}
}}

Generates:

Gerbera
  • Short text
  • The time has come for all good men to come to the aid of the party. The quick brown fox jumps over the lazy dog 0123456789 times. Of all the fishes in the sea the mermaid is the one for me. Peter Piper picked a pot of pickled pepper. The Leith police inhibiteth us.
  • The time has come for all good men to come to the aid of the party. The quick brown fox jumps over the lazy dog 0123456789 times. Of all the fishes in the sea the mermaid is the one for me. Peter Piper picked a pot of pickled pepper. The Leith police inhibiteth us.


The smoke and mirrors ...
does not really exist. These templates merely reduce somewhat painstaking repetitive html code wrappings to a user friendly macro. These perform the coding needed to generate portable standard html for bulleted paragraphs:
 <td style="padding:2px 5px 2px 5px;">
 <ul><li>{{{content|{{{1}}} }}}
 </li></ul></td>

Note the use of  <td>...</td>, firstly says they expect a table element wrapper. Secondly suggests they can be alternated within  <tr>...</tr> wrappers to form a line with multiple columns, creating first a table with specific width parameters so they follow the leader, and stay in their own lane on each subsequent line.

See companion templates...
  • Use {{Lul}} and {{Dul}} to make the bullet strips.
  • Use {{Lightul}} and {{Darkul}} without a container, in a stack for full page widths or when the amount of text is sufficient to form more than one line for every bullet point.
  • Use {{container}} to include and bound combinations of the above listed beside an image.