This site is supported by donations to The OEIS Foundation.

Template:Bar

From OeisWiki
Jump to: navigation, search

The {{bar}} graphic template draws either a horizontal bar (extending from the left to the right of the bounding box) or a vertical bar (extending from the the bottom to the top of the bounding box).

Usage

{{bar|H}} (horizontal bar)

or

{{bar|V}} (vertical bar)

Valid input

Argument: H or V

Examples

Examples with valid input

Code Result
{{bar|H}}
{{bar|V}}

Examples with invalid input

Code Result
{{bar}} Bar error: Argument must be either H or V

Code


<noinclude>{{documentation}}</noinclude><includeonly><!--
-->{{#switch: {{#if: {{{1|}}} | {{{1}}} | ? }}
| V = <span>⎪</span><!-- this is a vertical bar extending from the bottom to the top of the bounding box -->
| H = {{rotate|<span>⎪</span>|pi/2}}<!-- this is now a horizontal bar extending from the left to the right of the bounding box -->
| ? = {{error| Bar error: Argument must be either <tt>H</tt> or <tt>V</tt> }} 
}}</includeonly>