Revision 20502 of "ઢાંચો:છબીકોશ/દસ્તાવેજીકરણ" on guwiktionary

{{દસ્તાવેજીકરણ ઉપપાનું}}
Use this template to add a [[વિકિકોશ:Picture dictionary|Picture dictionary]] to an entry.

'''વપરાશ''' (see four different ways to use this template below):

{{ છબીકોશ
| છબી=Solar_sys8.jpg
| લખાણ=Solar System
| પહોળાઈ=200
| વિગત૧=
{{ છબીકોશછબી | છબી=Milky Way Galaxy.jpg | કડી=heavenly body }}
| વિગત૨=
{{ છબીકોશછબી | છબી=The sun1.jpg | કડી=Sun | બીજુંકડી=The sun }}
{{ છબીકોશછબી | છબી=Mercury in color - Prockter07 centered.jpg | કડી=Mercury }}
}}

<span style="font-size:9px; background:#EEEEEE;">
<nowiki>{{ </nowiki>'''છબીકોશ'''<br>
<nowiki>| છબી=Solar_sys8.jpg</nowiki><br>
<!-- <nowiki>| લખાણ=Solar System</nowiki><br> -->
<nowiki>| વિગત૧=</nowiki>
:<nowiki>{{ છબીકોશછબી | છબી=Milky Way Galaxy.jpg | કડી=heavenly body }}</nowiki><br>
<nowiki>| વિગત૨=</nowiki><br>
:<nowiki>{{ છબીકોશછબી | છબી=The sun1.jpg | કડી=Sun | બીજુંકડી=The sun }}</nowiki><br>
:<nowiki>{{ છબીકોશછબી | છબી=Mercury in color - Prockter07 centered.jpg | કડી=Mercury }}</nowiki><br>
<nowiki>}}</nowiki>
</span>

'''Parameters''' for this template:
;છબી
:Image that describes the entry.
;વિગત૧
: Any content, in most cases clickable image(s) describing a [[hypernym]].
: A clickable image can be inserted by adding a line with [[ઢાંચો:picdicimg]] for each image.

