Template:Quote: Difference between revisions

From Ring of Brodgar
Jump to navigation Jump to search
(fixup to add support for text with "=" character in it.)
m (+ Info: "|" character case)
Line 16: Line 16:
6) {{quote|Text|Name}}
6) {{quote|Text|Name}}


7) text with "=" character: {{quote|t=foo=bar|n=name}} (named parameter variant)
7) {{quote|t=foo=bar|n=Name}}
(Don't mix named and unnamed parameter style in the same call)
- 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}}|t=foo=bar|n=name}}
:7) {{ {{PAGENAME}} |t=foo=bar|n=Name}} <-- text with "=" character.
:8) {{ {{PAGENAME}} |Foo{{!}}Bar|Name}} <-- text with "|" character.
</noinclude>
</noinclude>

Revision as of 11:13, 9 February 2019

Usage and Debug preview:

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.