Difference between revisions of "Template:Algebraic notation"

From blackwiki
Jump to navigation Jump to search
m (61 revisions imported)
 
(53 intermediate revisions by 13 users not shown)
Line 1: Line 1:
:''This article uses [[algebraic chess notation|algebraic notation]] to describe chess moves.''<noinclude>
+
{{#switch: {{{pos}}}
[[Category:Chess templates|Chess notation]]
+
| tocleft = {{TOC left}} <br />
 
+
  {{ side box
[[fr:Modèle:Notation échiquéenne]]
+
    | text  = This article uses [[algebraic notation (chess)|algebraic notation]] to describe chess moves.
[[sl:Template:Chess notation]]
+
    | style = width:165px;
[[sr:Шаблон:Алгебарска нотација]]
+
    | 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

Template:Side box

Template documentation[view] [edit] [history] [purge]

Template:Template shortcuts

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=tocleft and pos=toc and pos=TOC generate the template sequence:

    {{TOC left}} <br />
    {{algebraic notation|pos=left}}
    {{clear left}}

    ... 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 {{stack|image1|image2}}.