টেমপ্লেট:পুরস্কার বিষয়শ্রেণী

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

This is a wrapper that goes around an award category name in layout tables in articles such as 87th Academy Awards. Your use of this template will help make awards lists which use layout tables be accessible to blind visitors to Wikipedia.

ব্যবহার[সম্পাদনা]

Typical usage would be:

  • {{Award category|#eedd82|[[Academy Award for Best Picture|Best Picture]]}}

which produces:

Place the template as the first line within the table cell containing the list of nominations that the award applies to. Do not place this template on a separate table row, as it will no longer be accessible to blind Wikipedians.

Example[সম্পাদনা]

In an article, this could be implemented as follows:

Step-by-step to convert existing awards tables to this template[সম্পাদনা]

Here are the steps to convert an existing non-accessible awards table to an accessible version. You can recognize such tables by the awards names being in separate table rows from the nominees lists:

Example of non-accessible table which does not use the {{Award category}} template
Best Picture Best Director

... (nominees/award for 1st category)

... (nominees/award for 2nd category)

Here is how to replace that table with table with an accessible table using the {{Award category}} template:

  1. Edit the Awards section of the page
    Sample code at this point, before any editing:
    |-
    |+ There may or may not be a line that captions the table
    ! style="background:#EEDD82; width:50%" | [[Academy Award for Best Picture|Best Picture]]
    ! style="background:#EEDD82; width:50%" | [[Academy Award for Best Director|Best Director]]
    |-
    | valign="top" |
    ... (nominees/award for 1st category)
    | valign="top" |
    ... (nominees/award for 2nd category)

  2. If there is a line near the start of the table that begins with |+, remove that line.
  3. Move the width control that splits the table into two columns:
    1. Cut ; width:50% from both styles
    2. Paste after valign="top"
    3. Remove the semicolons from after valign="top"
    4. Change the colon after width to an equal sign
    5. Add double-quotes around 50%
  4. Review edits
    How sample code looks now:
    |-
    ! style="background:#EEDD82" | [[Academy Award for Best Picture|Best Picture]]
    ! style="background:#EEDD82" | [[Academy Award for Best Director|Best Director]]
    |-
    | valign="top" width="50%" |
    ... (nominees/award for 1st category)
    | valign="top" width="50%" |
    ... (nominees/award for 2nd category)

  5. Replace the style lead-in with the template
    1. Replace ! style="background:#EEDD82" | including the trailing space
      with {{Award category|#EEDD82| and no trailing space, so that the | is right up against the title or title link
      everywhere it occurs in the table code. If you use a text editor to do a global change, be sure to catch any variations on this.
    2. On every line you added the {{Award category}} template to, be sure to add the trailing }} after the title or title link.
  6. Review edits:
    How sample code looks now:
    |-
    {{Award category|#EEDD82|[[Academy Award for Best Picture|Best Picture]]}}
    {{Award category|#EEDD82|[[Academy Award for Best Director|Best Director]]}}
    |-
    | valign="top" width="50%" |
    ... (nominees/award for 1st category)
    | valign="top" width="50%" |
    ... (nominees/award for 2nd category)

  7. Distribute each awards category template code to its respective list
    1. Move each line containing award category template code, for example,
      {{Award category|#EEDD82|[[Academy Award for Best Picture|Best Picture]]}}
      into the cell with the nominations list it applies to, immediately after the valign line
    2. Delete the newly empty table rows that used to contain the category names, so that there aren't two lines with |- one after the other.
  8. Review edits:
    How sample code looks now:
    |-
    | valign="top" width="50%" |
    {{Award category|#EEDD82|[[Academy Award for Best Picture|Best Picture]]}}
    ... (nominees/award for 1st category)
    | valign="top" width="50%" |
    {{Award category|#EEDD82|[[Academy Award for Best Director|Best Director]]}}
    ... (nominees/award for 2nd category)

  9. Preview your work and correct any code errors
  10. When the table looks consistent and all awards are in the same cell as their nominees, you're done and you can publish.

আরও দেখুন[সম্পাদনা]