Difference between revisions of "Quotation"
Stratonian (talk | contribs) (better parameterisation) |
Stratonian (talk | contribs) m (better 3rd parameter handling) |
||
Line 7: | Line 7: | ||
| game = In-game description | | game = In-game description | ||
| website = [{{{3|https://corepunk.com}}} Official website] | | website = [{{{3|https://corepunk.com}}} Official website] | ||
− | | #default = {{# | + | | #default = {{#ifeq:{{{3|}}}|{{{3}}}<!-- if 3rd parameter exists |
− | -->[{{{3}}} {{{2}}}]<!-- use 3rd parameter as link and 2nd parameter as label | + | -->|[{{{3}}} {{{2}}}]<!-- use 3rd parameter as link and 2nd parameter as label |
-->|{{{2}}}<!-- else use 2nd parameter as link | -->|{{{2}}}<!-- else use 2nd parameter as link | ||
-->}} | -->}} | ||
}}}}</div> | }}}}</div> | ||
</blockquote></includeonly><noinclude>{{Quotation/Documentation}}</noinclude> | </blockquote></includeonly><noinclude>{{Quotation/Documentation}}</noinclude> |
Revision as of 13:37, 11 August 2023
Description
Displays text passages as quotations from an official source.
Usage
{{quotation|<This is a quotation>|<game>}}
{{quotation|<This is a quotation>|<website>}}
{{quotation|<This is a quotation>|<website>|<https://corepunk.com>}}
{{quotation|<This is a quotation>|<custom label>|<https://corepunk.wiki>}}
{{quotation|<This is a quotation>|<https://corepunk.wiki>}}
Parameters
- 3: Quotation source.
- Optional.
- Notes: A link to the quotation source. Use if parameter 2 isn't already a link.
- popup: Whether to include the quotation in the popup that appears when the mouse hovers over a wikilink.
- Optional.
- Notes: Setting this parameter to any value adds the quote text to the popup.
Errors
No quote text provided. Add a text parameter.