Difference between revisions of "Template:Guideline/doc"

From blackwiki
Jump to navigation Jump to search
imported>Davidgothberg
(Shortcut box parameters should not have brackets. And simpler code.)
imported>JayHenry
(explain sortkey in documentation)
Line 2: Line 2:
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
To include a shortcut (or shortcuts), pass a parameter: {{tlc|Guideline|WP:SHORT}}
 
To include a shortcut (or shortcuts), pass a parameter: {{tlc|Guideline|WP:SHORT}}
 +
 +
To add a [[Wikipedia:Sortkey|sort key]] to a guideline, add the parameter: {{tlc|Guideline|<nowiki>Sortkey=<sort key name></nowiki>}}.
 +
 +
Up to five shortcuts can be used, with or without a sortkey:  {{tlc|Guideline|<nowiki>WP:SHORT|WP:SHORT2|WP:SHORT3|WP:SHORT4|WP:SHORT5|Sortkey=<sort key name></nowiki>}}.
  
 
For related [[:Category:Wikipedia header templates|Wikipedia header templates]]  
 
For related [[:Category:Wikipedia header templates|Wikipedia header templates]]  

Revision as of 01:09, 1 May 2008

Template:Template doc page viewed directly To include a shortcut (or shortcuts), pass a parameter: {{Guideline|WP:SHORT}}

To add a sort key to a guideline, add the parameter: {{Guideline|Sortkey=<sort key name>}}.

Up to five shortcuts can be used, with or without a sortkey: {{Guideline|WP:SHORT|WP:SHORT2|WP:SHORT3|WP:SHORT4|WP:SHORT5|Sortkey=<sort key name>}}.

For related Wikipedia header templates see Template messages/Wikipedia namespace.