The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall

Difference between revisions of "Template:Quote"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
(New page: <blockquote class="quote-text" style="">{{{1|{{{text}}}}}}{{#if:{{{2|{{{src|}}}}}}|<div class="quote-source" style="">{{{2|{{{src}}}}}}</div>}}</blockquote><noinclude> {{documentation}} </...)
 
 
Line 1: Line 1:
<blockquote class="quote-text" style="">{{{1|{{{text}}}}}}{{#if:{{{2|{{{src|}}}}}}|<div class="quote-source" style="">{{{2|{{{src}}}}}}</div>}}</blockquote><noinclude>
+
<blockquote class="quote-text" {{#if:{{{3|{{{url|}}}}}}
 +
|cite="{{#ifeq:{{#sub:{{{3|{{{url|http://example.org}}}}}}|0|4}}|http
 +
|{{{3|{{{url}}}}}}|{{fullurl:{{{3|{{{url}}}}}}}}}}"}}>{{{1|{{{text}}}}}}{{#if:{{{2|{{{src|}}}}}}|<div class="quote-source">{{#if:{{{3|{{{url|}}}}}}
 +
|{{#ifeq:{{#sub:{{{3|{{{url}}}}}}|0|4}}|http
 +
|[{{{3|{{{url}}}}}} {{{2|{{{src}}}}}}]
 +
|[[{{{3|{{{url}}}}}}|{{{2|{{{src}}}}}}]]}}|{{{2|{{{src}}}}}}}}</div>}}</blockquote><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 11:36, 11 March 2008

{{{text}}}

[edit] Documentation

This template encloses quoted text in a box with an optional source

Usage[edit]

{{quote
| Keep an eye on the Unreal log while you're testing your scripts. [...]
| [[udn2:UnrealScriptReference|UDN UnrealScript Reference]]
}}

Keep an eye on the Unreal log while you're testing your scripts. The UnrealScript runtime often generates useful warnings in the log that notify you of nonfatal problems that are occuring.

With separated source text and page name:

{{quote
| Keep an eye on the Unreal log while you're testing your scripts. [...]
|UDN UnrealScript Reference|udn2:UnrealScriptReference}}

Keep an eye on the Unreal log while you're testing your scripts. The UnrealScript runtime often generates useful warnings in the log that notify you of nonfatal problems that are occuring.

Also works with URLs:

{{quote
| Keep an eye on the Unreal log while you're testing your scripts. [...]
| UDN UnrealScript Reference
| http://udn.epicgames.com/Two/UnrealScriptReference.html#UnrealScript%20programming%20strategy
}}

Keep an eye on the Unreal log while you're testing your scripts. The UnrealScript runtime often generates useful warnings in the log that notify you of nonfatal problems that are occuring.

...or with named parameters:

{{quote
| text = Keep an eye on the Unreal log while you're testing your scripts. [...]
| src  = UDN UnrealScript Reference
| url  = udn2:UnrealScriptReference
}}
{{quote
| text = Keep an eye on the Unreal log while you're testing your scripts. [...]
| src  = UDN UnrealScript Reference
| url  = http://udn.epicgames.com/Two/UnrealScriptReference.html#UnrealScript%20programming%20strategy
}}

Keep an eye on the Unreal log while you're testing your scripts. The UnrealScript runtime often generates useful warnings in the log that notify you of nonfatal problems that are occuring.

Keep an eye on the Unreal log while you're testing your scripts. The UnrealScript runtime often generates useful warnings in the log that notify you of nonfatal problems that are occuring.

This form is recommended. It is more robust than the version with three unnamed parameters, because it can handle whitespace around the parameter values as it occurs if formatting the template like shown above. The following example displays the problem:

{{quote
| Keep an eye on the Unreal log while you're testing your scripts. [...]
| UDN UnrealScript Reference
| udn2:UnrealScriptReference
}}

Keep an eye on the Unreal log while you're testing your scripts. The UnrealScript runtime often generates useful warnings in the log that notify you of nonfatal problems that are occuring.

[[ udn2:UnrealScriptReference

| UDN UnrealScript Reference

]]


See also[edit]