FANDOM



Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [purge/refresh]

Description

Used to show the Build Time of Buildings with color coding and mouse-over tool-tips.

Usage

{{BTime|Dy=#|Dmo=#|Dd=#|Dh=#|Dm=#|Ds=#|Dis=|Derr=
|y=#|mo=#|d=#|h=#|m=#|s=#|err=
|ya=#|moa=#|da=#|ha=#|ma=#|sa=#|na=
|ns=|nsbt=|ac=#|ng=|DT=|doc=}}

Years

y=#
Years to build (Very RARELY used - Will be used mainly with VERY high level buildings)
ya=#
Years (Accumulated) to build, from the previous level (Will be used mainly with the higher levels buildings)
Dy=#
Years, Displayed in the game, to build (More than likely will never be used - Will be used mainly with VERY high level buildings)
The Dy=# parameter will not display if there is no Dis= parameter.
The Years will display in red in all times except for the DISPLAYED time.

Months

mo=#
Months to build (Will be used mainly with the high level buildings)
moa=#
Months (Accumulated) to build, from the previous level (Will be used mainly with the higher levels buildings)
Dmo=#
Months, Displayed in the game, to build (More than likely will never be used - Will be used mainly with VERY high level buildings)
The Dmo=# parameter will not display if there is no Dis= parameter.
The Months will display in orange in all times except for the DISPLAYED time.

Days

d=#
Days to build (Will be used mainly with the high level buildings)
da=#
Days (Accumulated) to build, from the previous level (Will be used mainly with the higher levels buildings)
Dd=#
Days, Displayed in the game, to build (Will be used mainly with the higher level buildings)
The Dd=# parameter will not display if there is no Dis= parameter.
The Days will display in green in all times except for the DISPLAYED time.

Hours

h=#
Hours to build (very commonly used)
ha=#
Hours (Accumulated) to build, from the previous level
Dh=#
Hours, Displayed in the game, to build (very commonly used)
The Dh=# parameter will not display if there is no Dis= parameter.
The hours will display in blue if there are 7 or more days, in all times except for the DISPLAYED time.

Minutes

m=#
Minutes to build (very commonly used)
ma=#
Minutes (Accumulated) to build, from the previous level
Dm=#
Minutes, Displayed in the game, to build (very commonly used)
The Dm=# parameter will not display if there is no Dis= parameter.
The minutes will display in blue if there are 7 or more days, in all times except for the DISPLAYED time.

Seconds

s=#
Seconds to build (very commonly used)
sa=#
Seconds (Accumulated) to build, from the previous level
Ds=#
Seconds, Displayed in the game, to build (very commonly used)
The Ds=# parameter will not display if there is no Dis= parameter.
The seconds will display in blue if there are 7 or more days, in all times except for the DISPLAYED time.

Misc other

Dis=
Tells the template to display the DISPLAYED build times.
Derr=
Displays ??h ??m ??s in the Displayed build time section.
The Derr= parameter display will not be seen if there is no Dis= parameter.
err=
Makes the template display ??h ??m ??s, for the Actual build time. This is for when you do not know the actual build times of higher levels, otherwise, the template will not display anything if you use the template with no parameters.
Note:
This setting will override all displays with the exception of the Displayed Time!
ns=
Not Sure - This is for when you are not 100% sure about the numbers used, the template will add a question mark ? to the end of all build times except for the DISPLAYED build time.
na=
No (Accumulated) build time. This is for when you do not want to display the (Accumulated) build time.
nsbt=
No Shorten Build Time - This will prevent Shorten Building Time/Complete Instantly from being displayed.
ac=#
Ambrosia cost - This will override the amount of Ambrosia shown.
This should only be used in the extreme rare occasions when the formula and the game display differ!
ng=
No Government - This will prevent the government affects from being displayed.
converter=
This is an internal parameter between the tempate {{BTime}}} and the sub-template {{BTime/Converter}} to figure out the extended or reduced times from the forms of Governments or the Reduced Build Time feature.
It is passed from {{BTime}} and is factored in with {{BTime/Converter}} and the new number is transferred to the reset of the sub-templates.
Its default value is 1 meaning no increase nor decrease.
DT=
This is an internal parameter between the template {{BTime}}} and the sub-template {{BTime/Total}} to display colored outputs in all times except for the DISPLAYED time.
Its default value is 0 meaning show the colored outputs.
doc=
Prevents the template from adding the page to any of the following categories, should that need to normally appear:
[[Category:Templates with missing parameters]]
[[Category:Missing Build time parameters from template BTime]]
[[Category:Missing Accumulated Build time parameters from template BTime]]

Notes

This template uses the sub-templates:

  1. {{BTime/Converter}} - To figure out any increases or decreases in total seconds, before going to the rest of the sub-templates.
  2. {{BTime/Years}} - To figure out if there are any Years (Y) to be displayed.
    Years will displayed in red if they exist.
    This template uses 365.2425 days in a year, in its calculations.
  3. {{BTime/Months}} - To determine if there are any Months (M) to be displayed.
    This template uses 30 days in a month, in its calculations.
    1 through 6 months will be displayed in green if they exist.
    7 through 11 months will be displayed in orange if they exist.
  4. {{BTime/Days}} - To determine if there are any Days (D) to be displayed.
    This templates uses 24 hours in a day, in its calculations.
    15 through 29 days will be displayed in blue.
  5. {{BTime/Hours}} - To determine if there are any Hours (h) to be displayed
    This templates uses 60 minutes in a hour, in its calculations.
  6. {{BTime/Minutes}} - To determine if there are any Minutes (m) to be displayed.
    This templates uses 60 seconds in a minute, in its calculations.
  7. {{BTime/Total}} to do the actual displaying.

References

