Template:Preview: Difference between revisions

From xat wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly><!--
{| class="wikitable" style="background:white;text-align:center"
 
|rowspan="2"|'''Smilies preview''' || {{flash|{{{1|}}}}} || {{flash|{{{2|}}}}} || {{flash|{{{3|}}}}} || {{flash|{{{4|}}}}} || {{flash|{{{5|}}}}} || {{flash|{{{6|}}}}} || {{flash|{{{7|}}}}} || {{flash|{{{8|}}}}} || {{flash|{{{9|}}}}} || {{flash|{{{10|}}}}}
--><div style="clear:both"></div><!--
|-
 
|{{{1|}}} || {{{2|}}} || {{{3|}}} || {{{4|}}} || {{{5|}}} || {{{6|}}} || {{{7|}}} || {{{8|}}} || {{{9|}}} || {{{10|}}}
-->{{#if:{{{2|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
|}[[Category:Preview exists]]</includeonly><noinclude>
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{1}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{1}}})</div>
</div>|}}<!--
 
-->{{#if:{{{2|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{2}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{2}}})</div>
</div>|}}<!--
 
-->{{#if:{{{3|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{3}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{3}}})</div>
</div>|}}<!--
 
-->{{#if:{{{4|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{4}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{4}}})</div>
</div>|}}<!--
 
-->{{#if:{{{5|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{5}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{5}}})</div>
</div>|}}<!--
 
-->{{#if:{{{6|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{6}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{6}}})</div>
</div>|}}<!--
 
-->{{#if:{{{7|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{7}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{7}}})</div>
</div>|}}<!--
 
-->{{#if:{{{8|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{8}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{8}}})</div>
</div>|}}<!--
 
-->{{#if:{{{9|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{9}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{9}}})</div>
</div>|}}<!--
 
-->{{#if:{{{10|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{10}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{10}}})</div>
</div>|}}<!--
 
-->{{#if:{{{11|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{11}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{11}}})</div>
</div>|}}<!--
 
-->{{#if:{{{12|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{12}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{12}}})</div>
</div>|}}<!--
 
-->{{#if:{{{13|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{13}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{13}}})</div>
</div>|}}<!--
 
-->{{#if:{{{14|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{14}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{14}}})</div>
</div>|}}<!--
 
-->{{#if:{{{15|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{15}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{15}}})</div>
</div>|}}<!--
 
-->{{#if:{{{16|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{16}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{16}}})</div>
</div>|}}<!--
 
-->{{#if:{{{17|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{17}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{17}}})</div>
</div>|}}<!--
 
-->{{#if:{{{18|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{18}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{18}}})</div>
</div>|}}<!--
 
-->{{#if:{{{19|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{19}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{19}}})</div>
</div>|}}<!--
 
-->{{#if:{{{20|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{20}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{20}}})</div>
</div>|}}<!--
 
-->{{#if:{{{21|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{21}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{21}}})</div>
</div>|}}<!--
 
-->{{#if:{{{22|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{22}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{22}}})</div>
</div>|}}<!--
 
-->{{#if:{{{23|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{23}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{23}}})</div>
</div>|}}<!--
 
-->{{#if:{{{24|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{24}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{24}}})</div>
</div>|}}<!--
 
-->{{#if:{{{25|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{25}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{25}}})</div>
</div>|}}<!--
 
-->{{#if:{{{26|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{26}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{26}}})</div>
</div>|}}<!--
 
-->{{#if:{{{27|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{27}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{27}}})</div>
</div>|}}<!--
 
-->{{#if:{{{28|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{28}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{28}}})</div>
</div>|}}<!--
 
-->{{#if:{{{29|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{29}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{29}}})</div>
</div>|}}<!--
 
-->{{#if:{{{30|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{30}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{30}}})</div>
</div>|}}<!--
 
-->{{#if:{{{31|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{31}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{31}}})</div>
</div>|}}<!--
 
-->{{#if:{{{32|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{32}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{32}}})</div>
</div>|}}<!--
 
-->{{#if:{{{33|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{33}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{33}}})</div>
</div>|}}<!--
 
-->{{#if:{{{34|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{34}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{34}}})</div>
</div>|}}<!--
 
-->{{#if:{{{35|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{35}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{35}}})</div>
</div>|}}<!--
 
-->{{#if:{{{36|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{36}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{36}}})</div>
</div>|}}<!--
 
-->{{#if:{{{37|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{37}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{37}}})</div>
</div>|}}<!--
 
-->{{#if:{{{38|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{38}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{38}}})</div>
</div>|}}<!--
 
-->{{#if:{{{39|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{39}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{39}}})</div>
</div>|}}<!--
 
-->{{#if:{{{40|}}}|<div style="width:100px; float:left; margin:0 0 15px 0">
<div style="width:100%; background: white; border: 1px solid #aaa; text-align:center">{{flash|{{{40}}}}}</div>
<div style="width:100%; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">({{{40}}})</div>
</div>|}}<!--
 
--><div style="clear:both"></div></includeonly><noinclude>
The purpose of this template is to provide a simple and fixed method for editors to add smiley previews on articles.
The purpose of this template is to provide a simple and fixed method for editors to add smiley previews on articles.
Due to lack of [http://www.mediawiki.org/wiki/Extension:ParserFunctions parser functions], fixed number of cells is unavoidable.


Usage:
Usage:

Revision as of 05:17, 8 September 2015

The purpose of this template is to provide a simple and fixed method for editors to add smiley previews on articles.

Usage:

  • {{preview|smileycode|smileycode2 etc}}

Example:

  • {{preview|clouds|cangry|ccrying|cfreeze|chappy|ckiss|clove|crainbow|csleepy|cwindy}}

Will produce:

(clouds)
(cangry)
(ccrying)
(cfreeze)
(chappy)
(ckiss)
(clove)
(crainbow)
(csleepy)
(cwindy)