විකිපීඩියා:Age calculation templates
මෙය රචනාවකි. මෙහි විකිපීඩියාවේ සංස්කාරකවරයකුගේ හෝ කිහිපදෙනෙකුගේ උපදෙස් සහ අදහස් දැක්වෙයි. මෙම පිටුව විශ්වකෝෂ ලිපියක් හෝ විකිපීඩියාවේ ප්රතිපත්ති හෝ මාර්ගෝපදේශ වලින් එකක් නොවේ. මෙය ප්රජාව විසින් හොඳින් අධ්යයනය කොට පිළිගැනීමට ලක් වූවක් ද නොවේ. සමහර රචනා පුළුල් ප්රතිමානයන් (widespread norms) නිරූපණය කරන අතර; අනෙක්වා සුළුතර මත පමණක් නිරූපණය කරයි. මෙම අදහස් බුද්ධිමත් ලෙසින් සලකා බලන්න. |
Wikipedia uses several templates that self-update every day to keep date and age information current. These are very useful for a dynamic online encyclopedia and save users from having to regularly update that kind of information. However, when using this kind of template, a few things should be kept in mind.
Mentioning "as of" date
සංස්කරණයIn mirrored versions of the site as well as print versions, such statistics will immediately become inaccurate. As such, they should always be accompanied by a note to indicate the date at which it was last correct. The note itself can be made self-updating along with the age calculation template by adding "as of {{FULLDATE}}".
When to use templates vs. fixed text
සංස්කරණයSome of these templates, such as {{Birth date and age}} add useful metadata to biography pages, and should be used in the person's infobox or when the information is first needed in the prose. This is true whether the information updates or is fixed.
In lists, however, they should only be used where the self-updating feature is needed. Some of these templates can be complex, and will greatly add to the loading time of a page if used many times. For example, in an article like List of Canadian Prime Ministers by time in office, the template is only used for the incumbent prime minister and fixed numbers are used for all past prime ministers.
Examples
සංස්කරණයCommon age calculation templates include the following. Check similar templates to make sure you are using the right one for your article.
Age
සංස්කරණය- {{Age}}
- {{Age nts}} – for use in sortable tables
- {{Age in days}}
- {{Age in days nts}} – for use in sortable tables
- {{Age in years and days}}
- {{Age in months}}
- {{Age in weeks}}
- {{Age in weeks and days}}
- {{Age in months, weeks and days}}
- {{Age for infant}} – displays months and days up to one year, years and months up to three years, and years beyond
Dates
සංස්කරණය- {{Birth date}}
- {{Birth date and age}}
- {{Birth date and age2}}—calculates age at a specified date
- {{Birth based on age as of date}} – used when a reference mentions the age of a person as of the date of the reference's publication
- {{Birth year and age}}
- {{Death date}}
- {{Death date and age}}
- {{Death year and age}}
- {{BirthDeathAge}} – combines the functionality of the above six birth and death templates