Template:Project page header/doc: Difference between revisions

Content deleted Content added
m Copy edit - add explicit directions
Undid revision 1283042064 by 69.197.192.89 (talk)
 
(14 intermediate revisions by 9 users not shown)
Line 1:
{{Documentation subpage}}
{{esoteric}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
This is thea page header template for the WikiProject Food and DrinkWikiProjects. It is configured with several variables (or will be) to format it to do do different things.
 
== Usage ==
=== Syntax ===
<syntaxhighlight lang="wikitext">
{{Project page header
|Heading name
|image = <!-- Required, set the image to be used in the banner. the "File:" prefix is not needed-->
|image_size = <!-- changes the image size, defaults to 100px. The "px" is not needed -->
|project = <!-- Required, set the name of the project -->
|shortcut = <!-- places a standard shortcut box on the right side of the box -->
|border = <!-- sets border color, defaults to gray. -->
|bgcolor = <!-- sets background color, defaults to lightblue. -->
}}
</syntaxhighlight>
 
=== Simple usage ===
To add a heading below the banner, use the following code:{{-}}<br>
<code>{{temt|Project page header |image=Foodlogo2.svg |project=Food & Drink}}</code>
 
Line 12 ⟶ 26:
 
=== Headings ===
To add a heading below the banner, use the following code:{{-}}<br>
<code>{{temt|Project page header|Heading name}}</code>
 
Which will generate:
{{Project page header |Heading name |image=Foodlogo2.svg |project=Food & Drink}}
 
=== Shortcut ===
Line 24 ⟶ 38:
Which will generate:
{{Project page header |image=Foodlogo2.svg |project=Food & Drink |shortcut=wp:food}}
 
=== Customization ===
There are several variables that can be used to customize this template.
 
== See also ==
{{Project template list}}
<includeonly>
<!-- Categories go here, and interwikis go in Wikidata -->
 
<includeonly>{{Sandbox other||
 
<!-- Categories go here, and interwikis go in Wikidata -->
</includeonly>
[[Category:Generic WikiProject templates]]
}}</includeonly>