Template:Knowledge: Difference between revisions
Appearance
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: | ||
< | <includeonly> | ||
{| class="wikitable" style="float:right; margin-left:1em; width:300px;" | |||
| colspan="2" style="text-align:center;" | {{#if:{{{Image|}}}|[[File:{{{Image}}}|290px]]|''No image''}} | |||
< | |- | ||
<!-- | ! 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 | [[Has status::{{{Status|Draft}}}]] | ||
[[Has knowledge format::{{{Knowledge Format|}}}]] | |||
[[Has display title::{{{Display Title|}}}]] | |||
[[Has | [[Has image::{{{Image|}}}]] | ||
[[ | [[Has description::{{{Description|}}}]] | ||
[[Has | [[Has subtitle::{{{Subtitle|}}}]] | ||
[[Has subtitle::{{{ | [[Has original title::{{{Original Title|}}}]] | ||
[[Has | [[Has original source::{{{Original Source|}}}]] | ||
[[Has | {{#arraymap:{{{Topic Tags|}}}|,|x|[[Has topic tag::x]]}} | ||
{{#arraymap:{{{Main Categories|}}}|,|x|[[Belongs to main category::x]]}} | |||
[[Has | </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).