Difference between revisions of "Template:Policy shortcut"
Jump to navigation
Jump to search
(uploaded "Image:SierraDenali.jpg": Importing image file) |
m (1 revision) |
||
Line 1: | Line 1: | ||
{{ | <table class="shortcutbox shortcutbox-policy noprint" style=" | ||
<!-- | {{#ifeq:{{{float|}}}|left | ||
== | | float: left; margin: .3em 1em .3em .3em; | ||
| float: right; margin: .3em .3em .3em 1em; | |||
}} | |||
border: 1px solid #aaa; background: #fff; padding: 3px; text-align: center;"><tr><th style="border: none; background: transparent;"><!-- | |||
Putting anchors on page: | |||
-->{{#if:{{{1|}}}|<span id="{{{1|}}}"></span> }}{{#if:{{{2|}}}|<span id="{{{2|}}}"></span> }}{{#if:{{{3|}}}|<span id="{{{3|}}}"></span> }}{{#if:{{{4|}}}|<span id="{{{4|}}}"></span> }}{{#if:{{{5|}}}|<span id="{{{5|}}}"></span> }}{{#if:{{{6|}}}|<span id="{{{6|}}}"></span> }}{{#if:{{{7|}}}|<span id="{{{7|}}}"></span> }}{{#if:{{{8|}}}|<span id="{{{8|}}}"></span> }}{{#if:{{{9|}}}|<span id="{{{9|}}}"></span> }}{{#if:{{{10|}}}|<span id="{{{10|}}}"></span> }}<!-- | |||
Adding the shortcut links: | |||
--><small>[[Wikipedia:Policies and guidelines|Policy]] [[Wikipedia:Shortcut|shortcut{{#if:{{{2|}}}|s}}]]: {{#if:{{{1|}}}|<br> [[{{{1}}}]] }}{{#if:{{{2|}}}|<br> [[{{{2}}}]] }}{{#if:{{{3|}}}|<br> [[{{{3}}}]] }}{{#if:{{{4|}}}|<br> [[{{{4}}}]] }}{{#if:{{{5|}}}|<br> [[{{{5}}}]] }}{{#if:{{{6|}}}|<br> [[{{{6}}}]] }}{{#if:{{{7|}}}|<br> [[{{{7}}}]] }}{{#if:{{{8|}}}|<br> [[{{{8}}}]] }}{{#if:{{{9|}}}|<br> [[{{{9}}}]] }}{{#if:{{{10|}}}|<br> [[{{{10}}}]] }}</small></table><!-- | |||
Reporting if the first parameter is not a valid non-bracketed shortcut name: | |||
-->{{#if:{{{1|}}} | |||
| {{#ifexist:{{{1|}}} | |||
| | |||
| [[Category:Wikipedia shortcut box first parameter needs fixing|{{PAGENAME}}]] | |||
}} | |||
}}<noinclude> | |||
{{Documentation}}{{pp-semi-template|small=yes}} | |||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | |||
</noinclude> | </noinclude> |
Latest revision as of 15:12, 3 February 2009
[edit] Template documentation
This documentation is transcluded from Template:Policy shortcut/doc. (edit | history)
This template has a sandbox (edit) for editors to experiment.
This template has a sandbox (edit) for editors to experiment.
This is the {{policy shortcut}} template.
This template should be used instead of the standard {{shortcut}} template within individual sections of policies to which readers are redirected without seeing the {{policy}} notice at the top of the page.
Usage, examples and anchors
This template works in the same way as the {{shortcut}} template, see full documentation there.
Additional parameter
This template has an additional parameter.
"float=left" makes this template flow to the left of the page instead:
{{policy shortcut | float=left | WP:SHORT }}
See also
- {{shortcut}} – The normal shortcut box.
- {{shortcut-l}} – For left aligned normal shortcuts.
- {{template shortcut}} – Use this box to show the names of shortcuts/redirects to a template.
Categories:
- Wikipedia shortcut box first parameter needs fixing
- Wikipedia header templates
- Semi-protected templates