Difference between revisions of "Template:Duration/doc"

From Stardew Valley Wiki
Jump to navigation Jump to search
(Created page with "==Description== This template is used to insert File:Time_Icon.png in-line with text. ==Usage== This template can be used by entering the following onto a relevant page. <pr...")
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
==Description==
 
==Description==
This template is used to insert File:Time_Icon.png in-line with text.
+
This template is used to insert [[:File:Time Icon.png]] inline with text.
  
==Usage==
+
==Use==
 
This template can be used by entering the following onto a relevant page.
 
This template can be used by entering the following onto a relevant page.
  
<pre>{{Duration}}</pre>
+
<pre>{{Duration|length of time}}</pre>
  
 
which results in...
 
which results in...
{{Duration}}
+
{{Duration|length of time}}
  
<includeonly>[[Category:Transclusion templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
+
 
 +
===Inline Styling===
 +
Inline styling can be applied with <code>class=inline</code>.
 +
 
 +
Example:
 +
<pre>The normal length of time is {{Duration|11m 25s|class=inline}}, but can be extended to {{Duration|25m|class=inline}} under the proper conditions.</pre>
 +
results in...
 +
 
 +
The normal length of time is {{Duration|11m 25s|class=inline}}, but can be extended to {{Duration|25m|class=inline}} under the proper conditions.
 +
<includeonly>{{Addlanglinks}}[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 21:04, 8 January 2023

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... Time Icon.png 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 Time Icon.png 11m 25s, but can be extended to Time Icon.png 25m under the proper conditions.