Difference between revisions of "Template:How-to"

From blackwiki
Jump to navigation Jump to search
imported>Davidgothberg
(Oops, revert myself to last version by ViperSnake151. I didn't mean to edit anything, I was just looking through the revisions and must have clicked the rollback accidentally.)
imported>Davidgothberg
(Making it so it only categorises when in main (article) space, and not when shown/demonstrated on other pages.)
Line 1: Line 1:
{{ ambox
+
{{ambox
 
| type = content
 
| type = content
| text = This {{{1|article}}} '''contains [[:Category:Articles containing how-to sections|instructions, advice, or how-to content]].''' The purpose of Wikipedia is to '''present facts''', not to '''teach subject matter'''. <br><small>Please help [{{fullurl:{{FULLPAGENAME}}|action=edit}} improve this article] either by rewriting the how-to content or by [[m:Help:Transwiki|moving]] it to [[v:|Wikiversity]] or [[b:|Wikibooks]].</small>{{#if:{{{date|}}}|<small>''({{{date}}})''</small>}}
+
| text = This {{{1|article}}} '''contains [[:Category:Articles containing how-to sections|instructions, advice, or how-to content]].''' The purpose of Wikipedia is to '''present facts''', not to '''teach subject matter'''. <br> <small>Please help [{{fullurl:{{FULLPAGENAME}}|action=edit}} improve this article] either by rewriting the how-to content or by [[m:Help:Transwiki|moving]] it to [[v:|Wikiversity]] or [[b:|Wikibooks]].</small> {{#if:{{{date|}}}|<small>''({{{date}}})''</small>}}
}}<includeonly>{{{category|[[Category:Articles containing how-to sections]]}}}{{#if:{{{date|}}}|{{{category|[[Category:Cleanup from {{{date}}}]]}}}}}</includeonly><noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude>
+
}}{{main other
 +
| [[Category:Articles containing how-to sections]]{{
 +
  #if:{{{date|}}}
 +
  | [[Category:Cleanup from {{{date}}}]]
 +
  }}
 +
| <!-- Do not categorise when not on article pages. -->
 +
}}<noinclude>
 +
 
 +
{{documentation}}
 +
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 +
</noinclude>

Revision as of 03:40, 6 February 2009

50px Template documentation[view] [edit] [history] [purge]

Usage

Add {{How-to|date=March 2026}} to the top to the article in question. If the problem only related to one section, add {{How-to|section}} to the top of the section.

This template adds tagged articles to Category:Articles containing how-to sections and to a dated subcategory of Category:Articles needing cleanup.

See also