Template:Lorem ipsum/p-cond: Difference between revisions
Jump to navigation
Jump to search
(Fix Linter errors.) |
imported>Jonesey95 (Undid revision 1136397894 by BrandonXLF (talk). This breaks tag symmetry at e.g. MediaWiki talk:Common.css/Archive 16. Please discuss if it is breaking things somewhere else.) |
||
(3 intermediate revisions by 2 users 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 04:50, 30 January 2023
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}}