Jump to content

Template:Tag: Difference between revisions

From WYOS Wiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<!-- The main description of the tag, visible on the page. -->
<!-- Visible content for the tag page -->
{{{Content|}}}
{{{Content|}}}


<!-- Hidden Semantic Data -->
<!-- Hidden Semantic Data -->
<div style="display:none;">
<div style="display:none;">
<!-- Sets the display title. Defaults to the page's actual name if not provided. -->
[[Has display title::{{{Display Title|{{#replace:{{PAGENAME}}|Tag:|}}}}}]]
[[Has display title::{{{Display Title|{{PAGENAME}}}}}]]


<!-- This property is for organizing tags, not for display on a card. -->
{{#if:{{{Main Category|}}}
[[Belongs to main category::{{{Main Category|}}}]]
| [[Belongs to main category::{{{Main Category}}}]]
}}


<!-- Assigns the page to the correct category for management. -->
[[Category:Topic Tags]]
[[Category:Topic Tags]]
</div>
</div>
</includeonly><noinclude>
</includeonly><noinclude>
This is the template for creating a core Topic Tag page.
Template for core Topic Tag pages.


== Parameters ==
<templatedata>
; Display Title : (Optional, Text) The clean title for the tag. Defaults to the page name.
{
; Main Category : (Page) The Main Category this tag belongs to (e.g., "Create & Build").
  "params": {
; Content : (Wikitext) The description of what this tag represents.
    "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