Jump to content

Template:Knowledge: Difference between revisions

From WYOS Wiki
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<!-- KNOWLEDGE INFO BOX -->
{| class="wikitable" style="float:right; margin-left:1em; width:300px;"
<div style="border: 1px solid #ddd; background-color: #f9f9f9; padding: 15px; margin-bottom: 20px; border-radius: 5px;">
| colspan="2" style="text-align:center;" | {{#if:{{{Image|}}}|[[File:{{{Image}}}|290px]]|''No image''}}
  <div style="font-size: 0.9em; color: #666; margin-bottom: 8px;">
|-
    <strong>Format:</strong> {{{format}}} | <strong>Category:</strong> {{{categories}}}
! Format
  </div>
| {{{Knowledge Format|}}}
 
{{#if:{{{Display Title|}}}|{{!}}-
  {{#if:{{{subtitle|}}}|<div style="font-style: italic; margin-bottom: 8px;">{{{subtitle}}}</div>}}
! Display Title
 
{{!}} {{{Display Title}}}
  {{#if:{{{description|}}}|<div style="margin-bottom: 8px;">{{{description}}}</div>}}
}}
 
{{#if:{{{Subtitle|}}}|{{!}}-
  {{#if:{{{original_title|}}}|
! Subtitle
  <div style="border-top: 1px solid #ddd; padding-top: 8px; font-size: 0.9em;">
{{!}} {{{Subtitle|}}}
    <strong>Original Work:</strong> "{{{original_title}}}"  
}}
    {{#if:{{{author|}}}|by {{{author}}}}}
{{#if:{{{Original Title|}}}|{{!}}-
    {{#if:{{{original_source|}}}| ({{{original_source}}})}}
! Original Title
    {{#if:{{{url|}}}|<a href="{{{url}}}" target="_blank">[View Original]</a>}}
{{!}} "{{{Original Title}}}"
  </div>
}}
  }}
{{#if:{{{Author|}}}|{{!}}-
 
! Author
  <div style="border-top: 1px solid #ddd; padding-top: 8px; font-size: 0.85em; color: #666;">
{{!}} [[Has author::{{{Author|}}}]]
    <strong>Topics:</strong> {{{topics}}}
}}
  </div>
{{#if:{{{Original Source|}}}|{{!}}-
</div>
! Source Type
{{!}} {{{Original Source}}}
}}
|-
! Topics
| {{{Topic Tags|}}}
|-
! Categories
| {{{Main Categories|}}}
{{#if:{{{URL|}}}|{{!}}-
! URL
{{!}} [[Has url::{{{URL|}}}]]
}}
|-
! Status
| [[Has status::{{{Status|Draft}}}]]
|-
! Featured?
| [[Is featured::{{{Is Featured|}}}]]
{{#if:{{{Description|}}}|{{!}}-
! Description
{{!}} {{{Description}}}
}}
|}


<!-- INVISIBLE SEMANTIC DATA -->
<div style="display:none;">
<div style="display:none;">
<!-- Invisible Data Section -->
[[Category:Knowledge]]
[[Category:Knowledge]]
[[Has knowledge format::{{{format}}}]]
[[Has status::{{{Status|Draft}}}]]
{{#arraymap:{{{topics|}}}|,|x|[[Has topic tag::x]]}}
[[Has knowledge format::{{{Knowledge Format|}}}]]
{{#arraymap:{{{categories|}}}|,|x|[[Belongs to main category::x]]}}
[[Has display title::{{{Display Title|}}}]]
[[Has description::{{{description|}}}]]
[[Has image::{{{Image|}}}]]
[[Is featured::{{{featured|}}}]]
[[Has description::{{{Description|}}}]]
[[Has image::{{#if:{{{image|}}}|[[File:{{{image}}}]]|}}]]
[[Has subtitle::{{{Subtitle|}}}]]
[[Has subtitle::{{{subtitle|}}}]]
[[Has original title::{{{Original Title|}}}]]
[[Has author::{{{author|}}}]]
[[Has original source::{{{Original Source|}}}]]
[[Has url::{{{url|}}}]]
{{#arraymap:{{{Topic Tags|}}}|,|x|[[Has topic tag::x]]}}
[[Has original title::{{{original_title|}}}]]
{{#arraymap:{{{Main Categories|}}}|,|x|[[Belongs to main category::x]]}}
[[Has original source::{{{original_source|}}}]]
</div>
</div>
</includeonly><noinclude>
</includeonly><noinclude>
This is the template for Knowledge pages. Shows basic info and sets semantic properties.
This is the MASTER template for all Knowledge items.  
It handles the infobox display and all shared semantic properties.
It should NOT be called directly. Use a format-specific wrapper template instead (e.g., Template:Summary).
</noinclude>
</noinclude>

Latest revision as of 20:22, 29 July 2025

This is the MASTER template for all Knowledge items. It handles the infobox display and all shared semantic properties. It should NOT be called directly. Use a format-specific wrapper template instead (e.g., Template:Summary).