मोड्यूल:Person date/doc
स्वरूप
यह मोड्यूल:Person date हेतु प्रलेख पृष्ठ है
|
|
This module is rated as ready for general use. It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other Wikipedia resources as an option for new users to learn. To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing. |
|
|
इस साँचे का इस्तेमाल कई बड़ी संख्या के पृष्ठों में किया जा रहा है। बड़े पैमाने पर व्यवधान और अनावश्यक सर्वर लोड से बचने के लिए, किसी भी बदलाव के पहले इस साँचे के /प्रयोगपृष्ठ उपपृष्ठ या अपने उपयोगकर्ता स्थान पर उसे जांच कर देख ले। जांचे गये बदलावों को इस साँचे में एक बार में जोड़ा जा सकता है।अन्य उपयोगकर्ताओं के खातिर, बदलाव करने से पहले उससे सम्बंधित बात-चीत वार्ता पृष्ठ पर करें। |
This module is intended to aid in calculating/formatting birth dates and death dates in {{Infobox person}}
and other People and person infobox templates.
This module generates errors when it encounters invalid input. Error descriptions and how to fix them are listed at श्रेणी:Pages using age template with invalid date.
Usage
[स्रोत सम्पादित करौ]{{#invoke:person date|birth}}{{#invoke:person date|death}}
In infoboxes
[स्रोत सम्पादित करौ]{{Infobox
...
| label# = Born
| data# = {{#invoke:person date|birth}}
| label# = Died
| data# = {{#invoke:person date|death}}
...
}}
Or
{{Infobox
...
| label# = Born
| data# = {{br separated entries
|1={{#if:{{{birth_name|}}}|<div style="display:inline" class="nickname">{{{birth_name|}}}</div>}}
|2={{#invoke:person date|birth}}
|3={{#if:{{{birth_place|}}}|<div class="birthplace">{{{birth_place|}}}</div>}}
}}
| label# = Died
| data# = {{br separated entries
|1={{#invoke:person date|death}}
|2={{#if:{{{death_place|}}}|<div class="deathplace">{{{death_place|}}}</div>}}
}}
...
}}
Areas for improvement
[स्रोत सम्पादित करौ]- Currently the module does not handle anything that is not a simple date. So anything with a reference tag is not evaluated by the code.
- If
|birth_date=साँचा:Tlc(for example) then|death_date=will not be parsed. It will just be returned as the original string. Thus no age is calculated.
Tracking categories
[स्रोत सम्पादित करौ]- Category:Pages where birth or death is being automatically determined (०)
- Category:Pages using age template with invalid date (०)
- [[:Category:साँचा:Str right|Category:साँचा:Str right]] (०)