Template:Quote: Difference between revisions
Jump to navigation
Jump to search
(fixup to add support for text with "=" character in it.) |
m (+note (multi-line quoting not supported)) |
||
(One intermediate revision by the same user not shown) | |||
Line 8: | Line 8: | ||
><noinclude> | ><noinclude> | ||
Usage and Debug preview: | Usage and Debug preview: | ||
''Note: Quote template is not supporting multiline text quotes''. | |||
<pre> | <pre> | ||
1) {{quote}} | 1) {{quote}} | ||
Line 16: | Line 19: | ||
6) {{quote|Text|Name}} | 6) {{quote|Text|Name}} | ||
7) | 7) {{quote|t=foo=bar|n=Name}} | ||
- Text with "=" character (named-parameter variant) | |||
- Don't mix named- and unnamed-parameter style in the same call. | |||
8) {{quote|Foo{{!}}Bar|Name}} | |||
- Text with "|" character. | |||
- Any "|" character in the Name/Text needs to be changed to "{{!}}". | |||
</pre> | </pre> | ||
:1) {{ {{PAGENAME}}}} | :1) {{ {{PAGENAME}} }} | ||
:2) {{ {{PAGENAME}}| }} | :2) {{ {{PAGENAME}} | }} | ||
:3) {{ {{PAGENAME}}|Text}} | :3) {{ {{PAGENAME}} |Text}} | ||
:4) {{ {{PAGENAME}}|Text| }} | :4) {{ {{PAGENAME}} |Text| }} | ||
:5) {{ {{PAGENAME}}| | }} | :5) {{ {{PAGENAME}} | | }} | ||
:6) {{ {{PAGENAME}}|Text|Name}} | :6) {{ {{PAGENAME}} |Text|Name}} | ||
:7) text with "=" character: {{{{PAGENAME}}| | :7) {{ {{PAGENAME}} |t=foo=bar|n=Name}} <-- text with "=" character. | ||
:8) {{ {{PAGENAME}} |Foo{{!}}Bar|Name}} <-- text with "|" character. | |||
</noinclude> | </noinclude> |
Latest revision as of 07:08, 19 February 2019
Usage and Debug preview:
Note: Quote template is not supporting multiline text quotes.
1) {{quote}} 2) {{quote| }} 3) {{quote|Text}} 4) {{quote|Text| }} 5) {{quote| | }} 6) {{quote|Text|Name}} 7) {{quote|t=foo=bar|n=Name}} - Text with "=" character (named-parameter variant) - Don't mix named- and unnamed-parameter style in the same call. 8) {{quote|Foo{{!}}Bar|Name}} - Text with "|" character. - Any "|" character in the Name/Text needs to be changed to "{{!}}".
- 1) >"No Text Given"
- 2) >"No Text Given"
- 3) >"Text"
- 4) >"Text"
- 5) >"No Text Given"
- 6) Name>"Text"
- 7) Name>"foo=bar" <-- text with "=" character.
- 8) Name>"Foo|Bar" <-- text with "|" character.