টেমপ্লেট:একাধিক সমস্যা/message

উইকিপিডিয়া, মুক্ত বিশ্বকোষ থেকে
টেমপ্লেট নথি[দেখুন] [সম্পাদনা] [ইতিহাস] [শোধন]

Usage[সম্পাদনা]

This template is designed to be used in the {{Multiple issues}} template.

To add a new issue use something like

{{Multiple issues/message
| name       = {{{unreferenced|}}}
| message    = * It does not '''cite any [[Wikipedia:Citing sources|references or sources]]'''. Please help improve this article by citing [[Wikipedia:Verifiability|reliable sources]]
| cat        = All articles lacking sources
| cat-date   = Articles lacking sources 
}}

to {{Multiple issues}} which will show as

{{ {{{template}}}

 |1=article
 |date=
 |demospace=
}}

Note: you will not currently need to use cat-undate, and may not need to use cat.

Additional date field[সম্পাদনা]

Because the "expert" parameter uses a subject name rather than a date, a date field has been introduced. This will be used, where supplied, if the name field isn't a valid date.

Code[সম্পাদনা]

The code unravelled looks something like this:

{{#if:{{{name|}}}|{{{message}}} 
    {{#if:{{checkdate|{{{name}}}}}
        |<small> Tagged since {{checkdate|{{{name}}}}}.</small>
        {{#if:{{{cat-date|}}}
            |[[Category:{{{cat-date}}} {{checkdate|{{{name}}}}}]]}}
        |{{#if:{{{cat-undate|}}}|[[Category:{{{cat-undate}}}]]}}
    }}
    {{#if:{{{cat|}}}|[[Category:{{{cat}}]]}}
<br/>}}