Difference between revisions of "Template:Algebraic notation"
blackwiki>Andrejj |
m (61 revisions imported) |
||
| (55 intermediate revisions by 15 users not shown) | |||
| Line 1: | Line 1: | ||
| − | : | + | {{#switch: {{{pos}}} |
| − | [[ | + | | tocleft = {{TOC left}} <br /> |
| − | [[ | + | {{ side box |
| + | | text = This article uses [[algebraic notation (chess)|algebraic notation]] to describe chess moves. | ||
| + | | style = width:165px; | ||
| + | | position = left | ||
| + | }} | ||
| + | {{clear left}} | ||
| + | | toc = {{TOC left}} <br /> | ||
| + | {{ side box | ||
| + | | text = This article uses [[algebraic notation (chess)|algebraic notation]] to describe chess moves. | ||
| + | | style = width:165px; | ||
| + | | position = left | ||
| + | }} | ||
| + | {{clear left}} | ||
| + | | TOC = {{TOC left}} <br /> | ||
| + | {{ side box | ||
| + | | text = This article uses [[algebraic notation (chess)|algebraic notation]] to describe chess moves. | ||
| + | | style = width:165px; | ||
| + | | position = left | ||
| + | }} | ||
| + | {{clear left}} | ||
| + | | secright = | ||
| + | {{ side box | ||
| + | | text = This section uses [[algebraic notation (chess)|algebraic notation]] to describe chess moves. | ||
| + | | style = width:340px; | ||
| + | | position = right | ||
| + | }} | ||
| + | | section = | ||
| + | {{ side box | ||
| + | | text = This section uses [[algebraic notation (chess)|algebraic notation]] to describe chess moves. | ||
| + | | style = width:340px; | ||
| + | | position = right | ||
| + | }} | ||
| + | | secleft = | ||
| + | {{ side box | ||
| + | | text = This section uses [[algebraic notation (chess)|algebraic notation]] to describe chess moves. | ||
| + | | style = width:340px; | ||
| + | | position = left | ||
| + | }} | ||
| + | | egright = | ||
| + | {{ side box | ||
| + | | text = This example uses [[algebraic notation (chess)|algebraic notation]]. | ||
| + | | style = width:220px; | ||
| + | | position = right | ||
| + | }} | ||
| + | | example = | ||
| + | {{ side box | ||
| + | | text = This example uses [[algebraic notation (chess)|algebraic notation]]. | ||
| + | | style = width:220px; | ||
| + | | position = right | ||
| + | }} | ||
| + | | egleft = | ||
| + | {{ side box | ||
| + | | text = This example uses [[algebraic notation (chess)|algebraic notation]]. | ||
| + | | style = width:220px; | ||
| + | | position = left | ||
| + | }} | ||
| + | | {{ side box | ||
| + | | text = This article uses [[algebraic notation (chess)|algebraic notation]] to describe chess moves. | ||
| + | | style = width:205px; | ||
| + | | position = {{{pos|right}}} | ||
| + | }} | ||
| + | }}<noinclude> | ||
| + | {{Documentation}} | ||
| + | <!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES TO THE /doc SUBPAGE, THANKS --> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 10:40, 20 October 2020
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. |