Template:Ribbons Display: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{|class=wood {{#if: {{{LEFT|}}}|style{{=}}"border: none; spacing: 0px; {{#if: {{{COLOR|}}}|background:{{{COLOR|#343434}}}|}}"|style{{=}}"margin-left: auto; margin-right: auto; border: none; {{#if: {{{COLOR|}}}|background:{{{COLOR|#343434}}}|}}"}} width=800
<includeonly>{|class=wood {{#switch: {{{ALIGN|}}}|left=style{{=}}"border: none; margin-left: 0; {{#if: {{{COLOR|}}}|background:{{{COLOR|#343434}}}|}}"|right=style{{=}}"border: none; margin-right: 0; {{#if: {{{COLOR|}}}|background:{{{COLOR|#343434}}}|}}"|style{{=}}"margin-left: auto; margin-right: auto; border: none; {{#if: {{{COLOR|}}}|background:{{{COLOR|#343434}}}|}}"}} width=800
|-
|-
!color=white|{{{LABEL|{{whitelink|Awards}} and {{whitelink|Service Ribbons}}}}}
!color=white|{{{LABEL|{{whitelink|Awards}} and {{whitelink|Service Ribbons}}}}}
Line 127: Line 127:


==Change Template Alignment==
==Change Template Alignment==
By default, the template is centered. You can change the alignment by adding a LEFT=Yes variable.
By default, the template is centered. You can change the alignment by adding the ALIGN= variable, and specifying left or right.


===Left Alignment===
===Left Alignment===
<pre style="white-space:pre-wrap">
<pre style="white-space:pre-wrap">
{{Ribbons Display|LEFT=Yes}}
{{Ribbons Display|ALIGN=left}}
{{Service Ribbons Header}}
{{Service Ribbons Header}}
{{Citation|Legion of Merit|2389|USS Mercury|In recognition of Roshanara Rahman's actions in the aftermath of the bombing aboard the USS Mercury during the Klingon Invasion of 2389.}}
{{Citation|Legion of Merit|2389|USS Mercury|In recognition of Roshanara Rahman's actions in the aftermath of the bombing aboard the USS Mercury during the Klingon Invasion of 2389.}}
Line 138: Line 138:
</pre>
</pre>


{{Ribbons Display|LEFT=Yes}}
{{Ribbons Display|ALIGN=left}}
{{Service Ribbons Header}}
{{Service Ribbons Header}}
{{Citation|Legion of Merit|2389|USS Mercury|In recognition of Roshanara Rahman's actions in the aftermath of the bombing aboard the USS Mercury during the Klingon Invasion of 2389.}}
{{Citation|Legion of Merit|2389|USS Mercury|In recognition of Roshanara Rahman's actions in the aftermath of the bombing aboard the USS Mercury during the Klingon Invasion of 2389.}}