Jump to content

Template:Tag: 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>
<!--  
<!-- Visible content for the tag page -->
  The main content/description for the topic page.
  This parameter will be enabled for VEForAll in the form.
-->
{{{Content|}}}
{{{Content|}}}


<!--  
<!-- Hidden Semantic Data -->
  ==================================================================
  == HIDDEN SEMANTIC DATA - Single source of truth.
  ==================================================================
-->
<div style="display:none;">
<div style="display:none;">
[[Has display title::{{{Display Title|{{#replace:{{PAGENAME}}|Tag:|}}}}}]]
{{#if:{{{Main Category|}}}
| [[Belongs to main category::{{{Main Category}}}]]
}}
[[Category:Topic Tags]]
[[Category:Topic Tags]]
<!-- Set properties only if a value is provided -->
{{#if:{{{Display Title|}}}|[[Has display title::{{{Display Title}}}]]}}
{{#if:{{{Belongs to main category|}}}|[[Belongs to main category::{{{Belongs to main category}}}]]}}
</div>
</div>
</includeonly><noinclude>
</includeonly><noinclude>
'''Template:Tag'''
Template for core Topic Tag pages.
 
This is the template for all '''Topic Tag''' pages (e.g., "Tag:Habits").
 
Its primary job is to assign the topic to a '''Main Category''' (pillar) using the `Belongs to main category` property. It also provides a space for a description of the topic.
 
=== Parameters ===
* '''Display Title''': An optional, user-friendly title for the topic page. If blank, the page's own name is used.
* '''Belongs to main category''': The Main Category page that this topic is a part of.
* '''Content''': A rich-text field for the main description of the topic.


<templatedata>
{
  "params": {
    "Display Title": {
      "label": "Display Title",
      "description": "Clean title for the tag (defaults to page name).",
      "type": "line"
    },
    "Main Category": {
      "label": "Main Category",
      "description": "Main Category this tag belongs to (e.g., \"Create & Build\").",
      "type": "wiki-page-name",
      "required": true
    },
    "Content": {
      "label": "Content",
      "description": "Brief description of what the tag represents.",
      "type": "content",
      "suggested": true
    }
  },
  "description": "Defines a Topic Tag that powers taxonomy and queries.",
  "format": "block"
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 18:33, 21 September 2025

Template for core Topic Tag pages.

Defines a Topic Tag that powers taxonomy and queries.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Display TitleDisplay Title

Clean title for the tag (defaults to page name).

Lineoptional
Main CategoryMain Category

Main Category this tag belongs to (e.g., "Create & Build").

Page namerequired
ContentContent

Brief description of what the tag represents.

Contentsuggested