Difference between revisions of "Template:Cm/doc"
Jump to navigation
Jump to search
imported>DB1729 m (Reverted 1 edit by 2606:A000:1219:1065:AD2E:E715:4E24:E580 (talk) to last revision by Andrybak (TW)) |
imported>Bsherr m (replacing Template:Tld with Template:Tlsc, plus general and typo fixes as found) |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
− | <!-- | + | <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> |
{{subst only|auto=yes}} | {{subst only|auto=yes}} | ||
__NOTOC__ | __NOTOC__ | ||
+ | |||
==Usage== | ==Usage== | ||
{{Template messages}} | {{Template messages}} | ||
− | [[Wikipedia:Substitution|Substituting]] this template creates a [[Wikipedia:HEADINGS|second-level section heading]] containing only the current month and year on a [[Wikipedia:User talk pages|user talk page]] (the first-level heading being the title of the entire page). You can use that heading to create a section of an editor's user talk page to consolidate [[Wikipedia:Warnings|warnings]] dated the current month. This helps create clarity in the page's structure and table of contents, especially when the talk page has multiple warnings spanning several months and little other content. | + | [[Wikipedia:Substitution|Substituting]] this template creates a [[Wikipedia:HEADINGS|second-level section heading]] containing only the current month and year on a [[Wikipedia:User talk pages|user talk page]] (the first-level heading being the title of the entire page). You can use that heading to create a section of an editor's user talk page to consolidate [[Wikipedia:Warnings|warnings]] dated the current month. This helps create clarity in the page's structure and table of contents, especially when the talk page has multiple warnings spanning several months and little other content. |
==Example of heading created== | ==Example of heading created== | ||
Note that to be accurate, the rendered, example heading below is on the same level as the actual heading just above. | Note that to be accurate, the rendered, example heading below is on the same level as the actual heading just above. | ||
− | Using {{ | + | Using {{tlsc|cm}} produces a second-level heading with the current month and the current year: |
=={{CURRENTMONTHNAME}} {{CURRENTYEAR}}== | =={{CURRENTMONTHNAME}} {{CURRENTYEAR}}== | ||
Line 20: | Line 21: | ||
{{Wikipedia technical help|state=collapsed}} | {{Wikipedia technical help|state=collapsed}} | ||
<includeonly>{{Sandbox other|| | <includeonly>{{Sandbox other|| | ||
− | <!-- | + | <!-- Categories below this line; interwikis at Wikidata --> |
[[Category:Wikipedia substituted templates]] | [[Category:Wikipedia substituted templates]] | ||
[[Category:Talk namespace templates]] | [[Category:Talk namespace templates]] | ||
[[Category:User warning templates]] | [[Category:User warning templates]] | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 22:28, 9 August 2020
![]() | This is a documentation subpage for Template:Cm. It contains usage information, categories and other content that is not part of the original template page. |
![]() | This template should always be substituted (i.e., use {{subst:Cm}}). Any accidental transclusions will be automatically substituted by a bot. |
Usage
Template:Template messages Substituting this template creates a second-level section heading containing only the current month and year on a user talk page (the first-level heading being the title of the entire page). You can use that heading to create a section of an editor's user talk page to consolidate warnings dated the current month. This helps create clarity in the page's structure and table of contents, especially when the talk page has multiple warnings spanning several months and little other content.
Example of heading created
Note that to be accurate, the rendered, example heading below is on the same level as the actual heading just above.
Using Template:Tlsc produces a second-level heading with the current month and the current year: