Template:Quote: Difference between revisions
Jump to navigation
Jump to search
m (color change to be less similar to default <code> color.) |
(fixup to add support for text with "=" character in it.) |
||
Line 1: | Line 1: | ||
<includeonly | <includeonly | ||
>{{#if: {{{2|}}}|<span style="background-color:Bisque;"><i>{{{2}}}</i></span> | >{{#if: {{{n|{{{2|}}}}}}|<span style="background-color:Bisque;"><i>{{{n|{{{2}}}}}}</i></span> | ||
}}{{#if: {{{1|}}}|>"<span style="background-color:Bisque;">{{{1}}}</span>" | }}{{#if: {{{t|{{{1|}}}}}}|>"<span style="background-color:Bisque;">{{{t|{{{1}}}}}}</span>" | ||
|>"<span style="background-color:Bisque; color:red;">No Text Given</span>" | |>"<span style="background-color:Bisque; color:red;">No Text Given</span>" | ||
}}</includeonly | }}</includeonly | ||
Line 15: | Line 15: | ||
5) {{quote| | }} | 5) {{quote| | }} | ||
6) {{quote|Text|Name}} | 6) {{quote|Text|Name}} | ||
7) text with "=" character: {{quote|t=foo=bar|n=name}} (named parameter variant) | |||
(Don't mix named and unnamed parameter style in the same call) | |||
</pre> | </pre> | ||
:1) {{ {{PAGENAME}}}} | :1) {{ {{PAGENAME}}}} | ||
Line 22: | Line 25: | ||
:5) {{ {{PAGENAME}}| | }} | :5) {{ {{PAGENAME}}| | }} | ||
:6) {{ {{PAGENAME}}|Text|Name}} | :6) {{ {{PAGENAME}}|Text|Name}} | ||
:7) text with "=" character: {{{{PAGENAME}}|t=foo=bar|n=name}} | |||
</noinclude> | </noinclude> |
Revision as of 12:53, 15 December 2018
Usage and Debug preview:
1) {{quote}} 2) {{quote| }} 3) {{quote|Text}} 4) {{quote|Text| }} 5) {{quote| | }} 6) {{quote|Text|Name}} 7) text with "=" character: {{quote|t=foo=bar|n=name}} (named parameter variant) (Don't mix named and unnamed parameter style in the same call)
- 1) >"No Text Given"
- 2) >"No Text Given"
- 3) >"Text"
- 4) >"Text"
- 5) >"No Text Given"
- 6) Name>"Text"
- 7) text with "=" character: name>"foo=bar"