Template:PD-Range/doc

From Wikisource
Jump to navigation Jump to search

Usage[edit]

This template calculates the number value of corresponding copyright protection term selected from the terms existent in various countries of the world, according the countries' copyright laws about passing works into PD. This template should not be used directly.

Parameters[edit]

  • param 1 (mandatory) — the year used as basis for calculating applicable protection term

Result[edit]

if CURRENTYEAR-param1>100 then return 100
else if CURRENTYEAR-param1>99 then return 99
else if CURRENTYEAR-param1>80 then return 80
else if CURRENTYEAR-param1>75 then return 75
else if CURRENTYEAR-param1>70 then return 70
else if CURRENTYEAR-param1>60 then return 60
else if CURRENTYEAR-param1>50 then return 50
else if CURRENTYEAR-param1>30 then return 30
else if CURRENTYEAR-param1>25 then return 25
else return 0