Template:Tag: Difference between revisions
Appearance
Created page with "<includeonly> {{{content|}}} <div style="display:none;"> <!-- This sets the display title. If the 'display_title' parameter is provided in the template call, it uses that. 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}}}}]] </div> Category:Topic Tags </includeonly><noinclude> This template is for all pages in the "Tag:..." |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{{content|}}} | {{{content|}}} | ||
<div style="display:none;"> | <div style="display:none;"> | ||
<!-- | <!-- | ||
Line 9: | Line 8: | ||
--> | --> | ||
[[Has display title::{{#if:{{{display_title|}}}|{{{display_title}}}|{{BASEPAGENAME}}}}]] | [[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 template is for all pages in the "Tag:" namespace. | ||
== Usage == | == Usage == | ||
=== Standard Usage === | === Standard Usage === | ||
For a page like "Tag:Habits", where the display title is the same as the page name. | 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. | |content=A description of the Habits topic goes here. | ||
|main_category=Achieve Goals | |||
}} | }} | ||
=== Custom Display Title === | === Custom Display Title === | ||
For a page like "Tag:AI", where you want a different display title. | For a page like "Tag:AI", where you want a different display title. | ||
{{Tag | {{Tag | ||
|display_title=Artificial Intelligence | |display_title=Artificial Intelligence |
Revision as of 22:41, 28 July 2025
This template is for all pages in the "Tag:" namespace.
Usage
Standard Usage
For a page like "Tag:Habits", where the display title is the same as the page name.
A description of the Habits topic goes here.
Custom Display Title
For a page like "Tag:AI", where you want a different display title.
A description of the AI topic goes here.