Difference between revisions of "Template:Algebraic notation/sandbox"
blackwiki>Ihardlythinkso (clearleft → clear left) |
blackwiki>Frietjes m |
||
| Line 1: | Line 1: | ||
{{#switch: {{{pos}}} | {{#switch: {{{pos}}} | ||
| − | | tocleft = {{toc left}} | + | | tocleft = {{toc left}} <br /> |
{{ side box | {{ side box | ||
| text = This article uses [[algebraic notation (chess)|algebraic notation]] to describe chess moves. | | text = This article uses [[algebraic notation (chess)|algebraic notation]] to describe chess moves. | ||
| Line 7: | Line 7: | ||
}} | }} | ||
{{clear left}} | {{clear left}} | ||
| − | | toc = {{toc left}} | + | | toc = {{toc left}} <br /> |
{{ side box | {{ side box | ||
| text = This article uses [[algebraic notation (chess)|algebraic notation]] to describe chess moves. | | text = This article uses [[algebraic notation (chess)|algebraic notation]] to describe chess moves. | ||
| Line 14: | Line 14: | ||
}} | }} | ||
{{clear left}} | {{clear left}} | ||
| − | | TOC = {{toc left}} | + | | TOC = {{toc left}} <br /> |
{{ side box | {{ side box | ||
| text = This article uses [[algebraic notation (chess)|algebraic notation]] to describe chess moves. | | text = This article uses [[algebraic notation (chess)|algebraic notation]] to describe chess moves. | ||
Revision as of 15:27, 18 December 2017
| 50px | This is the template sandbox page for Template:Algebraic notation (diff). See also the companion subpage for test cases. |
This template is used in WikiProject Chess articles containing chess moves written in algebraic notation. It generates a {{side box}} to alert the reader to the fact, and provides a link to Algebraic notation. The tag comes in three flavors:
Template:Side box
To place right, specify: {{algebraic notation}} or {{algebraic notation|pos=right}}
To place left, specify: {{algebraic notation|pos=left}}
To place adjacent to the TOC, specify: {{algebraic notation|pos=tocleft}} or {{algebraic notation|pos=toc}} or {{algebraic notation|pos=TOC}}
Template:Side box
To place right, specify: {{algebraic notation|pos=secright}} or {{algebraic notation|pos=section}}
To place left, specify: {{algebraic notation|pos=secleft}}
Template:Side box
To place right, specify: {{algebraic notation|pos=egright}} or {{algebraic notation|pos=example}}
To place left, specify: {{algebraic notation|pos=egleft}}
Tips:
- Avoid using an article-level tag in a biography article. (It detracts from the lede image.) Use a section-level tag(s), or diagram-level tag(s), instead.
- Try to place section-level tags nearest where they're needed. (For example, if a section is long and chess moves appear only in a later subsection, use the tag in the subsection.)
- Unlike the other options,
pos=tocleftandpos=tocandpos=TOCgenerate the template sequence:
... so it won't always work as desired when competing images exist to the right. In that case, first isolate the competing images using the template{{TOC left}}<br />{{algebraic notation|pos=left}}{{clear left}}{{stack|image1|image2}}.
| The above documentation is transcluded from Template:Algebraic notation/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |