Difference between revisions of "Template:Portal box"

From OpenGL.org
Jump to: navigation, search
(First-pass of portal box.)
 
(Oops)
Line 3: Line 3:
  
 
* {{param|background}}: The background color for the main box. If not specified, there is no background color.
 
* {{param|background}}: The background color for the main box. If not specified, there is no background color.
* {{param|header-color}}: The color of the header box. If not specified, it has the same color as the background.
 
 
* {{param|border}}: The border color around the main box. If not specified, there is no border around the main box.
 
* {{param|border}}: The border color around the main box. If not specified, there is no border around the main box.
* {{param|header-border}}: The border color around the header box. If not specified, it has no border.
 
 
* {{param|header}}: The text for the header. If no text is specified, the box has no header.
 
* {{param|header}}: The text for the header. If no text is specified, the box has no header.
 +
** {{param|header-border}}: The border color around the header box. If not specified, it has no border.
 +
** {{param|header-color}}: The color of the header box. If not specified, it has the same color as the background.
 
* {{param|linked}}: The full page name of the content to transclude.
 
* {{param|linked}}: The full page name of the content to transclude.
  
 
[[Category:Portal Templates]]
 
[[Category:Portal Templates]]
 
</noinclude><includeonly>
 
</noinclude><includeonly>
<div class="portal-box" style{{=}}"{{ #if: {{{background|}}} | background-color: {{{background}}};|}} {{#if: {{{border|}}}|border-color: {{{border}}};|border-width: 0px;}}">{{#if: {{header|}}|<div class="portal-box-header" style{{=}}"">{{header}}</div>|}}
+
<div class="portal-box" style{{=}}"{{ #if: {{{background|}}} | background-color: {{{background}}};|}} {{#if: {{{border|}}}|border-color: {{{border}}};|border-width: 0px;}}">{{#if: {{header|}}|<div class="portal-box-header" style{{=}}"">{{{header}}}</div>|}}
 
<div class{{=}}"portal-box-interior">{{#if: {{{linked|}}}|{{{{{linked}}}}}|{{{1}}} }}</div>
 
<div class{{=}}"portal-box-interior">{{#if: {{{linked|}}}|{{{{{linked}}}}}|{{{1}}} }}</div>
 
</div></includeonly>
 
</div></includeonly>

Revision as of 22:35, 14 February 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 color of the header box. If not specified, it has the same color as the background.
  • linked​: The full page name of the content to transclude.