Template:Framework/doc: Difference between revisions
→Without "edit" link: Clean up wikitable |
Undid revision 1210274531 by Rodejong (talk). useful documentation and categories removed without explanation |
||
(20 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 = |
|||
|title = |
|||
|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) sets the width of the box, defaults to 100%. |
* '''width''': (optional) sets the width of the box, defaults to 100%. |
||
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. |
||
* '''logo_editlink''': (optional text [change] 'if none) image of the logo on the link. |
|||
* '''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 69: | 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 113: | Line 110: | ||
== Example == |
== Example == |
||
<syntaxhighlight lang="wikitext"> |
|||
<pre> |
|||
{{Framework |
{{Framework |
||
| width = 75% |
| width = 75% |
||
Line 121: | Line 118: | ||
{{Lorem ipsum}} |
{{Lorem ipsum}} |
||
| color = red |
| color = red |
||
| text_height = 300px |
|||
| logo = Nuvola camera.svg |
| logo = Nuvola camera.svg |
||
| logo_editlink = Nuvola apps kedit.png |
|||
| px = 25 |
| px = 25 |
||
| 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 = |
||
{{POTD wikipedia|float=left|title=yes|thumb=yes}} |
{{POTD wikipedia|float=left|title=yes|thumb=yes}} |
||
{{Lorem ipsum}} |
{{Lorem ipsum}} |
||
| color = red |
| color = red |
||
| text_height = 300px |
|||
| logo = Nuvola camera.svg |
| logo = Nuvola camera.svg |
||
| logo_editlnk = Nuvola apps kedit.png |
|||
| px = 25 |
| px = 25 |
||
| link = Template:Framework/doc |
| link = Template:Framework/doc |
||
Line 163: | Line 156: | ||
| style="vertical-align:top; 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 |
||
Line 176: | Line 169: | ||
| background = gray |
| background = gray |
||
| cartella = blu (darker) |
| cartella = blu (darker) |
||
| content = {{tlx|Framework |color{{=}}user |border{{=}}black |background{{=}}gray |cartella{{=}}blu |
| content = {{tlx|Framework |color{{=}}user |border{{=}}black |background{{=}}gray |cartella{{=}}blu}} |
||
}} |
}} |
||
|- |
|- |
||
Line 186: | Line 179: | ||
| cartella = blu (darker) |
| cartella = blu (darker) |
||
| link = template:Framework/Doc |
| link = template:Framework/Doc |
||
| content = {{tlx|Framework |color{{=}}user |border{{=}}black |background{{=}}gray |cartella{{=}}blu |
| content = {{tlx|Framework |color{{=}}user |border{{=}}black |background{{=}}gray |cartella{{=}}blu |link{{=}}/Doc}} |
||
}} |
}} |
||
|- |
|- |
||
Line 194: | 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/ |
| 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/ |
| 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/ |
| 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/ |
| 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/ |
| 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/ |
| 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/ |
| 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 220: | Line 214: | ||
|{{Framework |color=pink |title=title |content={{tlx|Framework|color{{=}}pink}} }} |
|{{Framework |color=pink |title=title |content={{tlx|Framework|color{{=}}pink}} }} |
||
|{{Framework |color=gray |title=title |content={{tlx|Framework|color{{=}}gray}}}} |
|{{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}} |
|||
* {{tl|Invert framework}} |
|||
* {{tl|Q-box}} |
|||
* {{tl|Filefolder}} |
|||
* {{tl|Filefolder noEdit}} |
|||
* {{tl|Finestra Home}} |
|||
<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}}