Difference between revisions of "Template:Award"

From The Coppermind
Jump to navigation Jump to search
(copied from https://en.wikipedia.org/wiki/Module:Userbox html-wise)
 
m (oops)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class=award style="border: 1px solid #999; margin: 1px; width: 238px; {{{style|}}}">
+
<div class="award" style="{{{style|}}}">
  +
{| style="{{{t-style|}}}"
{| style="border-collapse: collapse; width: 100%; margin-bottom: 0; background: #eee; "
 
 
{{#if: {{{l|}}}|
 
{{#if: {{{l|}}}|
  +
! class="award-l" style="{{{l-style|}}}" {{!}} {{{l}}} }}
! style="border: 0; width: 45px; height: 45px; background: #ddd; text-align: center; font-size: 14pt; color: black; padding: 0 1px 0 0; line-height: 1.25em; vertical-align: middle " {{!}} {{{l}}} }}
 
| style="border: 0; text-align: {{{1-align|center}}}; padding: 0 4px 0 4px; height: 45px; vertical-align: middle;" | {{{1}}}
+
| class="award-1" style="text-align: {{{1-align|center}}}; {{{1-style}}}" | {{{1}}}<!--
{{#if: {{{r|}}}|
+
-->{{#if: {{{r|}}}|
  +
! class="award-r" style="{{{r-style|}}}" {{!}} {{{r}}} }}
! style="border: 0; width: 45px; height: 45px; background: #ddd; text-align: center; font-size: 14pt; color: black; padding: 0 1px 0 0; line-height: 1.25em; vertical-align: middle " {{!}} {{{r}}} }}
 
 
|}
 
|}
</div><noinclude>A template that helps build award templates
+
</div><noinclude>The base template for building [[:category: user awards|user award templates]].
   
  +
There is {{{1}}} as the main field text with optional {{{1-align}}} for alignment and {{{1-style}}} fields for styling. There are also both {{{l}}} & {{{r}}} fields for the optional left and right icon boxes, and {{{l-style}}} & {{{r-style}}} fields for styling. For a list of current awards see [[:category: user awards]]
[[category: awards| ]]
 
  +
  +
== Examples ==
  +
{{award
  +
| this template only has a {{{1}}} field
  +
}}
  +
  +
{{award
  +
| this template has an {{{l}}} field
  +
|l={{{l}}}
  +
}}
  +
  +
{{award
  +
| this template has an {{{r}}} field
  +
|r={{{r}}}
  +
}}
  +
  +
== Possible Awards ==
  +
  +
 
[[category: user awards| ]]

Latest revision as of 14:32, 15 June 2018

{{{1}}}

The base template for building user award templates.

There is {{{1}}} as the main field text with optional {{{1-align}}} for alignment and {{{1-style}}} fields for styling. There are also both {{{l}}} & {{{r}}} fields for the optional left and right icon boxes, and {{{l-style}}} & {{{r-style}}} fields for styling. For a list of current awards see category: user awards

Examples[edit]

this template only has a {{{1}}} field
{{{l}}} this template has an {{{l}}} field
this template has an {{{r}}} field {{{r}}}

Possible Awards[edit]