Appendix K: AI for TASL
Prompt: Create an Accessible TASL Image Caption for Pressbooks
I am creating an accessible Pressbooks textbook and need an accessible HTML caption for an image from Wikimedia Commons.
I will provide you with the URL of the Wikimedia Commons image page. Using the information on that page, create a TASL-compliant image caption following these requirements:
TASL = Title, Author, Source, License
Requirements
-
Title
- Identify the title of the image/work from the Wikimedia Commons page.
- If the title is a work title, format it using <em>.
-
Author
- Identify the creator/author listed on the Wikimedia Commons page.
- Use the creator’s credited name as provided by Wikimedia Commons.
-
Source
- Identify the source as Wikimedia Commons.
- Create an HTML link to the specific Wikimedia Commons page for the image.
- Do not display the URL as the link text.
- Use descriptive link text: Wikimedia Commons.
-
License
- Identify the license specified on the Wikimedia Commons page.
- Create an HTML link to the actual Creative Commons license page (or other applicable license/public-domain statement).
- Use the license name as the link text, such as CC BY 4.0, CC BY-SA 4.0, or Public Domain.
- Do not display the license URL as plain text.
-
Accessibility
- Use simple, semantic HTML appropriate for Pressbooks.
- Do not use unnecessary ARIA attributes.
- Do not use generic link text such as “click here.”
- Keep the TASL caption separate from the image’s alt text. Do not put the image description into the TASL caption.
- Do not create or modify the image’s alt text unless I specifically ask you to.
-
Output
- Return the completed HTML only, unless additional information is needed because the Wikimedia page does not provide sufficient attribution or licensing information.
- Use this general structure:
<p class=”image-caption”>
<em>Title</em> by Author.
Source: <a href=”WIKIMEDIA_URL”>Wikimedia Commons</a>.
License: <a href=”LICENSE_URL”>LICENSE NAME</a>.
</p>
Important
Do not guess missing information. If the title, author, source, or license cannot be determined from the Wikimedia Commons page, tell me what information is missing rather than inventing it.
Here is the Wikimedia Commons URL:
[paste wikimedia commons url here]