Build Time small Build Time small
in seconds
Build Time small
in minutes
Build Time small
in hours
Build Time small
in days
Build Time small
in months
Build Time small
in years
1 second 1 * 0.016667 0.000278 too small
to display
too small
to display
too small
to display
1 minute
60 seconds
60 * 1 0.0167 0.000694 too small
to display
too small
to display
1 hour
60 minutes
3,600 60 * 1 0.041667 0.001389 0.000114
1 day
approx 24 hours
86,400 1,440 24 * 1 0.033333 0.002738
1 month
approx 30 days
2,592,000 43,200 720 30 * 1 0.082137
1 year
12 months
365.2425 days
31,556,952 525,949.2 8,765.82 365.2425 *
rounded off to
365 days
12.17475
rounded off to
12 months
1
*   This unit of measure is the one used to determine this specific Build Time small

Examples

Errors

Example Result
{{BTime|s=A}} ??h ??m ??s
(??h ??m ??s)
SBT or CI: <span title="Expression error: Unexpected < operator. Ambrosia per click!" style="white-space: nowrap;">Expression error: Unexpected < operator. Ambrosia</span>
??h ??m ??s
{{BTime|m=?}} ??h ??m ??s
(??h ??m ??s)
SBT or CI: <span title="Expression error: Unexpected < operator. Ambrosia per click!" style="white-space: nowrap;">Expression error: Unexpected < operator. Ambrosia</span>
??h ??m ??s
{{BTime|ha=A}} 0 s
(??h ??m ??s)
SBT or CI4 Ambrosia
0 s

Various time settings

Example Result
{{BTime|s=30}} 30 s
(30 s)
SBT or CI4 Ambrosia
15 s
{{BTime|s=30|sa=40}} 30 s
(1 m 10 s)
SBT or CI4 Ambrosia
15 s
{{{BTime|s=3600|sa=90}} 1 h
(1 h 1 m 30 s)
SBT or CI12 Ambrosia
30 m
{{BTime|s=2592000|sa=0}} 1 M 0 s
(1 M 0 s)
SBT or CI148 Ambrosia
15 D 0 s
{{BTime|s=31556952|sa=0}} 1 Y 0 s
(1 Y 0 s)

Misc

Example Result
{{BTime|d=2|h=5}} 2 D 5 h
(2 D 5 h )
{{BTime|d=2|h=5|ns=}} 2 D 5 h   ??
(2 D 5 h   ??)
SBT or CI148 Ambrosia
1 D 2 h 30 m   ??
{{BTime|d=2|h=5|na=}} 2 D 5 h
{{BTime|d=2|h=5|ng=}} 2 D 5 h
(2 D 5 h )
{{BTime|Dd=2|Dh=5|Dis=|d=2|h=5|m=1|nsbt=}} DISPLAYED:
2 D 5 h

2 D 5 h 1 m
(2 D 5 h 1 m )
{{BTime|Dd=2|Dh=5|Dis=|d=2|h=5|m=1|na=|ng=|nsbt=}} DISPLAYED:
2 D 5 h

2 D 5 h 1 m
{{BTime|Derr=|Dis=|d=2|h=5|na=}} DISPLAYED:
??h ??m ??s

2 D 5 h
{{BTime}}, with no parameters 0 s
(0 s)
SBT or CI4 Ambrosia
0 s
{{BTime|err=}} ??h ??m ??s
{{BTime|d=2|h=5|Dd=1|Dh=2|Dis= }} DISPLAYED:
1 D 2 h

2 D 5 h
(2 D 5 h )
{{BTime|d=2|h=5|Dd=1|Dh=2}} 2 D 5 h
(2 D 5 h )

Longer time lengths

Example Result
{{BTime|Dh=23|Dis=|h=23|m=1|s=1}} DISPLAYED:
23 h

23 h 1 m 1 s
(23 h 1 m 1 s)
{{BTime|Dd=1|Dis=|d=1|h=23|m=1|s=1}} DISPLAYED:
1 D 0 s

1 D 23 h 1 m 1 s
(1 D 23 h 1 m 1 s)
{{BTime|Dd=3|Dis=|d=3|h=23|m=1|s=1}} DISPLAYED:
3 D 0 s

3 D 23 h 1 m 1 s
(3 D 23 h 1 m 1 s)
{{BTime|Dd=5|Dis=|d=5|h=23|m=1|s=1}} DISPLAYED:
5 D 0 s

5 D 23 h 1 m 1 s
(5 D 23 h 1 m 1 s)
{{BTime|Dd=6|Dis=|d=6|h=23|m=59|s=59}} DISPLAYED:
6 D 0 s

6 D 23 h 59 m 59 s
(6 D 23 h 59 m 59 s)
{{BTime|Dd=7|Dis=|d=7|h=1|m=1|s=1}} DISPLAYED:
7 D 0 s

7 D 1 h 1 m 1 s
(7 D 1 h 1 m 1 s)
{{BTime|Dmo=1|Dis=|mo=1|h=1|m=1|s=1}} DISPLAYED:
1 M 0 s

1 M 1 h 1 m 1 s
(1 M 1 h 1 m 1 s)
{{BTime|Dy=1|Dmo=1|Dd=1|Dis=|y=1|mo=1|d=1|h=1|m=1|s=1}} DISPLAYED:
1 Y 1 M 1 D 0 s

1 Y 1 M 1 D 1 h 1 m 1 s
(1 Y 1 M 1 D 1 h 1 m 1 s)

The above text is transcluded from Template:BTime/doc.
You can change it or view its history. (How does this work?)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's Sandbox (create | Mirror ) and Testcases (create) pages.
Please add categories and interwikis to Template:BTime/doc. (View all subpages of this page.)
Community content is available under CC-BY-SA unless otherwise noted.