Difference between revisions of "Template:ShaderInfobox"

From RRe36's Project Wiki
Jump to navigation Jump to search
Line 14: Line 14:
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude>
 
</noinclude>
<includeonly>
+
  <div class="infobox float-right" id="shaderInfobox" summary="Shaderpack Infobox" style="border:1px solid lightsteelblue; padding:5px; width:25em; margin:0 0 0.5em 1em; font-size:85%; background:#F9F9F9;">
<table>
+
    <div style="background:lightsteelblue; margin-bottom:2px; text-align:center; font-size:118%; font-weight:bold; width:100%;">{{PAGENAME}}</div>
<tr><td colspan="2">{{PAGENAME}}</td></tr>
+
{{#if|exist| {{BannerImage}} | <tr><td colspan="2"><img src="{{{BannerImage|}}}" alt="{{PAGENAME}} Banner"></tr> | }}
+
{| style="width:100%; margin:0; text-align:left;"
<tr><td>Project Page</td><td>{{{ProjectPage|}}}</td></tr>
+
</table>
+
|-
 +
!colspan="2"| {{#if:{{{BannerImage|}}} | {{{BannerImage}}} }}
 +
 +
|-
 +
!colspan="2"| {{#if:{{{ProjectPage|}}} | Project Page {{!!}} {{{ProjectPage}}} }}
 +
 +
|-
 +
!colspan="2"| {{#if:{{{LatestVersion|}}} | Latest Version {{!!}} {{{LatestVersion}}} }}
 +
 +
|-
 +
!colspan="2"| {{#if:{{{LastUpdated|}}} | Last Updated {{!!}} {{{LastUpdated}}} }}
 +
 +
|-
 +
 +
|}
 +
  </div>
 
</includeonly>
 
</includeonly>

Revision as of 19:44, 27 March 2021

This is the "ShaderInfobox" template. It should be called in the following format:

{{ShaderInfobox
|BannerImage=
|ProjectPage=
|LatestVersion=
|LastUpdated=
|VisualStyle=
|PerformanceCost=
}}

Edit the page to see the template text.

ShaderInfobox
{{#if: | {{{BannerImage}}} }}
{{#if: | Project Page [[:Template: ]] {{{ProjectPage}}} }}
{{#if: | Latest Version [[:Template: ]] {{{LatestVersion}}} }}
{{#if: | Last Updated [[:Template: ]] {{{LastUpdated}}} }}

</includeonly>