Jump to content

Template:Tag: Difference between revisions

From WYOS Wiki
No edit summary
No edit summary
 
Line 3: Line 3:


<div style="display:none;">
<div style="display:none;">
<!-- Invisible Data Section -->
<!-- Manually set properties -->
 
[[Has display title::{{{display_title|}}}]]
<!--
[[Belongs to main category::{{{main_category|}}}]]
  This sets the display title.
  If the 'display_title' parameter is provided, it uses that.
  If not, it defaults to the page name WITHOUT the namespace (e.g., "Habits" for "Tag:Habits").
-->
[[Has display title::{{#if:{{{display_title|}}}|{{{display_title}}}|{{PAGENAME}}}}]]
 
<!-- This preserves the Main Category association for the topic. -->
{{#if:{{{main_category|}}}|[[Belongs to main category::{{{main_category}}}]]}}
 
</div>
</div>


[[Category:Topic Tags]]
[[Category:Topic Tags]]
</includeonly><noinclude>
</includeonly><noinclude>
This template is for all pages in the "Tag:" namespace.
This is the simple template for Topic Tags.


== Usage ==
== Usage ==
{{Tag
{{Tag
|display_title=Custom Title (Optional)
|display_title=The Exact Title You Want
|main_category=Achieve Goals
|main_category=The Main Category
|content=A description of the topic goes here.
|content=Description of the topic.
}}
}}
</noinclude>
</noinclude>

Latest revision as of 02:21, 29 July 2025

This is the simple template for Topic Tags.

Usage[edit source]

Description of the topic.

The Exact Title You Want The Main Category