Jump to content

Template:Framework/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
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]]. It is more versatile than the [[Template:Filefolder|English version]] with more user defined parameters such as customizable images, formatting and colors.
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"
|-
|-
|width="33%" style="width: 20em; padding:0.5em 1em; border: 1px dotted gray; background: #EFE;"|
| 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}}
<tt>'''|width ='''</tt>{{br}}
|width =
<tt>'''|height ='''</tt>{{br}}
|height =
<tt>'''|title ='''</tt>{{br}}
|title =
<tt>'''|color='''</tt>{{br}}
|color =
<tt>'''|border='''</tt>{{br}}
|border =
<tt>'''|background='''</tt>{{br}}
|background =
<tt>'''|cartella='''{{br}}
|cartella =
<tt>'''|content='''</tt>{{br}}
|content =
<tt>'''|link ='''</tt>{{br}}
|link =
|logo =
<tt>'''|text_height ='''</tt> {{br}}
|px =
<tt>'''|logo ='''</tt>{{br}}
|height_px =
<tt>'''|logo_editlink ='''</tt>{{br}}
|footer =
<tt>'''|px ='''</tt>{{br}}
|footer_image =
<tt>'''|height_px ='''</tt>{{br}}
}}
<tt>'''|footer ='''</tt>{{br}}
</syntaxhighlight>
<tt>'''|footer_image ='''</tt>{{br}}
<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{{br}}#8B0000
| style="background:darkred; color:white;" |Dark red<br>#8B0000
| style="background:orange;" |Orange{{br}}#FFA500
| style="background:orange;" |Orange<br>#FFA500
| style="background:gold;" |Gold{{br}}#FFD700
| style="background:gold;" |Gold<br>#FFD700
| style="background:darkgreen; color:white;" |Dark green{{br}}#006400
| style="background:darkgreen; color:white;" |Dark green<br>#006400
| style="background:blue; color:white;" |Blue{{br}}#0000FF
| style="background:blue; color:white;" |Blue<br>#0000FF
| style="background:blueviolet;" |Blue violet{{br}}#8A2BE2
| style="background:blueviolet;" |Blue violet<br>#8A2BE2
| style="background:darkgray;" |Dark gray{{br}}#A9A9A9
| style="background:darkgray;" |Dark gray<br>#A9A9A9
| style="background:darksalmon;" |Dark salmon{{br}}#E9967A
| 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{{br}}#FA8072
| style="background:salmon" |Salmon<br>#FA8072
| style="background:gold;" |Gold{{br}}#FFD700
| style="background:gold;" |Gold<br>#FFD700
| style="background:yellow;" |Yellow{{br}}#FFFF00
| style="background:yellow;" |Yellow<br>#FFFF00
| style="background:lightgreen;" |Light green{{br}}#90EE90
| style="background:lightgreen;" |Light green<br>#90EE90
| style="background:lightblue;" |Light blue{{br}}#ADD8E6
| style="background:lightblue;" |Light blue<br>#ADD8E6
| style="background:violet;" |Violet{{br}}#EE82EE
| style="background:violet;" |Violet<br>#EE82EE
| style="background:lightgray;" |Light gray{{br}}#D3D3D3
| style="background:lightgray;" |Light gray<br>#D3D3D3
| style="background:lightsalmon" |Light salmon{{br}}#FA8072
| 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.{{br}}
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{{br}}|footer_image{{=}}image.gif}}
| 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 (darker)}}
| 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 (darker) |link{{=}}/Doc}}
| 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/Doc |content={{tlx|Framework|color{{=}}red|link{{=}}/Doc}}}}
| 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=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=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=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=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="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/Doc |content={{tlx|Framework|color{{=}}pink|link{{=}}/Doc}} }}
| 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=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.


== Related Templates ==
== See also ==
{{Window templates}}
* {{tl|Invert framework}}
* {{tl|Q-box}}
* {{tl|Filefolder}}
* {{tl|Filefolder noEdit}}
* {{tl|Finestra Home}}


<includeonly>
<includeonly>{{Sandbox other||
<!-- Categories and interwikis go here: -->
<!-- Categories go here -->
[[Category:Folder templates]]
[[ar:قالب:Filefolder]]
}}</includeonly>
[[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]]
</includeonly>

Latest revision as of 16:53, 29 February 2024

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 = 
}}
  • width: (optional) sets the width of the box, defaults to 100%.
  • height: (optional, blank if none) sets the height of the box.
  • title: (optional, blank if none) Title of the frame.
  • 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.
    • background: If a user defined color set is chosen, place a background color here.
    • cartella: If a user defined color set is chosen, place one of the defined cartella images here.
  • 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'_').
  • logo: (optional, if nothing xmag.png Crystal) picture of the logo.
  • px: (optional, if nothing 22px) size of the logo.
  • height_px: (optional, if nothing 21px) size of the logo.
  • footer: (optional) adds a message in the color band at the bottom of the box.
  • footer_image: (optional) allows you to add image in the bottom of the box, place one of the defined cartella footer images here.
General guidelines & notes:
  1. When adding images to the |cartella= and |footer_image= fields, do not include the namespace prefix (File:).
  2. When defining image sizes do not include the abbreviation for pixel (px}.
  3. User defined colors can be hex, RGB or a named HTML color.
  4. The gray option can be spelled either as gray or grey.
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 images

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

Example 2

{{Framework|footer=Example}}

 This is an example of a footer message

Example 3

{{Framework|footer_image=image.gif}}

Example 4

{{Framework|footer=Example
|footer_image=image.gif}}

 This is an example of a footer message
User defined fields

Example 5

{{Framework|color=user|border=black|background=gray|cartella=blu}}

Example 5

{{Framework|color=user|border=black|background=gray|cartella=blu|link=/Doc}}

Different colors

[edit]

title

{{Framework|color=red|link=/doc}}

title

{{Framework|color=orange|link=/doc}}

title

{{Framework|color=yellow|link=/doc}}

title

{{Framework|color=green|link=/doc}}

title

{{Framework|color=blue|link=/doc}}

title

{{Framework|color=violet|link=/doc}}

title

{{Framework|color=pink|link=/doc}}

title

{{Framework|color=gray|link=/doc}}

title

{{Framework|color=legacy|link=/doc}}

[edit]

title

{{Framework|color=red}}

title

{{Framework|color=orange}}

title

{{Framework|color=yellow}}

title

{{Framework|color=green}}

title

{{Framework|color=blue}}

title

{{Framework|color=violet}}

title

{{Framework|color=pink}}

title

{{Framework|color=gray}}

title

{{Framework|color=legacy}}

This template is not recommended for articles.

See also

[edit]

"Window" templates

[edit]

"Folder" templates

[edit]