Template:Framework/doc: Difference between revisions
→Different colors: Tweak again |
Undid revision 1210274531 by Rodejong (talk). useful documentation and categories removed without explanation |
||
(39 intermediate revisions by 8 users not shown) | |||
Line 2: | Line 2: | ||
{{esoteric}} |
{{esoteric}} |
||
<!-- Categories and interwikis go at the bottom of this page. --> |
<!-- Categories and interwikis go at the bottom of this page. --> |
||
This template is based upon the original [[:It:Template:Cartella|Italian version]] of template with added features imported from the [[:Fr:Modèle:Cadre1|French version]] |
This template is based upon the original [[:It:Template:Cartella|Italian version]] of template with added features imported from the [[:Fr:Modèle:Cadre1|French version]]. |
||
== Usage == |
== Usage == |
||
{|style="background: none" width="100%" cellspacing="8" cellpadding="0" |
{|style="background: none" width="100%" cellspacing="8" cellpadding="0" |
||
|- |
|- |
||
| |
| style="width: 20em; padding:0.5em 1em; border: 1px dotted gray; background: #EFE;"| |
||
<syntaxhighlight lang="wikitext" style="background:#EFE; font-weight:bold; width: 20em; overflow:auto">{{Framework |
|||
<tt>'''{{<nowiki>Framework</nowiki>'''</tt>{{br}} |
|||
|width = |
|||
|height = |
|||
<tt>'''|title ='''</tt>{{br}} |
|||
|title = |
|||
<tt>'''|size ='''</tt>{{br}} |
|||
|color = |
|||
|border = |
|||
|background = |
|||
|cartella = |
|||
|content = |
|||
|link = |
|||
|logo = |
|||
<tt>'''|text_height ='''</tt> {{br}} |
|||
|px = |
|||
<tt>'''|logo ='''</tt>{{br}} |
|||
|height_px = |
|||
<tt>'''|logo_editlink ='''</tt>{{br}} |
|||
|footer = |
|||
<tt>'''|px ='''</tt>{{br}} |
|||
⚫ | |||
<tt>'''|height_px ='''</tt>{{br}} |
|||
}} |
|||
<tt>'''|footer ='''</tt>{{br}} |
|||
</syntaxhighlight> |
|||
⚫ | |||
<tt>'''<nowiki>}} </nowiki>'''</tt> </div> |
|||
| |
| |
||
* '''width''': (optional |
* '''width''': (optional) sets the width of the box, defaults to 100%. |
||
⚫ | |||
* '''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. |
||
Line 36: | Line 35: | ||
* '''content''': Is used to insert text and pictures into the body frame. |
* '''content''': Is used to insert text and pictures into the body frame. |
||
* '''link''': (optional, blank if none) name of the item to modify (replace spaces with'_'). |
* '''link''': (optional, blank if none) name of the item to modify (replace spaces with'_'). |
||
* '''text_height''': (Optional, no lift if anything) causes the frame height, a lift is displayed if the text requires that exceed this height. |
|||
* '''logo''': (optional, if nothing xmag.png Crystal) picture of the logo. |
* '''logo''': (optional, if nothing xmag.png Crystal) picture of the logo. |
||
⚫ | |||
* '''px''': (optional, if nothing 22px) size of the logo. |
* '''px''': (optional, if nothing 22px) size of the logo. |
||
* '''height_px''': (optional, if nothing 21px) size of the logo. |
* '''height_px''': (optional, if nothing 21px) size of the logo. |
||
Line 44: | Line 41: | ||
* '''footer_image''': (optional) allows you to add image in the bottom of the box, place one of the defined cartella footer images here. |
* '''footer_image''': (optional) allows you to add image in the bottom of the box, place one of the defined cartella footer images here. |
||
|- |
|- |
||
| style="font-weight:bold;" |General guidelines: |
| style="font-weight:bold;" |General guidelines & notes: |
||
|- |
|- |
||
| colspan="2" | |
| colspan="2" | |
||
Line 50: | Line 47: | ||
# When defining image sizes do not include the abbreviation for pixel (''px''}. |
# When defining image sizes do not include the abbreviation for pixel (''px''}. |
||
# User defined colors can be hex, RGB or a named HTML color. |
# User defined colors can be hex, RGB or a named HTML color. |
||
# The gray option can be spelled either as ''gray'' or ''grey''. |
|||
|- |
|- |
||
|} |
|} |
||
Line 68: | Line 66: | ||
|- style="text-align:center;" |
|- style="text-align:center;" |
||
| style="text-align:left; font-weight:bold; height:5em;" | Border color |
| style="text-align:left; font-weight:bold; height:5em;" | Border color |
||
| style="background:darkred; color:white;" |Dark red |
| style="background:darkred; color:white;" |Dark red<br>#8B0000 |
||
| style="background:orange;" |Orange |
| style="background:orange;" |Orange<br>#FFA500 |
||
| style="background:gold;" |Gold |
| style="background:gold;" |Gold<br>#FFD700 |
||
| style="background:darkgreen; color:white;" |Dark green |
| style="background:darkgreen; color:white;" |Dark green<br>#006400 |
||
| style="background:blue; color:white;" |Blue |
| style="background:blue; color:white;" |Blue<br>#0000FF |
||
| style="background:blueviolet;" |Blue violet |
| style="background:blueviolet;" |Blue violet<br>#8A2BE2 |
||
| style="background:darkgray;" |Dark gray |
| style="background:darkgray;" |Dark gray<br>#A9A9A9 |
||
| style="background:darksalmon;" |Dark salmon |
| style="background:darksalmon;" |Dark salmon<br>#E9967A |
||
|- style="text-align:center;" |
|- style="text-align:center;" |
||
| style="text-align:left; font-weight:bold; height:5em;" | Background color |
| style="text-align:left; font-weight:bold; height:5em;" | Background color |
||
| style="background:salmon" |Salmon |
| style="background:salmon" |Salmon<br>#FA8072 |
||
| style="background:gold;" |Gold |
| style="background:gold;" |Gold<br>#FFD700 |
||
| style="background:yellow;" |Yellow |
| style="background:yellow;" |Yellow<br>#FFFF00 |
||
| style="background:lightgreen;" |Light green |
| style="background:lightgreen;" |Light green<br>#90EE90 |
||
| style="background:lightblue;" |Light blue |
| style="background:lightblue;" |Light blue<br>#ADD8E6 |
||
| style="background:violet;" |Violet |
| style="background:violet;" |Violet<br>#EE82EE |
||
| style="background:lightgray;" |Light gray |
| style="background:lightgray;" |Light gray<br>#D3D3D3 |
||
| style="background:lightsalmon" |Light salmon |
| style="background:lightsalmon" |Light salmon<br>#FA8072 |
||
|- |
|- |
||
|} |
|} |
||
=== Cartella images === |
=== Cartella images === |
||
{{Commons cat|Cartella}} |
{{Commons cat|Cartella}} |
||
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. |
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.<br> |
||
{{divhide|Cartella images}}<gallery heights="30px"> |
{{divhide|Cartella images}}<gallery heights="30px"> |
||
<gallery> |
<gallery> |
||
Line 112: | Line 110: | ||
== Example == |
== Example == |
||
<syntaxhighlight lang="wikitext"> |
|||
<pre> |
|||
{{Framework |
{{Framework |
||
| width = 75% |
| width = 75% |
||
| title = [[Template:Framework/doc | Image ]]... |
| title = [[Template:Framework/doc | Image ]]... |
||
| content = |
| content = |
||
Sample image: |
|||
{{POTD wikipedia |float=left |title=yes |thumb=yes}} |
{{POTD wikipedia |float=left |title=yes |thumb=yes}} |
||
{{Lorem ipsum}} |
{{Lorem ipsum}} |
||
| color = red |
| color = red |
||
| logo = Nuvola camera.svg |
|||
| text_heigth = 300px |
|||
| |
| px = 25 |
||
| logo_editlink = Nuvola apps kedit.png |
|||
⚫ | |||
| link = Template:Framework/doc |
| link = Template:Framework/doc |
||
}} |
}} |
||
</syntaxhighlight> |
|||
</pre> |
|||
{{Framework |
{{Framework |
||
| width = 75% |
| width = 75% |
||
| title = [[Template:Framework/doc | Image |
| title = [[Template:Framework/doc | Image]]... |
||
| content = |
| content = |
||
Sample image: |
|||
{{POTD wikipedia|float=left|title=yes|thumb=yes}} |
{{POTD wikipedia|float=left|title=yes|thumb=yes}} |
||
{{Lorem ipsum}} |
{{Lorem ipsum}} |
||
| color = red |
| color = red |
||
| logo = Nuvola camera.svg |
|||
| text_heigth = 300px |
|||
| |
| px = 25 |
||
| logo_editlien = Nuvola apps kedit.png |
|||
⚫ | |||
| link = Template:Framework/doc |
| link = Template:Framework/doc |
||
}} |
}} |
||
Line 146: | Line 138: | ||
=== Other examples === |
=== Other examples === |
||
{| style="background: none;" cellspacing="8" cellpadding="0" |
{| style="background: none; width:66.6%;" cellspacing="8" cellpadding="0" |
||
|- |
|- |
||
|Footer message |
| Footer message |
||
|Footer image |
| Footer image |
||
|Combined footer message & image |
| Combined footer message & image |
||
|- |
|- |
||
| style="width:33.3%;" |{{Framework |
| style="vertical-align:top; width:33.3%;" |{{Framework |
||
| title = Example 2 |
| title = Example 2 |
||
| content = {{tlx|Framework |footer{{=}}Example}} |
| content = {{tlx|Framework |footer{{=}}Example}} |
||
| footer = This is an example of a footer message |
| footer = This is an example of a footer message |
||
}} |
}} |
||
| style="width:33.3%;" |{{Framework |
| style="vertical-align:top; width:33.3%;" |{{Framework |
||
| title = Example 3 |
| title = Example 3 |
||
| content = {{tlx|Framework |footer_image{{=}}image.gif}} |
| content = {{tlx|Framework |footer_image{{=}}image.gif}} |
||
| footer_image = NeveFooter.gif |
| footer_image = NeveFooter.gif |
||
}} |
}} |
||
| style="width:33.3%;" |{{Framework |
| style="vertical-align:top; width:33.3%;" |{{Framework |
||
| title = Example 4 |
| title = Example 4 |
||
| content = {{tlx|Framework |footer{{=}}Example |
| content = {{tlx|Framework |footer{{=}}Example<br>|footer_image{{=}}image.gif}} |
||
| footer = This is an example of a footer message |
| footer = This is an example of a footer message |
||
| footer_image = NeveFooter.gif |
| footer_image = NeveFooter.gif |
||
}} |
|||
|- |
|||
| User defined fields |
|||
|- |
|||
| style="vertical-align:top;" colspan="3" |{{Framework |
|||
| title = Example 5 |
|||
⚫ | |||
| border = black |
|||
| background = gray |
|||
| cartella = blu (darker) |
|||
| content = {{tlx|Framework |color{{=}}user |border{{=}}black |background{{=}}gray |cartella{{=}}blu}} |
|||
}} |
|||
|- |
|||
| style="vertical-align:top;" colspan="3" |{{Framework |
|||
| title = Example 5 |
|||
⚫ | |||
| border = black |
|||
| background = gray |
|||
| cartella = blu (darker) |
|||
| link = template:Framework/Doc |
|||
| content = {{tlx|Framework |color{{=}}user |border{{=}}black |background{{=}}gray |cartella{{=}}blu |link{{=}}/Doc}} |
|||
}} |
}} |
||
|- |
|- |
||
Line 174: | Line 187: | ||
{| style="background: none; width:66.6%;" cellspacing="8" cellpadding="0" |
{| style="background: none; width:66.6%;" cellspacing="8" cellpadding="0" |
||
|- |
|- |
||
| |
| style="width:33.3%;" |{{Framework |color=red |title=title |link=template:Framework/doc |content={{tlx|Framework|color{{=}}red|link{{=}}/doc}}}} |
||
| |
| style="width:33.3%;" |{{Framework |color=orange |title=title |link=template:Framework/doc |content={{tlx|Framework|color{{=}}orange|link{{=}}/doc}}}} |
||
| |
| style="width:33.3%;" |{{Framework |color=yellow |title=title |link=template:Framework/doc |content={{tlx|Framework|color{{=}}yellow|link{{=}}/doc}}}} |
||
|- |
|- |
||
| |
| style="width:33.3%;" |{{Framework |color=green |title=title |link=template:Framework/doc |content={{tlx|Framework|color{{=}}green|link{{=}}/doc}} }} |
||
| |
| style="width:33.3%;" |{{Framework |color=blue |title=title |link=template:Framework/doc |content={{tlx|Framework|color{{=}}blue|link{{=}}/doc}} }} |
||
| |
| style="width:33.3%;" |{{Framework |color=violet |title=title |link=template:Framework/doc |content={{tlx|Framework|color{{=}}violet|link{{=}}/doc}}}} |
||
|- |
|- |
||
| style="vertical-align:top; width:33%;" |{{Framework |color=pink |title=title |link=template:Framework/ |
| style="vertical-align:top; width:33%;" |{{Framework |color=pink |title=title |link=template:Framework/doc |content={{tlx|Framework|color{{=}}pink|link{{=}}/doc}} }} |
||
| |
| style="width:33.3%;" |{{Framework |color=gray |title=title |link=template:Framework/doc |content={{tlx|Framework|color{{=}}gray|link{{=}}/doc}}}} |
||
| style="width:33.3%;" |{{Framework |color=legacy |title=title |link=template:Framework/doc |content={{tlx|Framework|color{{=}}legacy|link{{=}}/doc}}}} |
|||
|- |
|- |
||
|} |
|} |
||
Line 190: | Line 204: | ||
{| style="background: none; width:66.6%; vertical-align:top;" cellspacing="8" cellpadding="0" |
{| style="background: none; width:66.6%; vertical-align:top;" cellspacing="8" cellpadding="0" |
||
|- |
|- |
||
| |
|style="width:33.3%;"|{{Framework |color=red |title=title |content={{tlx|Framework|color{{=}}red}}}} |
||
| |
|style="width:33.3%;"|{{Framework |color=orange |title=title |content={{tlx|Framework|color{{=}}orange}}}} |
||
| |
|style="width:33.3%;"|{{Framework |color=yellow |title=title |content={{tlx|Framework|color{{=}}yellow}}}} |
||
|- |
|- |
||
|{{Framework |color=green |title=title |content={{tlx|Framework|color{{=}}green}} }} |
|||
|{{Framework |color=blue |title=title |content={{tlx|Framework|color{{=}}blue}} }} |
|||
|{{Framework |color=violet |title=title |content={{tlx|Framework|color{{=}}violet}}}} |
|||
|- |
|- |
||
|{{Framework |color=pink |title=title |content={{tlx|Framework|color{{=}}pink}} }} |
|||
|{{Framework |color=gray |title=title |content={{tlx|Framework|color{{=}}gray}}}} |
|||
|{{Framework |color=legacy |title=title |content={{tlx|Framework|color{{=}}legacy}}}} |
|||
|- |
|- |
||
|} |
|} |
||
This template is not recommended articles. |
This template is not recommended for articles. |
||
== |
== See also == |
||
{{Window templates}} |
|||
*[[Template:Q-box]] |
|||
*[[Template:Filefolder]] |
|||
*[[Template:Filefolder noEdit]] |
|||
*[[Template:FinestraHome]] |
|||
<includeonly> |
<includeonly>{{Sandbox other|| |
||
<!-- Categories |
<!-- Categories go here --> |
||
[[Category:Folder templates]] |
|||
[[ar:قالب:Filefolder]] |
|||
⚫ | |||
[[es:Plantilla:Cuadro]] |
|||
[[fi:Malline:Kehyslaatikko]] |
|||
[[fr:Modèle:Cadre1]] |
|||
[[hu:Sablon:Dossziékeret]] |
|||
[[it:Template:Cartella]] |
|||
[[nl:Sjabloon:Cartello]] |
|||
[[pt:Predefinição:Quadro]] |
|||
[[th:แม่แบบ:กล่องแฟ้ม]] |
|||
[[ru:Шаблон:Cartella]] |
|||
⚫ |
Latest revision as of 16:53, 29 February 2024
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.
Usage
[edit]
{{Framework
|width =
|height =
|title =
|color =
|border =
|background =
|cartella =
|content =
|link =
|logo =
|px =
|height_px =
|footer =
|footer_image =
}}
|
|
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
[edit]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
[edit]{{Framework
| width = 75%
| title = [[Template:Framework/doc | Image ]]...
| content =
{{POTD wikipedia |float=left |title=yes |thumb=yes}}
{{Lorem ipsum}}
| color = red
| logo = Nuvola camera.svg
| 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
[edit]Footer message | Footer image | Combined footer message & image | ||||||||||||
|
|
| ||||||||||||
User defined fields | ||||||||||||||
| ||||||||||||||
Different colors
[edit]Without "edit" link
[edit]
|
|
| ||||||||||||
|
|
| ||||||||||||
|
|
|
This template is not recommended for articles.
See also
[edit]"Window" templates
[edit]- {{Window}}
- {{Window home}}
"Folder" templates
[edit]- {{Framework}}
- {{Invert framework}}
- {{Q-box}}