Difference between revisions of "Template:Howto"

From VideoLAN Wiki
Jump to navigation Jump to search
m (Simplify CSS)
m (Code-correct (see Wikipedia:HiddenStructure) but ugly)
Line 1: Line 1:
{| class="widebox {{#switch:{{{silent}}}|yes|y = hiddenStructure}} center cellpadding-3px" style="border-spacing:2px;"
+
{{#switch:{{{silent}}}
|style="text-align: left;"|This page describes ''how to {{lcfirst:{{{1}}}}}''.
+
  |yes
|class="nowrap" style="text-align: right;"|[[VLC HowTo|Other "how to" pages]]
+
  |y       =
|}
+
  |#default =
 +
  {{{!}} class="widebox center cellpadding-3px" style="border-spacing:2px;"
 +
    {{!}}style="text-align: left;"{{!}}This page describes ''how to {{lcfirst:{{{1}}}}}''.
 +
    {{!}}class="nowrap" style="text-align: right;"{{!}}[[VLC HowTo{{!}}Other "how to" pages]]
 +
  {{!}}}
 +
}}
 
{{#switch:{{{nosort}}}|yes|y = |#default = <includeonly>{{DEFAULTSORT:{{#titleparts:{{FULLPAGENAME}}|1|2}}|noerror}}</includeonly>}}
 
{{#switch:{{{nosort}}}|yes|y = |#default = <includeonly>{{DEFAULTSORT:{{#titleparts:{{FULLPAGENAME}}|1|2}}|noerror}}</includeonly>}}
 
{{#switch:{{{nocat}}}|yes|y = |#default = [[Category:How To]]}}<noinclude>
 
{{#switch:{{{nocat}}}|yes|y = |#default = [[Category:How To]]}}<noinclude>

Revision as of 03:30, 9 June 2019

This page describes how to {{{1}}}. Other "how to" pages

Usage

Calling the template currently:

  1. Auto-categorises pages to be members of Category:How To
  2. Corrects the sortkey: telling the system that VLC HowTo/Adjust audio delay ought to be filed as "Adjust audio delay" (A) and not "VLC HowTo/Adjust audio delay" (V).
  3. Displays a message (optional)
    • {{howto|do something}}) will show a message will be shown similar to the above.
    • {{howto|silent=yes}} will suppress the message altogether—however, the template still auto-categorises and auto-sorts.