wikipedia-entry-blockquote-not.tmpl
Path: template/include/wikipedia-entry-blockquote-not.tmpl | Language: HTML5/Pandoc | Lines: ~6
Template fragment for rendering Wikipedia entry content without a blockquote wrapper.
Overview
This template generates the HTML structure for displaying Wikipedia article excerpts in popups and transclusions without using a <blockquote> element. Instead, all content is wrapped in semantic <div> elements, making it suitable for contexts where the Wikipedia content is presented as informational material rather than as a direct quotation.
The template creates a clean, structured layout with an optional thumbnail figure, a title line, and the article excerpt. The absence of blockquote semantics means the content is styled as general information rather than cited material. This variant is likely used in contexts like informational popups or educational annotations where citation semantics aren't required.
The layout uses conditional logic to optionally include thumbnail images, which appear before the title when present. The template integrates with the same annotation pipeline as other Wikipedia templates, receiving populated data from Annotation.hs and LinkMetadata.hs.
Template Variables
contentTypeClass- CSS class for content type styling (e.g.,content-transform-wikipedia)thumbnailFigure- Optional<figure>element containing the Wikipedia article's thumbnail imagetitleLine- The Wikipedia article titleentryContent- The main excerpt/summary content from the Wikipedia article
Output Structure
The template produces this conditional structure:
<div class="content-transform [type-class]">
<!-- If thumbnail exists: -->
<figure>[thumbnail]</figure>
<!-- Always: -->
<p class="data-field title">[title]</p>
<div class="data-field entry-content">[entry content]</div>
</div>
The optional thumbnail appears first (when present), followed by the title in a <p> tag, and finally the article excerpt in a <div>. The data-field classes enable JavaScript and CSS targeting for dynamic behavior and styling.
See Also
- wikipedia-entry-blockquote-inside.tmpl - Variant with blockquote around content
- wikipedia-entry-blockquote-title-not.tmpl - Variant with blockquote but no title
- annotation-blockquote-not.tmpl - Similar pattern for general annotations
- Annotation.hs - Scrapes Wikipedia article content and metadata
- LinkMetadata.hs - Annotation database manager
- extracts.js - Popup/transclude content display coordinator
- popups.js - Popup rendering system
- content.js - Content type routing and template selection