Template:Framework/doc: Difference between revisions
→Related Templates: Fix typo |
→Usage: Update usage instructions |
||
Line 12: | Line 12: | ||
<tt>'''|height ='''</tt>{{br}} |
<tt>'''|height ='''</tt>{{br}} |
||
<tt>'''|title ='''</tt>{{br}} |
<tt>'''|title ='''</tt>{{br}} |
||
<tt>'''|size ='''</tt>{{br}} |
|||
<tt>'''|color='''</tt>{{br}} |
<tt>'''|color='''</tt>{{br}} |
||
<tt>'''|border='''</tt>{{br}} |
<tt>'''|border='''</tt>{{br}} |
||
Line 28: | Line 27: | ||
<tt>'''<nowiki>}} </nowiki>'''</tt> </div> |
<tt>'''<nowiki>}} </nowiki>'''</tt> </div> |
||
| |
| |
||
* '''width''': (optional |
* '''width''': (optional) sets the width of the box, defaults to 100%. |
||
* '''height''': (optional, blank if none) sets the height of the box. |
* '''height''': (optional, blank if none) sets the height of the box. |
||
* '''title''': (optional, blank if none) Title of the frame. |
* '''title''': (optional, blank if none) Title of the frame. |
||
* '''size''': (optional) Width of the frame. |
|||
* '''color''': (optional) Used to choose one of the defined color sets. For custom sets, set color to ''user'' |
* '''color''': (optional) Used to choose one of the defined color sets. For custom sets, set color to ''user'' |
||
** '''border''': If a user defined color set is chosen, place a border color here. |
** '''border''': If a user defined color set is chosen, place a border color here. |
Revision as of 10:04, 30 April 2011
This is a documentation subpage for Template:Framework. It may contain usage information, categories and other content that is not part of the original template page. |
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
This template is based upon the original Italian version of template with added features imported from the French version. It is more versatile than the English version with more user defined parameters such as customizable images, formatting and colors.
Usage
{{Framework |
|
General guidelines & notes: | |
|
Defined color sets | ||||||||
Color name | Red | Orange | Yellow | Green | Blue | Violet | Gray | Pink |
Border color | Dark red #8B0000 |
Orange #FFA500 |
Gold #FFD700 |
Dark green #006400 |
Blue #0000FF |
Blue violet #8A2BE2 |
Dark gray #A9A9A9 |
Dark salmon #E9967A |
Background color | Salmon #FA8072 |
Gold #FFD700 |
Yellow #FFFF00 |
Light green #90EE90 |
Light blue #ADD8E6 |
Violet #EE82EE |
Light gray #D3D3D3 |
Light salmon #FA8072 |
Cartella images
There are over fifty defined "Cartella" images that can be used. When choosing an undefined image, just use the second part of the name in the |cartella field.
-
Cartella grigia.jpg
-
Cartella newblue.jpg
-
Cartella newred.jpg
-
Cartella newpurple.jpg
-
Cartella newpink.jpg
-
Cartella newgreen.jpg
-
Cartella newbrown.jpg
-
Cartella rossa.jpg
-
Cartella arancione.jpg
-
Cartella giallo.jpg
-
Cartella verde.jpg
-
Cartella blu.jpg
-
Cartella viola.jpg
-
Cartelle acadie.jpg
-
Cartella grigia.jpg.
Example
{{Framework | width = 75% | title = [[Template:Framework/doc | Image ]]... | content = {{POTD wikipedia |float=left |title=yes |thumb=yes}} {{Lorem ipsum}} | color = red | text_height = 300px | logo = Nuvola camera.svg | logo_editlink = Nuvola apps kedit.png | px = 25 | link = Template:Framework/doc }}
Image ...
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing 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. | ||
Other examples
Footer message | Footer image | Combined footer message & image | ||||||||||||
|
|
| ||||||||||||
User defined fields | ||||||||||||||
| ||||||||||||||
Different colors
Without "edit" link
|
|
| ||||||||||||
|
|
| ||||||||||||
|
|
This template is not recommended articles.
Related Templates
- {{Invert framework}}
- {{Q-box}}
- {{Filefolder}}
- {{Filefolder noEdit}}
- {{Finestra Home}}