Template:Lorem ipsum/p-end-cond: Difference between revisions
Jump to navigation
Jump to search
Richardpruen (talk | contribs) m (1 revision imported) |
Richardpruen (talk | contribs) m (1 revision imported) |
||
(One intermediate revision by one other user not shown) | |||
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><!-- |
Latest revision as of 15:32, 5 December 2021
Template documentation
Conditional paragraph end. Generates an p-tag if needed, depending on prefix and join:
- nothing, in the case of joins;
- nothing, where prefix metacharacters are present like (
*
,#
, or:
) which must sit in column 1, don't acquire begin-p tags, and therefore don't need an end p-tag; - an end p-tag after the lorem paragraph emitted last, in other cases.
Usage
{{Lorem ipsum/p-end-cond|prefix|join}}