Πρότυπο:Εικόνα/τεκμηρίωση
Υποσελίδα τεκμηρίωσης για το Πρότυπο:Εικόνα. Περιέχει πληροφορίες χρήσης, κατηγορίες και περιεχόμενο που δεν αποτελεί τμήμα του αρχικού προτύπου. |
Αυτή η σελίδα χρειάζεται μετάφραση.
Αν θέλετε να συμμετάσχετε, μπορείτε να επεξεργαστείτε τη σελίδα μεταφράζοντάς την ή προσθέτοντας δικό σας υλικό και να αφαιρέσετε το {{μετάφραση}} μόλις ολοκληρώσετε. Είναι πιθανό (και επιθυμητό) τμήμα του ξενόγλωσσου κειμένου να έχει κρυφτεί σαν σχόλιο με <!-- και --> . Πατήστε "επεξεργασία" για να δείτε ολόκληρο το κείμενο. |
Usage
ΕπεξεργασίαCreates floating image and caption.
{{εικόνα | style = | above = | file = | width = | align = | cap = | capalign = | alt = }}
Parameters
Επεξεργασία- Πρότυπο:Parameter: add css style attributes. If you change font size by percent you should also change line-height. For example if you want font-size to be 80%: | style = font-size: 80%; line-height: 80%;
- Πρότυπο:Parameter: add text above picture
- Πρότυπο:Parameter: The file name (without the "File:" prefix) (mandatory parameter)
- Πρότυπο:Parameter: The width of the image (optional, default 150px)
- Πρότυπο:Parameter: The alignment of the image on the page ("left", "right" or "center"; default "right").
- Πρότυπο:Parameter: The image caption (optional). Do not use any <div> or div-based templates such as
{{smaller block}}
if the template is located in the middle of a paragraph as Mediwiki will add a paragraph break. - Πρότυπο:Parameter: The image caption text alignment ("left", "right" or "center"; default "center")
- Πρότυπο:Parameter: Image alt-text, ie. for mouse-over text box or for use with a screenreader for the visually impaired (optional)
Example
ΕπεξεργασίαImage on right
Επεξεργασία{{εικόνα | file = The Kinematics of Machinery Fig 2.jpg | width = 250px | align = right | cap = Fig. 2. }}
Fig. 2.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Image on left
Επεξεργασία{{εικόνα | file = The Kinematics of Machinery Fig 2.jpg | width = 250px | align = left | cap = Fig. 2. }}
Fig. 2.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Left aligned image caption
Επεξεργασία{{εικόνα | file = The Kinematics of Machinery Fig 2.jpg | width = 250px | align = right | cap = Fig. 2. | capalign = left }}
Fig. 2. On the left.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Image on right with above text
Επεξεργασία{{εικόνα | style = | above = Fig. 2 | file = The Kinematics of Machinery Fig 1.png | width = 250px | align = right | cap = This is image of kinematics of machinery fig 1. }}
Fig. 2
This is image of kinematics of machinery fig 1.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Image in centre
ΕπεξεργασίαNote: Text does not wrap around centre-aligned images.
{{εικόνα | file = The Kinematics of Machinery Fig 2.jpg | width = 250px | align = center | cap = Fig. 2. }}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Image in centre without template
ΕπεξεργασίαAlternatively, don't use a template for this, just insert the image followed by the caption like this:
{{lorem ipsum}} [[File:The Kinematics of Machinery Fig 1.png|center|250px]] {{c|Fig.2}} {{lorem ipsum}}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Caution: divs break paragraphs
Επεξεργασία{{lorem ipsum}} {{εικόνα | file = The Kinematics of Machinery Fig 2.jpg | width = 250px | cap = {{smaller block|This will break the paragraph where the template is inserted.}} }} {{lorem ipsum}}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
This will break the paragraph where the template is inserted.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.