Template:Topics Sidebar: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
m (Pipe correction)
(General improvements and simplification)
Line 1: Line 1:
<includeonly>{|border="0" cellspacing="0" width="175px" align="right" class="whitelinks"
<includeonly>{|border="0" cellspacing="0" width="175px" align="right" class="whitelinks"
! style="font-size: 120%; background{{#if: {{{GRADIENT|}}}|-image: {{{GRADIENT|}}}|-color: {{{COLOR|#A61E22}}}}}; border-radius: 0px 20px 0px 0px;"| {{ColoredLink|{{{HEADER|Sidebar Header}}}|white}}
! style="font-size: 120%; background: {{{COLOR|#A61E22}}}; border-radius: 0px 20px 0px 0px;"| {{ColoredLink|{{{HEADER|Nav Header}}}|white}}
|- style="background-color: #363940;"
{{#if:{{{IMAGE|}}}|{{!}}- style="background-color: #363940;"
{{#if:{{{IMAGE|}}}|{{!}}[[File:{{{IMAGE|}}}|175px|link=]]}}
{{!}}[[File:{{{IMAGE|}}}|175px|link=]]}}
|- style="background-color: #363940;"
|- style="background-color: #363940;"
|
|
{{{CONTENT|}}}
{{{CONTENT|}}}
|- style="background-color: #363940;"
{{#if:{{{FOOTER|}}}|{{!}}- style="background-color: #363940;"
{{#if:{{{FOOTER|}}}|{{!}} align="center" style="color: white;"{{!}}{{{FOOTER|}}}}}
{{!}} align="center" style="color: white;"{{!}}{{{FOOTER|}}}}}
|- style="background-color: #363940;"
|- style="background-color: #363940;"
| align="right" class="plainlinks"|[[Template:{{{TEMPLATE|}}}|<span title="View this template">V</span>]] [{{fullurl:Template:{{{TEMPLATE|}}}|action=edit}} <span title="Edit this template" style="color: white;">E</span>]
| align="right" class="plainlinks"|[[Template:{{{TEMPLATE|}}}|<span title="View this template">V</span>]] [{{fullurl:Template:{{{TEMPLATE|}}}|action=edit}} <span title="Edit this template" style="color: white;">E</span>]
Line 17: Line 17:
|HEADER=
|HEADER=
|IMAGE= <!-- Optional. Will hide the row entirely if not given. -->
|IMAGE= <!-- Optional. Will hide the row entirely if not given. -->
|GRADIENT= <!-- Only ONE of GRADIENT or COLOR is required. Use COLOR for a solid color, and GRADIENT for a gradient of some sort. Only affects the colored top. Defaults to red if both are absent. -->
|COLOR= <!-- Both solid colors and gradients may be used. -->
|COLOR=
|FOOTER=
|FOOTER=
|TEMPLATE= <!-- Template name. Used for the view and edit links at the bottom right. -->
|TEMPLATE= <!-- Template name. Used for the view and edit links at the bottom right. -->

Revision as of 07:08, 12 June 2021

Template description pending.

Template usage:

{{Topics Sidebar
|HEADER=
|IMAGE= <!-- Optional. Will hide the row entirely if not given. -->
|COLOR= <!-- Both solid colors and gradients may be used. -->
|FOOTER=
|TEMPLATE= <!-- Template name. Used for the view and edit links at the bottom right. -->
|CONTENT=
<!-- Table templates and usage go here -->
}}