Template:Wish: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
m (fix example)
(fall back to wish name if usage is not specified)
Line 9: Line 9:
{{Wish|name=coolwish|usage=coolwish:<foo>:<bar>|synopsis=This wish is cool.|description=
{{Wish|name=coolwish|usage=coolwish:<foo>:<bar>|synopsis=This wish is cool.|description=
Using this wish causes things to be pretty all right in a number of ways.
Using this wish causes things to be pretty all right in a number of ways.
}}</noinclude><includeonly>{{#if:{{{name|}}}|{{{name}}}{{#if:{{{synopsis|}}}|{{Space}} – {{{synopsis}}}}}{{#if:{{{usage|}}}|:
}}</noinclude><includeonly>{{#if:{{{name|}}}|{{{name}}}{{#if:{{{synopsis|}}}|{{Space}} – {{{synopsis}}}}}


Usage: <code>{{{usage}}}</code>}}{{#if:{{{description|}}}|:
Usage: <code>{{{usage|{{{name}}}}}}</code>{{#if:{{{description|}}}|:


{{{description}}}}}|[[Category:Pages with wish errors]]}}</includeonly>
{{{description}}}}}|[[Category:Pages with wish errors]]}}</includeonly>

Revision as of 00:16, 5 August 2020

Example usage:

{{Wish|name=coolwish|usage=coolwish:<foo>:<bar>|synopsis=This wish is cool.|description=
Using this wish causes things to be pretty all right in a number of ways.
}}

This produces:

coolwish – This wish is cool.

Usage: coolwish:<foo>:<bar>

Using this wish causes things to be pretty all right in a number of ways.