Jump to content

Template:Tag: Difference between revisions

From WYOS Wiki
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{{{content|}}}
<!-- Visible content for the tag page -->
{{{Content|}}}
 
<!-- Hidden Semantic Data -->
<div style="display:none;">
<div style="display:none;">
<!--
[[Has display title::{{{Display Title|{{#replace:{{PAGENAME}}|Tag:|}}}}}]]
  This sets the display title.
 
  If the 'display_title' parameter is provided in the template call, it uses that.
{{#if:{{{Main Category|}}}
  If not, it defaults to the base name of the page itself (e.g., for "Tag:Habits", it uses "Habits").
| [[Belongs to main category::{{{Main Category}}}]]
-->
}}
[[Has display title::{{#if:{{{display_title|}}}|{{{display_title}}}|{{BASEPAGENAME}}}}]]
 
{{#if:{{{main_category|}}}|[[Belongs to main category::{{{main_category}}}]]}}
[[Category:Topic Tags]]
</div>
</div>
[[Category:Topic Tags]]
</includeonly><noinclude>
</includeonly><noinclude>
This template is for all pages in the "Tag:" namespace.
Template for core Topic Tag pages.
== Usage ==
 
=== Standard Usage ===
<templatedata>
For a page like "Tag:Habits", where the display title is the same as the page name.
{
{{Tag
  "params": {
|content=A description of the Habits topic goes here.
    "Display Title": {
|main_category=Achieve Goals
      "label": "Display Title",
}}
      "description": "Clean title for the tag (defaults to page name).",
=== Custom Display Title ===
      "type": "line"
For a page like "Tag:AI", where you want a different display title.
    },
{{Tag
    "Main Category": {
|display_title=Artificial Intelligence
      "label": "Main Category",
|content=A description of the AI topic goes here.
      "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