Jump to content

Template:Knowledge: Difference between revisions

From WYOS Wiki
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="wikitable" style="float:right; margin-left:1em; width:300px;"
{| class="wikitable" style="float:right; margin-left:1em; width:300px;"
| colspan="2" style="text-align:center;" | {{#if:{{{image|}}}|[[File:{{{image}}}|290px]]|''No image''}}
| colspan="2" style="text-align:center;" | {{#if:{{{Image|}}}|[[File:{{{Image}}}|290px]]|''No image''}}
|-
|-
! Format
! Format
| {{{format}}}
| {{{Knowledge Format|}}}
{{#if:{{{subtitle|}}}|{{!}}-
{{#if:{{{Display Title|}}}|{{!}}-
! Display Title
{{!}} {{{Display Title}}}
}}
{{#if:{{{Subtitle|}}}|{{!}}-
! Subtitle
! Subtitle
{{!}} {{{subtitle|}}}
{{!}} {{{Subtitle|}}}
}}
}}
{{#if:{{{original_title|}}}|{{!}}-
{{#if:{{{Original Title|}}}|{{!}}-
! Original Title
! Original Title
{{!}} "{{{original_title}}}"
{{!}} "{{{Original Title}}}"
}}
}}
{{#if:{{{author|}}}|{{!}}-
{{#if:{{{Author|}}}|{{!}}-
! Author
! Author
{{!}} [[Has author::{{{author|}}}]]
{{!}} [[Has author::{{{Author|}}}]]
}}
}}
{{#if:{{{original_source|}}}|{{!}}-
{{#if:{{{Original Source|}}}|{{!}}-
! Source Type
! Source Type
{{!}} {{{original_source}}}
{{!}} {{{Original Source}}}
}}
}}
{{#if:{{{url|}}}|{{!}}-
|-
! Topics
| {{{Topic Tags|}}}
|-
! Categories
| {{{Main Categories|}}}
{{#if:{{{URL|}}}|{{!}}-
! URL
! URL
{{!}} [[Has url::{{{url|}}}]]
{{!}} [[Has url::{{{URL|}}}]]
}}
}}
|-
|-
! Topics
! Status
| {{{topics}}}
| [[Has status::{{{Status|Draft}}}]]
|-
! Category
| {{{categories}}}
|-
|-
! Featured?
! Featured?
| [[Is featured::{{{featured|}}}]]
| [[Is featured::{{{Is Featured|}}}]]
{{#if:{{{description|}}}|{{!}}-
{{#if:{{{Description|}}}|{{!}}-
! Description
! Description
{{!}} {{{description}}}
{{!}} {{{Description}}}
}}
}}
|}
|}
Line 43: Line 50:
<!-- Invisible Data Section -->
<!-- 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|}}}]]
[[Has subtitle::{{{subtitle|}}}]]
[[Has description::{{{Description|}}}]]
[[Has original title::{{{original_title|}}}]]
[[Has subtitle::{{{Subtitle|}}}]]
[[Has original source::{{{original_source|}}}]]
[[Has original title::{{{Original Title|}}}]]
[[Has original source::{{{Original Source|}}}]]
{{#arraymap:{{{Topic Tags|}}}|,|x|[[Has topic tag::x]]}}
{{#arraymap:{{{Main Categories|}}}|,|x|[[Belongs to main category::x]]}}
</div>
</div>
</includeonly><noinclude>
</includeonly><noinclude>
This is the template for Knowledge pages with infobox display.
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).