Jump to content

Manual:Newlines and spaces/Examples

From mediawiki.org

See phab:T14974.

Examples of the problem

[edit]

Semicolon

[edit]
The tuples include A1, A2; B1, B2{{#if:IncludeC|; C1, C2}}.
gives

The tuples include A1, A2; B1, B2

C1, C2.

Colon

[edit]
Look{{#if:Detail|: bird}}!
gives

Look

bird!

Hashmark

[edit]
He said this is dumb.<sup>{{#if: UseHashmark|#|*}}</sup>
gives

He said this is dumb.

Asterisk

[edit]
He said this is dumb.<sup>{{#if: UseAsterisk|*|#}}</sup>
gives

He said this is dumb.

…and tables

[edit]

But those are the least of the problem, because you don’t encounter {| elsewhere too often.

Workaround

[edit]
The tuples include A1, A2; B1, B2{{#if:IncludeC|<nowiki/>; C1, C2}}.
gives

The tuples include A1, A2; B1, B2; C1, C2.

The tuples include A1, A2; B1, B2{{#if:IncludeC|&#59; C1, C2}}.
gives

The tuples include A1, A2; B1, B2; C1, C2.

Look{{#if:Detail|&#58; bird}}!
gives

Look: bird!

He said this is dumb.<sup>{{#if: UseHashmark|&#35;|&#42;}}</sup>
gives

He said this is dumb.#

He said this is dumb.<sup>{{#if: UseAsterisk|&#42;|&#35;}}</sup>
gives

He said this is dumb.*