Difference between revisions of "Template:Food projects/doc"
Jump to navigation
Jump to search
imported>Willscrlt (→Syntax: Documented the new parameter I added (title)) |
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
== Usage == | == Usage == | ||
| + | |||
=== Syntax === | === Syntax === | ||
<pre width=66.6%> | <pre width=66.6%> | ||
| Line 13: | Line 14: | ||
</pre> | </pre> | ||
| − | Add the template to the side panel. The colors of the heading box can be set via hex (#RRGGBB) or by name (Red, etc). If left undefined, they will default to gray for the border and light blue for the background. | + | Add the template to the side panel. The colors of the heading box can be set via hex (#RRGGBB) or by name (Red, etc.). If left undefined, they will default to gray for the border and light blue for the background. |
=== Example === | === Example === | ||
| Line 30: | Line 31: | ||
<pre width=50%> | <pre width=50%> | ||
{{Food projects | {{Food projects | ||
| + | |title=<nowiki>[[WP:F&D|Food & Drink]] WikiProjects</nowiki> | ||
|border=red | |border=red | ||
|bgcolor=pink | |bgcolor=pink | ||
| Line 36: | Line 38: | ||
Will yield this: | Will yield this: | ||
| − | {{Food projects |border=red |bgcolor=pink}} | + | {{Food projects |title=[[WP:F&D|Food & Drink]] WikiProjects |border=red |bgcolor=pink}} |
== See also == | == See also == | ||
| Line 42: | Line 44: | ||
{{Project template list}} | {{Project template list}} | ||
| − | <includeonly> | + | <includeonly>{{Sandbox other|| |
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
[[Category:WikiProject Food and drink templates|{{PAGENAME}}]] | [[Category:WikiProject Food and drink templates|{{PAGENAME}}]] | ||
| − | </includeonly> | + | }}</includeonly> |
Latest revision as of 04:56, 25 April 2020
| This is a documentation subpage for Template:Food projects. It contains 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. |
Contents
Usage
Syntax
{{Food projects
| title = <!--- Override the default title for the box where the name might be ambiguous -->
| border = <!--- Sets the border color on the box --->
| bgcolor = <!--- Sets the background color on the box --->
}}
Add the template to the side panel. The colors of the heading box can be set via hex (#RRGGBB) or by name (Red, etc.). If left undefined, they will default to gray for the border and light blue for the background.
Example
- Hex -
{{Food projects
|border=#CC9000
|bgcolor=#F3DE94
}}
Will yield this:
| Related WikiProjects | |||
| Parent project: |
|||
| Child projects: |
|||
| Related projects: |
|||
| Task forces: |
| ||
| External projects: |
|||
- Color -
{{Food projects
|title=[[WP:F&D|Food & Drink]] WikiProjects
|border=red
|bgcolor=pink
}}
Will yield this:
| Food & Drink WikiProjects | |||
| Parent project: |
|||
| Child projects: |
|||
| Related projects: |
|||
| Task forces: |
| ||
| External projects: |
|||
See also
- {{Food portals}}
Template:Project template list