Difference between revisions of "Template:Portal box"

From OpenGL Wiki
Jump to navigation Jump to search
(Adding edit link for subheadings.)
(VTE usage in portal boxes.)
 
(One intermediate revision by the same user not shown)
Line 14: Line 14:
 
<div class="portal-box" style{{=}}"{{#if: {{{background|}}} | background-color: {{{background}}};|}} {{#if: {{{border|}}}|border-color: {{{border}}};|border-width: 0px;}}">
 
<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{{=}}"{{#if: {{{header-color|}}} | background-color: {{{header-color}}};|}} {{#if: {{{header-border|}}}|border-color: {{{header-border}}};|border-width: 0px; {{#if: {{{border|}}}|border-bottom-width: 1px; border-color: {{{border}}}|}}}}">
 
{{#if: {{{header|}}}|<div class="portal-box-header" style{{=}}"{{#if: {{{header-color|}}} | background-color: {{{header-color}}};|}} {{#if: {{{header-border|}}}|border-color: {{{header-border}}};|border-width: 0px; {{#if: {{{border|}}}|border-bottom-width: 1px; border-color: {{{border}}}|}}}}">
{{#if: {{{linked|}}}| <div class="portal-box-header-edit" style="float: right;">[{{fullurl:{{{linked}}}|action=edit}} edit]</div>
+
{{#if: {{{linked|}}}| <div class="portal-box-header-edit" style="float: right;">{{view talk edit|{{{linked}}}}}</div>
 
|}}{{{header}}}</div>|}}
 
|}}{{{header}}}</div>|}}
 
<div class{{=}}"portal-box-interior">
 
<div class{{=}}"portal-box-interior">
 
{{#if: {{{subheading|}}}|==={{{subheading}}}===
 
{{#if: {{{subheading|}}}|==={{{subheading}}}===
{{#if: {{{linked|}}}|<div class="portal-box-header-edit" style="float: right;">[{{fullurl:{{{linked}}}|action=edit}} edit]</div>|
+
{{#if: {{{linked|}}}|<div class="portal-box-header-edit" style="float: right;">{{view talk edit|{{{linked}}}}}</div>|}}|
 
|}}
 
|}}
 
{{#if: {{{linked|}}}
 
{{#if: {{{linked|}}}

Latest revision as of 20:18, 25 July 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.