Template:Topics Sidebar: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
m (Correction of parameter issue)
m (Fixing color (again))
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{|border="0" cellspacing="0" width="175px" align="right" class="whitelinks"
<includeonly>{|border="0" cellspacing="0" width="350px" 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: {{#if:{{{COLOR|}}}|<nowiki/>{{{COLOR}}}|<nowiki/>#A61E22}}; border-radius: 0px 20px 0px 0px; color: white;"| {{#if: {{{HEADER|}}}|{{ColoredLink|{{{HEADER|}}}|white}}|Nav Header}}
|- style="background-color: #363940;"
{{#if:{{{IMAGE|}}}|{{!}}- style="background-color: #363940;"
{{#if:{{{IMAGE|}}}|{{!}}[[File:{{{IMAGE|}}}|175px|link=]]}}
{{!}}[[File:{{{IMAGE|}}}|350px|link=]]}}
|- style="background-color: #363940;"
{{#if: {{{CONTENT|}}}|{{!}}- 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. Defaults to red if omitted. -->
|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. -->
|CONTENT=
|CONTENT=
<!-- Table templates and usage go here -->
{{Topics Collapsible Table|TITLE=Title for section 1|First row|2nd row|3rd row|[[Links are also supported]]}}
{{Topics Collapsible Table|TITLE=Another section table|You can|have|multiple|tables and topics|[[That may or may not be links]]}}
<!-- And so on -->
}}
}}
</pre>
</pre>
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 09:00, 14 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. Defaults to red if omitted. -->
|FOOTER=
|TEMPLATE= <!-- Template name. Used for the view and edit links at the bottom right. -->
|CONTENT=
{{Topics Collapsible Table|TITLE=Title for section 1|First row|2nd row|3rd row|[[Links are also supported]]}}
{{Topics Collapsible Table|TITLE=Another section table|You can|have|multiple|tables and topics|[[That may or may not be links]]}}
<!-- And so on -->
}}