Template:Knowledge: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
(One intermediate revision 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:{{{ | | colspan="2" style="text-align:center;" | {{#if:{{{Image|}}}|[[File:{{{Image}}}|290px]]|''No image''}} | ||
|- | |- | ||
! Format | ! Format | ||
| {{{ | | {{{Knowledge Format|}}} | ||
{{#if:{{{ | {{#if:{{{Display Title|}}}|{{!}}- | ||
! Display Title | |||
{{!}} {{{Display Title}}} | |||
}} | |||
{{#if:{{{Subtitle|}}}|{{!}}- | |||
! Subtitle | ! Subtitle | ||
{{!}} {{{ | {{!}} {{{Subtitle|}}} | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{Original Title|}}}|{{!}}- | ||
! Original Title | ! Original Title | ||
{{!}} "{{{ | {{!}} "{{{Original Title}}}" | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{Author|}}}|{{!}}- | ||
! Author | ! Author | ||
{{!}} [[Has author::{{{ | {{!}} [[Has author::{{{Author|}}}]] | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{Original Source|}}}|{{!}}- | ||
! Source Type | ! Source Type | ||
{{!}} {{{ | {{!}} {{{Original Source}}} | ||
}} | }} | ||
{{#if:{{{ | |- | ||
! Topics | |||
| {{{Topic Tags|}}} | |||
|- | |||
! Categories | |||
| {{{Main Categories|}}} | |||
{{#if:{{{URL|}}}|{{!}}- | |||
! URL | ! URL | ||
{{!}} [[Has url::{{{ | {{!}} [[Has url::{{{URL|}}}]] | ||
}} | }} | ||
|- | |- | ||
! | ! Status | ||
| {{{ | | [[Has status::{{{Status|Draft}}}]] | ||
| | |||
|- | |- | ||
! Featured? | ! Featured? | ||
| [[Is featured::{{{ | | [[Is featured::{{{Is Featured|}}}]] | ||
{{#if:{{{ | {{#if:{{{Description|}}}|{{!}}- | ||
! Description | ! Description | ||
{{!}} {{{ | {{!}} {{{Description}}} | ||
}} | }} | ||
|} | |} | ||
Line 43: | Line 50: | ||
<!-- Invisible Data Section --> | <!-- Invisible Data Section --> | ||
[[Category:Knowledge]] | [[Category:Knowledge]] | ||
[[Has status::{{{ | [[Has status::{{{Status|Draft}}}]] | ||
[[Has knowledge format::{{{ | [[Has knowledge format::{{{Knowledge Format|}}}]] | ||
[[Has display title::{{{Display Title|}}}]] | |||
[[Has image::{{{Image|}}}]] | |||
[[Has description::{{{ | [[Has description::{{{Description|}}}]] | ||
[[Has subtitle::{{{ | [[Has subtitle::{{{Subtitle|}}}]] | ||
[[Has original title::{{{ | [[Has original title::{{{Original Title|}}}]] | ||
[[Has 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 | 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).