Template:Breaking/doc: Difference between revisions
From Vintage Story Wiki
(using {{doc}}) |
No edit summary |
||
Line 1: | Line 1: | ||
;Description | ;Description | ||
:[[Template:Using]] for <code><nowiki>{{Breaking}}</nowiki></code>. | :[[Template:Using]] for <code><nowiki>{{Breaking}}</nowiki></code>. Adds a small underlined word, optional unnamed parameter, defaults to "Breaking", that has a tool tip saying "Left mouse button". | ||
;Syntax | ;Syntax | ||
:<code><nowiki>{{Breaking|Display text}}</nowiki></code> | :<code><nowiki>{{Breaking|Display text}}</nowiki></code> | ||
:<code>Display text</code> is an optional parameter that changes the text to be displayed. It will still have an HTML abbreviation that reads "Left mouse button". | :<code>Display text</code> is an optional parameter that changes the text to be displayed. It will still have an HTML abbreviation that reads "Left mouse button". | ||
;Sample output | ;Sample output | ||
:<code><nowiki> | :<code><nowiki>Honeycombs can be obtained by either {{Breaking|harvesting}} wild beehives, or from {{Breaking}} skeps filled with domesticated bees</nowiki></code> | ||
: | |||
: ''becomes:'' | |||
:Honeycombs can be obtained by either {{Breaking|harvesting}} wild beehives, or from {{Breaking}} skeps filled with domesticated bees | |||
<includeonly>[[Category:ControlsTemplates]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> | <includeonly>[[Category:ControlsTemplates]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> |
Revision as of 15:12, 29 July 2023
- Description
- Template:Using for
{{Breaking}}
. Adds a small underlined word, optional unnamed parameter, defaults to "Breaking", that has a tool tip saying "Left mouse button". - Syntax
{{Breaking|Display text}}
Display text
is an optional parameter that changes the text to be displayed. It will still have an HTML abbreviation that reads "Left mouse button".- Sample output
Honeycombs can be obtained by either {{Breaking|harvesting}} wild beehives, or from {{Breaking}} skeps filled with domesticated bees
- becomes:
- Honeycombs can be obtained by either
harvesting wild beehives, or from breaking skeps filled with domesticated bees