Template:Lorem ipsum/p-cond: Difference between revisions
Jump to navigation
Jump to search
imported>Supersteef2000 m (1 revision imported from wikipedia:en:Template:Lorem_ipsum/p-cond) |
m (1 revision imported from wikipedia:en:Template:Lorem_ipsum/p-cond) |
||
(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 01:44, 10 June 2022
File:Test Template Info-Icon - Version (2).svg Template documentation
Conditional paragraph begin. Generates a begin 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; - a begin p-tag before the first lorem paragraph, in other cases.
Usage
{{Lorem ipsum/p-cond|prefix|join}}