wikipedia-entry-blockquote-not.tmpl
This template generates the HTML structure for displaying Wikipedia article excerpts in popups and transclusions without using a element.
Read this when Use this page when tracing the HTML/Pandoc templates and include fragments that shape rendered gwern.net pages around wikipedia-entry-blockquote-not.tmpl.
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 registered as the popFrameTemplate in content.js's wikipediaEntry content type: it is used when a Wikipedia entry is rendered inside a popup/popin, where the pop-frame itself provides framing and a blockquote wrapper would be redundant.
The layout uses conditional logic to optionally include thumbnail images, which appear before the title when present. Like the other Wikipedia templates, it is filled client-side: content.js fetches the article extract in the browser from the Wikipedia REST API, and the template — bundled into transclude-templates-GENERATED.js by build/build_unified_assets.php — is populated by the JavaScript transclude template system.
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