Template:Portal box: Difference between revisions
Jump to navigation
Jump to search
(No fix needed.) |
(subheading box.) |
||
Line 7: | Line 7: | ||
** {{param|header-border}}: The border color around the header box. If not specified, it has no border. | ** {{param|header-border}}: The border color around the header box. If not specified, it has no border. | ||
** {{param|header-color}}: The background color of the header box. If not specified, it has the same color as the background. | ** {{param|header-color}}: The background color of the header box. If not specified, it has the same color as the background. | ||
* {{param|subheading}}: Text for a sub-heading. Will be enclosed by <nowiki>===</nowiki> marks. The text will be under the {{param|header}} and not within the header's box. | |||
* {{param|linked}}: The full page name of the content to transclude. | * {{param|linked}}: The full page name of the content to transclude. | ||
Line 16: | Line 17: | ||
|}}{{{header}}}</div>|}} | |}}{{{header}}}</div>|}} | ||
<div class{{=}}"portal-box-interior"> | <div class{{=}}"portal-box-interior"> | ||
{{#if: {{{subheading|}}}|==={{{subheading}}}===|}} | |||
{{#if: {{{linked|}}} | {{#if: {{{linked|}}} | ||
|{{{{{linked}}}}} | |{{{{{linked}}}}} | ||
|{{{1}}} }}</div> | |{{{1}}} }}</div> | ||
</div></includeonly> | </div></includeonly> |
Revision as of 00:02, 10 March 2013
Boxes for portal pages. The main text can either be inlined as the first parameter or transcluded from another page. The parameters are:
- background: The background color for the main box. If not specified, there is no background color.
- border: The border color around the main box. If not specified, there is no border around the main box.
- header: The text for the header. If no text is specified, the box has no header.
- header-border: The border color around the header box. If not specified, it has no border.
- header-color: The background color of the header box. If not specified, it has the same color as the background.
- subheading: Text for a sub-heading. Will be enclosed by === marks. The text will be under the header and not within the header's box.
- linked: The full page name of the content to transclude.