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>
{{{content|}}}
{{{content|}}}
<div style="display:none;">
<div style="display:none;">
<!--  
<!-- Manually set properties -->
  This sets the display title.
[[Has display title::{{{display_title|}}}]]
  If the 'display_title' parameter is provided in the template call, it uses that.
[[Belongs to main category::{{{main_category|}}}]]
  If not, it defaults to the base name of the page itself (e.g., for "Tag:Habits", it uses "Habits").
-->
[[Has display title::{{#if:{{{display_title|}}}|{{{display_title}}}|{{BASEPAGENAME}}}}]]
{{#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 ==
=== Standard Usage ===
For a page like "Tag:Habits", where the display title is the same as the page name.
{{Tag
{{Tag
|content=A description of the Habits topic goes here.
|display_title=The Exact Title You Want
|main_category=Achieve Goals
|main_category=The Main Category
}}
|content=Description of the topic.
=== Custom Display Title ===
For a page like "Tag:AI", where you want a different display title.
{{Tag
|display_title=Artificial Intelligence
|content=A description of the AI topic goes here.
}}
}}
</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