Template:Portalbox: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly><div style="text-align:left; vertical-align: top; border:1px solid {{{bordercolor|}}}; background-color: #f9f9f9; padding: 0.1em 0.1em 0.1em 0.1em; margin: 0.5em...") |
m (Text replacement - "0.6em" to "0.5em") |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><div style="text-align:left; vertical-align: top; border:1px solid {{{bordercolor|}}}; background-color: #f9f9f9; padding: 0.1em 0.1em 0.1em 0.1em; margin: 0.5em 0em 0em 0em;"><div style="position: relative; text-align: left; margin-bottom: 0px; border-bottom: none; {{#if: {{{title|}}}|border: 0px solid #f9f9f9; background-color:{{{titlebackground|}}}; padding: 0.2em 1em 0.2em .5em; font-weight: bold; font-size: 110%;}}">{{#if: {{{link|}}}|<span class="mw-editsection" style="position: absolute; top: 1px; right: 1px; font-size:70%; font-weight: normal; color:{{{titleforeground|}}};">[{{fullurl:{{{link}}}|action=edit}} Edit]</span>}}{{#if: {{{title|}}}|<span style="font-size:110%; font-weight:bold; border: none; margin: 0; padding:0; color:{{{titleforeground|}}};">{{{title}}}</span>}} | <includeonly><div style="text-align:left; vertical-align: top; border:1px solid {{{bordercolor|}}}; background-color: #f9f9f9; padding: 0.1em 0.1em 0.1em 0.1em; margin: 0.5em 0em 0em 0em;"><div style="position: relative; text-align: left; margin-bottom: 0px; border-bottom: none; {{#if: {{{title|}}}|border: 0px solid #f9f9f9; background-color:{{{titlebackground|}}}; padding: 0.2em 1em 0.2em .5em; font-weight: bold; font-size: 110%;}}">{{#if: {{{link|}}}|<span class="mw-editsection" style="position: absolute; top: 1px; right: 1px; font-size:70%; font-weight: normal; color:{{{titleforeground|}}};">[{{fullurl:{{{link}}}|action=edit}} Edit]</span>}}{{#if: {{{title|}}}|<span style="font-size:110%; font-weight:bold; border: none; margin: 0; padding:0; color:{{{titleforeground|}}};">{{{title}}}</span>}} | ||
</div> | </div> | ||
<div style="padding: 0. | <div style="padding: 0.5em 0.5em 0.5em 0.5em; background-color:{{{boxbackground|}}};{{#if: {{{height|}}}| height:{{{height|}}}; overflow-y:auto;}}"> | ||
{{#if: {{{link|}}}|{{{{{link}}}}}|{{{inline}}}}} | {{#if: {{{link|}}}|{{{{{link}}}}}|{{{inline}}}}} | ||
</div> | </div> | ||
</div></includeonly> | </div></includeonly><noinclude> | ||
=== Variables === | |||
* ''title'' is the title of the box as displayed at the top. | |||
* ''link'' is the address of the page which holds the content. It is also editable by clicking on the link ''Edit''. | |||
* ''titleforeground'' is the colour of the title text. | |||
* ''titlebackground'' is the background colour of the title. | |||
* ''boxbackground'' is the background colour of the whole box. | |||
* ''bordercolor'' is the colour of the frame. | |||
* ''inline'' is the content of the box, if no link is given. | |||
* ''height'' is the exact height of the content area (e.g. <code>200px</code>). If this is exceeded, a scrollbar is displayed.</noinclude> | |||
Latest revision as of 10:41, 14 March 2024
Variables
- title is the title of the box as displayed at the top.
- link is the address of the page which holds the content. It is also editable by clicking on the link Edit.
- titleforeground is the colour of the title text.
- titlebackground is the background colour of the title.
- boxbackground is the background colour of the whole box.
- bordercolor is the colour of the frame.
- inline is the content of the box, if no link is given.
- height is the exact height of the content area (e.g.
200px). If this is exceeded, a scrollbar is displayed.