Skip to main content

wikipedia-entry-blockquote-title-not.tmpl

This template generates the HTML structure for displaying Wikipedia article excerpts in popups and transclusions where only the article content is shown within a, without a title.

Pathtemplate/include/wikipedia-entry-blockquote-title-not.tmpl
LanguageHTML5/Pandoc
Lines8

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-title-not.tmpl.

Overview

This template generates the HTML structure for displaying Wikipedia article excerpts in popups and transclusions where only the article content is shown within a <blockquote>, without a title line. This is the most minimal Wikipedia template variant, focusing purely on the quoted excerpt.

The "title-not" designation indicates that no title line is rendered. This variant is registered as the annotationFileIncludeTemplate in content.js's wikipediaEntry content type: it is used when a Wikipedia entry is included as an annotation file, a context where the surrounding annotation apparatus already displays the title, so repeating it would be redundant. The blockquote wrapper provides citation semantics for the content.

Like other Wikipedia templates, this variant supports optional thumbnail images through conditional logic. The thumbnails are placed inside the blockquote with the content. The template 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 and rendered via extracts.js/transclude.js.

Template Variables

  • contentTypeClass - CSS class for content type styling (e.g., content-transform-wikipedia)
  • thumbnailFigure - Optional <figure> element containing the Wikipedia article's thumbnail image
  • entryContent - The main excerpt/summary content from the Wikipedia article

Note: Unlike other Wikipedia templates, this variant does not use a titleLine variable.

Output Structure

The template produces this minimal conditional structure:

<div class="content-transform [type-class]">
<blockquote class="data-field entry-content">
<!-- If thumbnail exists: -->
<figure>[thumbnail]</figure>
<!-- Always: -->
[entry content]
</blockquote>
</div>

The structure is streamlined: an outer container div, then a blockquote containing the optional thumbnail and the article excerpt. The absence of a title element makes this suitable for contexts where space is limited or where external context provides sufficient attribution.


See Also