ढाँचा:Family tree/doc: संशोधनहरू बीचको भिन्नता

Describe summary= parameter, resolving the accessibility issue.
पङ्क्ति ८:
==Example usage==
This code:
<pre style="overflow:auto;">
<pre><nowiki>
{{familytree/start |summary=I have a brother Joe and a little sister: my mom married my dad, and my dad's parents were Grandma and Grandpa; they had another child, Aunt Daisy.}}
{{familytree/start}}
{{familytree | | | | GMa |~|y|~| GPa | | GMa=Grandma|GPa=Grandpa}}
{{familytree | | | | | | | |)|-|-|-|.| }}
पङ्क्ति १६:
{{familytree | JOE | | ME | | SIS | | | JOE=My brother Joe|ME='''Me!'''|SIS=My little sister}}
{{familytree/end}}
</nowiki></pre>
Produces this:
 
{{familytree/start |summary=I have a brother Joe and a little sister: my mom married my dad, and my dad's parents were Grandma and Grandpa; they had another child, Aunt Daisy.}}
{{familytree/start}}
{{familytree | | | | GMa |~|y|~| GPa | | GMa=Grandma|GPa=Grandpa}}
{{familytree | | | | | | | |)|-|-|-|.| }}
पङ्क्ति २८:
 
== Parameters ==
The {{para|summary|<var>text</var>}} parameter of the {{tl|familytree/start}} template should be used to describe the overall layout of the tree. This summary is for [[Wikipedia:Accessibility|accessibility]]: it is read aloud to visually impaired readers who use [[screen reader]]s, and is invisible to sighted readers.
This template produces one row in a family tree table. The template accepts up to 80 unnamed parameters describing the contents of the table. Each parameter specifies a '''tile''' or a '''box'''.
 
ThisThe {{tl|familytree}} template produces one row in a family tree table. The template accepts up to 80 unnamed parameters describing the contents of the table. Each parameter specifies a '''tile''' or a '''box'''.
* '''Tiles''' are line drawing symbols consisting of horizontal and vertical lines and various corners and crossings thereof. Tiles are specified using single-character symbols that more or less approximate the shape of the tile in appearance. A special case of a tile is the '''empty tile''', specified by a single space character. A table of supported tiles is given below.
 
Line १२५ ⟶ १२७:
The appearance of the boxes may be controlled by the optional template parameters ''border'' and ''boxstyle''. The former sets the width of the box border in pixels, while the latter can be used to append arbitrary [[Cascading Style Sheets|CSS]] declarations directly to the box style attributes. For example, the following code:
 
<pre style="overflow:auto;">
<pre><nowiki>
{{familytree/start |summary=Box 1 married to Box 2, with children Box 3 and Box 4}}
{{familytree|border=0|boxstyle=background:#dfd;| | FOO |y| BAR | |FOO=Box 1|BAR=Box 2}}
{{familytree|border=0|boxstyle=background:#dfd;| | |,|-|^|-|.| | }}
Line १३५ ⟶ १३७:
produces a result like this:
 
{{familytree/start |summary=Box 1 married to Box 2, with children Box 3 and Box 4}}
{{familytree|border=0|boxstyle=background:#dfd;| | FOO |y| BAR | |FOO=Box 1|BAR=Box 2}}
{{familytree|border=0|boxstyle=background:#dfd;| | |,|-|^|-|.| | }}
Line १४३ ⟶ १४५:
Style attributes can even be set for individual boxes, as in the example below:
 
<pre style="overflow:auto;">
<pre><nowiki>
{{familytree/start |White box with three children Red box, Green box, Blue box, all married to each other}}
{{familytree/start}}
{{familytree| | | | |WHITE| | | | |WHITE=White box}}
{{familytree| |,|-|-|'|!|`|-|-|.| }}
Line १५३ ⟶ १५५:
}}
{{familytree/end}}
</nowiki></pre>
 
which produces the output:
 
{{familytree/start |White box with three children Red box, Green box, Blue box, all married to each other}}
{{familytree/start}}
{{familytree| | | | |WHITE| | | | |WHITE=White box}}
{{familytree| |,|-|-|'|!|`|-|-|.| }}
Line १७० ⟶ १७२:
 
The {{tl|familytree/start}} template also accepts an optional ''style'' parameter that can be used to set CSS styles for the entire table.
 
==Accessibility==
{{AccessibilityDispute}}
This template has [[Wikipedia:Accessibility|accessibility]] problems for [[screen reader]] users. The relationships between boxes (the lines) will be hidden, effectively reducing the chart to a series of paragraphs in order by row. Charts with each generation on separate rows (rather than in columns) should be a bit more accessible. It is also recommended that you add a <code>summary</code> parameter to the start tag to describe the overall layout of the table. For example:
 
<code><nowiki>{{familytree/start| summary=Family tree diagram for Barack Obama, connecting 29 individuals in 4 generations. Generations are arranged in rows, with Barack appearing 3rd on the 3rd such row. The bottom right corner breaks out some additional relationships of his father.}}</nowiki></code>
 
==See also==
"https://ne.wikibooks.org/wiki/ढाँचा:Family_tree/doc" बाट अनुप्रेषित