Template:Lorem ipsum/pb-cond: Difference between revisions
Jump to navigation
Jump to search
Richardpruen (talk | contribs) m (1 revision imported) |
(Reduce expansion depth) |
||
Line 1: | Line 1: | ||
{{#ifeq: {{{2|{{{join|no}}}}}} | yes | {{#ifeq: {{{2|{{{join|no}}}}}} | yes | ||
| | | | ||
| {{#switch: {{ | | {{#switch: {{#invoke:string|sub|x{{{1|}}}|2|2}} | ||
| : | # | * = | | : | # | * = | ||
| #default = </p> | | #default = </p> |
Revision as of 15:07, 14 November 2021
Template documentation
Conditional paragraph break. Generates correct content between lorem paragraphs, depending on prefix and join:
- a single space in the case of joins
- an inverted p-tag pair between paragraphs where needed
- nothing at all for prefix metacharacters like (
*
,#
, or:
) which must sit in column 1.
Usage
{{Lorem ipsum/pb-cond|prefix|join}}