Jump to content

Template:Knowledge: Difference between revisions

From WYOS Wiki
Created page with "<noinclude> This is the HEADLESS template for a Knowledge page. It has NO visible output. Its only job is to set the semantic data for the API to consume. Version 5.0 (Final). </noinclude><includeonly> <!-- INVISIBLE DATA STORAGE SECTION --> Category:Knowledge [[Has knowledge format::{{{format}}}]] {{#arraymap:{{{topics|}}}|,|x|Has topic tag::x}} {{#arraymap:{{{categories|}}}|,|x|Belongs to main category::x}} [[Has description::{{{description|}}}]] Is featu..."
 
No edit summary
Line 1: Line 1:
<noinclude>
<includeonly>
This is the HEADLESS template for a Knowledge page. It has NO visible output.
<!-- KNOWLEDGE INFO BOX -->
Its only job is to set the semantic data for the API to consume. Version 5.0 (Final).
<div style="border: 1px solid #ddd; background-color: #f9f9f9; padding: 15px; margin-bottom: 20px; border-radius: 5px;">
</noinclude><includeonly>
  <div style="font-size: 0.9em; color: #666; margin-bottom: 8px;">
<!-- INVISIBLE DATA STORAGE SECTION -->
    <strong>Format:</strong> {{{format}}} | <strong>Category:</strong> {{{categories}}}
  </div>
 
  {{#if:{{{subtitle|}}}|<div style="font-style: italic; margin-bottom: 8px;">{{{subtitle}}}</div>}}
 
  {{#if:{{{description|}}}|<div style="margin-bottom: 8px;">{{{description}}}</div>}}
 
  {{#if:{{{original_title|}}}|
  <div style="border-top: 1px solid #ddd; padding-top: 8px; font-size: 0.9em;">
    <strong>Original Work:</strong> "{{{original_title}}}"
    {{#if:{{{author|}}}|by {{{author}}}}}
    {{#if:{{{original_source|}}}| ({{{original_source}}})}}
    {{#if:{{{url|}}}|<a href="{{{url}}}" target="_blank">[View Original]</a>}}
  </div>
  }}
 
  <div style="border-top: 1px solid #ddd; padding-top: 8px; font-size: 0.85em; color: #666;">
    <strong>Topics:</strong> {{{topics}}}
  </div>
</div>
 
<!-- INVISIBLE SEMANTIC DATA -->
<div style="display:none;">
[[Category:Knowledge]]
[[Category:Knowledge]]
[[Has knowledge format::{{{format}}}]]
[[Has knowledge format::{{{format}}}]]
Line 16: Line 38:
[[Has original title::{{{original_title|}}}]]
[[Has original title::{{{original_title|}}}]]
[[Has original source::{{{original_source|}}}]]
[[Has original source::{{{original_source|}}}]]
</includeonly>
</div>
</includeonly><noinclude>
This is the template for Knowledge pages. Shows basic info and sets semantic properties.
</noinclude>

Revision as of 16:00, 27 July 2025

This is the template for Knowledge pages. Shows basic info and sets semantic properties.