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
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<includeonly>
This is the HEADLESS template for a Knowledge page. It has NO visible output.
{| class="wikitable" style="float:right; margin-left:1em; width:300px;"
Its only job is to set the semantic data for the API to consume. Version 5.0 (Final).
| colspan="2" style="text-align:center;" | {{#if:{{{Image|}}}|[[File:{{{Image}}}|290px]]|''No image''}}
</noinclude><includeonly>
|-
<!-- INVISIBLE DATA STORAGE SECTION -->
! Format
| {{{Knowledge Format|}}}
{{#if:{{{Display Title|}}}|{{!}}-
! Display Title
{{!}} {{{Display Title}}}
}}
{{#if:{{{Subtitle|}}}|{{!}}-
! Subtitle
{{!}} {{{Subtitle|}}}
}}
{{#if:{{{Original Title|}}}|{{!}}-
! Original Title
{{!}} "{{{Original Title}}}"
}}
{{#if:{{{Author|}}}|{{!}}-
! Author
{{!}} [[Has author::{{{Author|}}}]]
}}
{{#if:{{{Original Source|}}}|{{!}}-
! 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}}}
}}
|}
 
<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>
</includeonly>
</includeonly><noinclude>
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>

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).