'''Optional parameters'''
;વિગત૨
;વિગત૩
;વિગત૪
: Any content, in most cases clickable images describing the [[hyponym]]s.
: A clickable image can be inserted by adding a line with [[ઢાંચો:picdicimg]] for each image.
: detail2, detail3 and detail4 are optional, in that case [[hyponym]]s should be described elsewhere.
: Within parameters detail1, detail2, detail3 and detail4 the full wiki syntax can be used. The only restriction is the use of the <nowiki>|</nowiki> character in tables (and complex templates). That character should be replaced by the template <nowiki>{{!}}</nowiki>. For tables <nowiki>{|, |-, |, ||, |} etc. should be replaced by {{{!}}, {{!}}-, {{!}}, {{!}}{{!}}, {{!}}} etc. </nowiki> Alternatively the [[w:Help:Table#Other_table_syntax|(X)HTML syntax for tables]] can be used like &lt;table>&lt;tr>&lt;td> &lt;/td>&lt;/tr>&lt;/table>.
;scrollable
: Fill scrollable=yes to have a scroll bar at the bottom of the details
;text
:The name of the entry. The default value is the page name of the entry.
;width
:Maximum width of the image.
:This parameter is optional, the default width is 310.
;height
:Maximum height of the image.
:This parameter is optional, the default height is 310.
;imagemap
: This parameter is optional, and only to be used in case of an image map instead of other visual content describing the [[hyponym]]s.
: The parameter imagemap cannot be used in combination with the parameter labels
: To use image maps this parameter should be filled with a valid defintion of the imagemap areas.
: The coordinates are the number of pixels from the upper-left-hand corner of the default size of the image, so are '''independent''' of the size shown on screen.
: Example of this parameter:
<span style="font-size:9px; background:#EEEEEE;">
::imagemap=
::<nowiki>circle 1035 572 13 [[Mercury]]</nowiki>
::<nowiki>circle 860 483 234 [[Sun]]</nowiki>
</span>
: A tutorial to use image maps can be found at [[:w:Wikipedia:Wikipedia Signpost/2008-03-03/Tutorial|Wikipedia:Wikipedia Signpost/2008-03-03]].
;labels
: This parameter is optional, and only to be used in case of text labels to be inserted on the main image instead of other visual content describing the [[hyponym]]s.
: The parameter labels cannot be used in combination with the parameter imagemap
: The labels itself should be inserted by adding a line with [[ઢાંચો:picdiclabel]] for each label.
: The coordinates are the number of pixels from the upper-left-hand corner of the visable size of the image, so are '''dependent''' of the size shown on screen. See the template for further info.
: Examples of this parameter:
<span style="font-size:9px; background:#EEEEEE;">
::labels=
::<nowiki>{{</nowiki> picdiclabel | posx=181 | posy= 86 | link=Sun }}
::<nowiki>{{</nowiki> picdiclabel | posx=214 | posy=119 | link=Mercury | align=right }}
</span>

=== Examples ===

Four different ways to use [[વિકિકોશ:Picture dictionary | Picture dictionary]] (using [[ઢાંચો:picdic]]), [[Solar System]] examples with comparable links.
{| 
|-
| valign="top" |
''' Picture dictionary with clickable images '''
| valign="top" |
''' Picture dictionary with legend and wikilinks '''
| valign="top" |
''' Picture dictionary with image map '''
| valign="top" |
''' Picture dictionary with labels ''' 
|-
| valign="top" |
{{ picdic
| image=Solar_sys8.jpg
| text=Solar System
| detail1=
{{ picdicimg | image=Milky Way Galaxy.jpg | link=heavenly body }}
| detail2=
{{ picdicimg | image=The sun1.jpg | link=Sun | altlink=The sun }}
{{ picdicimg | image=Mercury in color - Prockter07 centered.jpg | link=Mercury }}
{{ picdicimg | image=Venus-real.jpg | link=Venus }}
{{ picdicimg | image=The Earth seen from Apollo 17.jpg | link=Earth }}
{{ picdicimg | image=Full Moon Luc Viatour.jpg | link=Moon }}
{{ picdicimg | image=Mars Hubble.jpg | link=Mars }}
{{ picdicimg | image=Jupiter_by_Cassini-Huygens.jpg | link=Jupiter }}
{{ picdicimg | image=Saturn - Lord of the Rings.jpg | link=Saturn }}
{{ picdicimg | image=Uranus2.jpg | link=Uranus }}
{{ picdicimg | image=Neptune.jpg | link=Neptune }} 
{{ picdicimg | image=Comet Hale Bopp NASA.jpg | link=comet }}
{{ picdicimg | image=951 Gaspra.jpg | link=asteroid belt }}
{{ picdicimg | image=Kepler2.gif | link=orbit }} 
}}

| valign="top" |
{{ picdic
| image=Solar sys8 numbered.jpg 
| text=Solar System 
| detail1=
{{ picdicimg | image=Milky Way Galaxy.jpg | link=heavenly body }}
| detail2=
'''Legend (1):'''<br/>
1=  [[Sun#English|The sun]]
2=  [[Mercury#English|Mercury]] 
3=  [[Venus#English|Venus]] 
4=  [[Earth#English|Earth]] 
5=  [[Moon#English|Moon]]
6=  [[Mars#English|Mars]] 
7=  [[Jupiter#English|Jupiter]] 
8=  [[Saturn#English|Saturn]] 
9=  [[Uranus#English|Uranus]] 
10=  [[Neptune#English|Neptune]] 
11=  [[comet#English|comet]]
12=  [[asteroid belt#English|asteroid belt]]
13=  [[orbit#English|orbit]]
14=  [[terrestrial planet#English|terrestrial planets]] or  [[inner planet#English|inner planets]] 
15=  [[outer planet#English|outer planets]] 
| detail3=<!-- alternative 2 -->
'''Legend (2):'''<br/>
1=  [[Sun#English|The sun]]<br>
2=  [[Mercury#English|Mercury]]<br> 
3= etc
| detail4=<!-- alternative 3 -->
{{{!}} <!-- table -->
{{!}}-
{{!}} colspan=3 {{!}} '''Legend (3, in table):'''<br/>
{{!}}-
{{!}} valign = top {{!}}
1=  [[Sun#English|The sun]]<br>
2=  [[Mercury#English|Mercury]]<br> 
3=  [[Venus#English|Venus]]<br>
4=  [[Earth#English|Earth]]<br>
5=  [[Moon#English|Moon]]
{{ ! }} valign = top {{ ! }}
6=  [[Mars#English|Mars]]<br>
7=  [[Jupiter#English|Jupiter]]<br> 
8=  [[Saturn#English|Saturn]]<br>
9=  [[Uranus#English|Uranus]]<br>
10=  [[Neptune#English|Neptune]]
{{ ! }} valign = top {{ ! }}
11=  [[comet#English|comet]]<br>
12=  [[asteroid belt#English|asteroid belt]]<br>
13=  [[orbit#English|orbit]]<br>
14=  [[terrestrial planet#English|terrestrial planets]]<br>or  [[inner planet#English|inner planets]]<br>
15=  [[outer planet#English|outer planets]]
{{!}}} <!-- end of table -->

}}

| valign="top" |
{{ picdic
| image=Solar_sys8.jpg
| text=Solar System
| imagemap=
circle  226 106  22  [[Neptune#English|Neptune]]
circle  305 124  26  [[Uranus#English|Uranus]]
circle  525 202  49  [[Jupiter#English|Jupiter]]
circle  401 147  32  [[Saturn#English|Saturn]]
circle 1035 572  13  [[Mercury#English|Mercury]]
circle  860 483 234  [[Sun#English|The sun]]
circle 1141 531  28  [[Venus#English|Venus]]
circle 1236 479  28  [[Earth#English|Earth]]
circle 1342 398  24  [[Mars#English|Mars]]
circle 1277 460   9  [[Moon#English|Moon]]
rect  39 400 196 430  [[comet#English|comet]]
rect 216 538 458 903  [[asteroid belt#English|asteroid belt]]
| detail1=Click on parts of the image
| detail2=
{{ picdicimg | image=Milky Way Galaxy.jpg | link=heavenly body }}
}}

| valign="top" |
{{ picdic
| image=Solar_sys8.jpg
| text=Solar System
| width=310
| labels=
{{ picdiclabel | color=white | fontsize=18 | posx=181 | posy= 86 | link=Sun | altlink=The sun }}
{{ picdiclabel | color=white | fontsize=12 | posx=214 | posy=119 | link=Mercury | align=right }}
{{ picdiclabel | color=white | fontsize=12 | posx=237 | posy=105 | link=Venus | align=right }}
{{ picdiclabel | color=white | fontsize=12 | posx=257 | posy= 94 | link=Earth | align=right }}
{{ picdiclabel | color=white | fontsize=12 | posx=281 | posy= 82 | link=Moon | align=right }}
{{ picdiclabel | color=white | fontsize=12 | posx=297 | posy= 68 | link=Mars | align=right }}
{{ picdiclabel | color=white | fontsize=12 | posx=121 | posy= 60 | link=Jupiter | align=right }}
{{ picdiclabel | color=white | fontsize=12 | posx= 86 | posy= 44 | link=Saturn | align=right }}
{{ picdiclabel | color=white | fontsize=12 | posx= 57 | posy= 31 | link=Uranus | align=right }}
{{ picdiclabel | color=white | fontsize=12 | posx= 55 | posy= 5 | link=Neptune | align=right }}
{{ picdiclabel | color=white | fontsize=12 | posx= 26 | posy= 95 | link=comet }}
{{ picdiclabel | color=white | fontsize=12 | posx= 65 | posy=181 | link=asteroid belt }}
{{ picdiclabel | color=white | fontsize=12 | posx=112 | posy=164 | link=orbit }}
| detail1=Click on labels in the image
| detail2=
{{ picdicimg | image=Milky Way Galaxy.jpg | link=heavenly body }}
}}

|- <!-- codes -->
| valign="top" |
'''Code:'''<br>
<span style="font-size:9px; background:#EEEEEE;">
<nowiki>{{ picdic</nowiki><br>
<nowiki>| image=Solar_sys8.jpg</nowiki><br>
<!-- <nowiki>| text=Solar System</nowiki><br> -->
<nowiki>| detail1=</nowiki>
:<nowiki>{{ picdicimg | image=Milky Way Galaxy.jpg | link=heavenly body }}</nowiki><br>
<nowiki>| detail2=</nowiki><br>
:<nowiki>{{ picdicimg | image=The sun1.jpg | link=Sun | altlink=The sun }}</nowiki><br>
:<nowiki>{{ picdicimg | image=Mercury in color - Prockter07 centered.jpg | link=Mercury }}</nowiki><br>
: etc.<br>
<nowiki>}}</nowiki>
</span>
| valign="top" |
'''Code:'''<br>
<span style="font-size:9px; background:#EEEEEE;">
<nowiki>{{ picdic</nowiki><br>
<nowiki>| image=Solar sys8 numbered.jpg</nowiki><br>
<!-- <nowiki>| text=Solar System</nowiki><br> -->
<nowiki>| detail1=</nowiki><br>
:<nowiki>{{ picdicimg | image=Milky Way Galaxy.jpg | link=heavenly body }}</nowiki><br>
<nowiki>| detail2=</nowiki> 
:<nowiki>'''Legend (1):'''<br/></nowiki>
:<nowiki>1= [[Sun#English | The sun]]</nowiki>
:<nowiki>2= [[Mercury#English | Mercury]]</nowiki>
:<nowiki>3= etc</nowiki><br>
<nowiki>}}</nowiki>
</span>
| valign="top" |
'''Code:'''<br>
<span style="font-size:9px; background:#EEEEEE;">
<nowiki>{{ picdic</nowiki><br>
<nowiki>| image=Solar_sys8.jpg</nowiki><br>
<!-- <nowiki>| text=Solar System</nowiki><br> -->
<nowiki>| imagemap=</nowiki><br>
:<nowiki>circle 1035 572  13 [[Mercury#English | Mercury]]</nowiki><br>
:<nowiki>circle  860 483 234 [[Sun#English | The sun]]</nowiki><br>
: etc<br>
<nowiki>| detail1=Click on parts of the image</nowiki><br>
<nowiki>| detail2=</nowiki>
:<nowiki>{{ picdicimg | image=Milky Way Galaxy.jpg | link=heavenly body }}</nowiki><br>
<nowiki>}}</nowiki>
</span>
| valign="top" |
'''Code:'''<br>
<span style="font-size:9px; background:#EEEEEE;">
<nowiki>{{ picdic</nowiki><br>
<nowiki>| image=Solar_sys8.jpg</nowiki><br>
<!-- <nowiki>| text=Solar System</nowiki><br> -->
<nowiki>| width=310</nowiki><br>
<nowiki>| labels=</nowiki>
:<nowiki>{{ picdiclabel | color=white | fontsize=18 | posx=181 | posy= 86 | link=Sun | altlink=The sun }}</nowiki>
:<nowiki>{{ picdiclabel | color=white | fontsize=12 | posx=214 | posy=119 | link=Mercury | align=right }}</nowiki>
: etc.
<nowiki>| detail1=Click on labels in the image</nowiki><br>
<nowiki>| detail2=</nowiki>
:<nowiki>{{ picdicimg | image=Milky Way Galaxy.jpg | link=heavenly body }}</nowiki><br>
<nowiki>}}</nowiki>
</span>
|}