Jump to content

Template:Knowledge: Difference between revisions

From WYOS Wiki
No edit summary
No edit summary
 
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 status::{{{status|Draft}}}]]
[[Has status::{{{Status|Draft}}}]]
[[Has knowledge format::{{{format}}}]]
[[Has knowledge format::{{{Knowledge Format|}}}]]
{{#arraymap:{{{topics|}}}|,|x|[[Has topic tag::x]]}}
[[Has display title::{{{Display Title|}}}]]
{{#arraymap:{{{categories|}}}|,|x|[[Belongs to main category::x]]}}
[[Has image::{{{Image|}}}]]
[[Has description::{{{description|}}}]]
[[Has description::{{{Description|}}}]]
[[Has subtitle::{{{subtitle|}}}]]
[[Has subtitle::{{{Subtitle|}}}]]
[[Has original title::{{{original_title|}}}]]
[[Has original title::{{{Original Title|}}}]]
[[Has original source::{{{original_source|}}}]]
[[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).