Template:Preview: Difference between revisions

From xat wiki
No edit summary
No edit summary
(20 intermediate revisions by 3 users not shown)
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:{{{1|}}}|<div style="overflow: hidden;"><div style="width:100px; overflow-wrap:break-word; float:left; margin:0 15px 15px 0">
|}[[Category:Preview exists]]</includeonly><noinclude>
<div class="smileypreviewfix predis" style="width:100%; height:60px; background: white; border: 1px solid #aaa; text-align:center">{{#if:{{{fiximg1|}}}|https://util.xat.com/wiki/images/{{{fiximg1}}}|<htmltag tagname="img" src="https://gs.xat.com/S_({{#replace:{{{1}}}|#|*}})_40" />}}</div>
<div class="plainlinks" style="width:100%; position: relative; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">([https://www.xatech.com/web_gear/flash/smiliesshow.swf?r={{urlencode:{{{1}}}}} {{{1}}}])</div>
</div>|}}<!--
 
-->{{#if:{{{2|}}}|<div style="width:100px; overflow-wrap:break-word; float:left; margin:0 15px 15px 0">
<div class="smileypreviewfix predis" style="width:100%; height:60px; background: white; border: 1px solid #aaa; text-align:center">{{#if:{{{fiximg2|}}}|https://util.xat.com/wiki/images/{{{fiximg2}}}|<htmltag tagname="img" src="https://gs.xat.com/S_({{#replace:{{{2}}}|#|*}})_40" />}}</div>
<div class="plainlinks" style="width:100%; position: relative; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">([https://www.xatech.com/web_gear/flash/smiliesshow.swf?r={{urlencode:{{{2}}}}} {{{2}}}])</div>
</div>|}}<!--
 
-->{{#if:{{{3|}}}|<div style="width:100px; overflow-wrap:break-word; float:left; margin:0 15px 15px 0">
<div class="smileypreviewfix predis" style="width:100%; height:60px; background: white; border: 1px solid #aaa; text-align:center">{{#if:{{{fiximg3|}}}|https://util.xat.com/wiki/images/{{{fiximg3}}}|<htmltag tagname="img" src="https://gs.xat.com/S_({{#replace:{{{3}}}|#|*}})_40" />}}</div>
<div class="plainlinks" style="width:100%; position: relative; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">([https://www.xatech.com/web_gear/flash/smiliesshow.swf?r={{urlencode:{{{3}}}}} {{{3}}}])</div>
</div>|}}<!--
 
-->{{#if:{{{4|}}}|<div style="width:100px; overflow-wrap:break-word; float:left; margin:0 15px 15px 0">
<div class="smileypreviewfix predis" style="width:100%; height:60px; background: white; border: 1px solid #aaa; text-align:center">{{#if:{{{fiximg4|}}}|https://util.xat.com/wiki/images/{{{fiximg4}}}|<htmltag tagname="img" src="https://gs.xat.com/S_({{#replace:{{{4}}}|#|*}})_40" />}}</div>
<div class="plainlinks" style="width:100%; position: relative; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">([https://www.xatech.com/web_gear/flash/smiliesshow.swf?r={{urlencode:{{{4}}}}} {{{4}}}])</div>
</div>|}}<!--
 
-->{{#if:{{{5|}}}|<div style="width:100px; overflow-wrap:break-word; float:left; margin:0 15px 15px 0">
<div class="smileypreviewfix predis" style="width:100%; height:60px; background: white; border: 1px solid #aaa; text-align:center">{{#if:{{{fiximg5|}}}|https://util.xat.com/wiki/images/{{{fiximg5}}}|<htmltag tagname="img" src="https://gs.xat.com/S_({{#replace:{{{5}}}|#|*}})_40" />}}</div>
<div class="plainlinks" style="width:100%; position: relative; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">([https://www.xatech.com/web_gear/flash/smiliesshow.swf?r={{urlencode:{{{5}}}}} {{{5}}}])</div>
</div>|}}<!--
 
-->{{#if:{{{6|}}}|<div style="width:100px; overflow-wrap:break-word; float:left; margin:0 15px 15px 0">
<div class="smileypreviewfix predis" style="width:100%; height:60px; background: white; border: 1px solid #aaa; text-align:center">{{#if:{{{fiximg6|}}}|https://util.xat.com/wiki/images/{{{fiximg6}}}|<htmltag tagname="img" src="https://gs.xat.com/S_({{#replace:{{{6}}}|#|*}})_40" />}}</div>
<div class="plainlinks" style="width:100%; position: relative; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">([https://www.xatech.com/web_gear/flash/smiliesshow.swf?r={{urlencode:{{{6}}}}} {{{6}}}])</div>
</div>|}}<!--
 
-->{{#if:{{{7|}}}|<div style="width:100px; overflow-wrap:break-word; float:left; margin:0 15px 15px 0">
<div class="smileypreviewfix predis" style="width:100%; height:60px; background: white; border: 1px solid #aaa; text-align:center">{{#if:{{{fiximg7|}}}|https://util.xat.com/wiki/images/{{{fiximg7}}}|<htmltag tagname="img" src="https://gs.xat.com/S_({{#replace:{{{7}}}|#|*}})_40" />}}</div>
<div class="plainlinks" style="width:100%; position: relative; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">([https://www.xatech.com/web_gear/flash/smiliesshow.swf?r={{urlencode:{{{7}}}}} {{{7}}}])</div>
</div>|}}<!--
 
-->{{#if:{{{8|}}}|<div style="width:100px; overflow-wrap:break-word; float:left; margin:0 15px 15px 0">
<div class="smileypreviewfix predis" style="width:100%; height:60px; background: white; border: 1px solid #aaa; text-align:center">{{#if:{{{fiximg8|}}}|https://util.xat.com/wiki/images/{{{fiximg8}}}|<htmltag tagname="img" src="https://gs.xat.com/S_({{#replace:{{{8}}}|#|*}})_40" />}}</div>
<div class="plainlinks" style="width:100%; position: relative; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">([https://www.xatech.com/web_gear/flash/smiliesshow.swf?r={{urlencode:{{{8}}}}} {{{8}}}])</div>
</div>|}}<!--
 
-->{{#if:{{{9|}}}|<div style="width:100px; overflow-wrap:break-word; float:left; margin:0 15px 15px 0">
<div class="smileypreviewfix predis" style="width:100%; height:60px; background: white; border: 1px solid #aaa; text-align:center">{{#if:{{{fiximg9|}}}|https://util.xat.com/wiki/images/{{{fiximg9}}}|<htmltag tagname="img" src="https://gs.xat.com/S_({{#replace:{{{9}}}|#|*}})_40" />}}</div>
<div class="plainlinks" style="width:100%; position: relative; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">([https://www.xatech.com/web_gear/flash/smiliesshow.swf?r={{urlencode:{{{9}}}}} {{{9}}}])</div>
</div>|}}<!--
 
-->{{#if:{{{10|}}}|<div style="width:100px; overflow-wrap:break-word; float:left; margin:0 15px 15px 0">
<div class="smileypreviewfix predis" style="width:100%; height:60px; background: white; border: 1px solid #aaa; text-align:center">{{#if:{{{fiximg10|}}}|https://util.xat.com/wiki/images/{{{fiximg10}}}|<htmltag tagname="img" src="https://gs.xat.com/S_({{#replace:{{{10}}}|#|*}})_40" />}}</div>
<div class="plainlinks" style="width:100%; position: relative; background: #f2f2f2; font-weight: bold; border: 1px solid #aaa; border-top: 0; text-align:center; font-size:10px">([https://www.xatech.com/web_gear/flash/smiliesshow.swf?r={{urlencode:{{{10}}}}} {{{10}}}])</div>
</div>|}}<!--
 
-->{{#if:{{{1|}}}|</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 19:36, 10 August 2019

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:

<htmltag tagname="img" src="https://gs.xat.com/S_(clouds)_40" />
<htmltag tagname="img" src="https://gs.xat.com/S_(cangry)_40" />
<htmltag tagname="img" src="https://gs.xat.com/S_(ccrying)_40" />
<htmltag tagname="img" src="https://gs.xat.com/S_(cfreeze)_40" />
<htmltag tagname="img" src="https://gs.xat.com/S_(chappy)_40" />
<htmltag tagname="img" src="https://gs.xat.com/S_(ckiss)_40" />
<htmltag tagname="img" src="https://gs.xat.com/S_(clove)_40" />
<htmltag tagname="img" src="https://gs.xat.com/S_(crainbow)_40" />
<htmltag tagname="img" src="https://gs.xat.com/S_(csleepy)_40" />
<htmltag tagname="img" src="https://gs.xat.com/S_(cwindy)_40" />