Jump to content

Template:Duration: Difference between revisions

From Stardew Valley Wiki
imported>Margotbean
Remove all inline code, as it doesn't work properly (never did)
imported>Margotbean
didn't work right when previewing in the template, but worked right on the tree syrup pages. ??? Reverting inline removal
Line 1: Line 1:
<includeonly><span id="nametemplate">[[File:Time_Icon.png|24px|link=]]&nbsp;{{{1|}}}{{#if:{{{2|}}}|&nbsp;({{{2|}}})|}}</span></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
<includeonly><span id="nametemplate" {{#switch:{{{class|}}}
|inline = style="display:inline; margin-right:0;"
|#default = "}}>[[File:Time_Icon.png|24px|link=]] {{{1|}}}{{#if: {{{2|}}}|&nbsp;({{{2|}}})|}}</span></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>

Revision as of 00:42, 23 December 2018

Description

This template is used to insert File:Time Icon.png inline with text.

Use

This template can be used by entering the following onto a relevant page.

{{Duration|length of time}}

which results in... length of time


Inline Styling

Inline styling can be applied with class=inline.

Example:

The normal length of time is {{Duration|11m 25s|class=inline}}, but can be extended to {{Duration|25m|class=inline}} under the proper conditions.

results in...

The normal length of time is 11m 25s, but can be extended to 25m under the proper conditions.