Template:Ticker: Difference between revisions

From Iskomunidad
(New page: <div {{#ifeq:{{{multiple|single}}}|single|id="singleTickerForPage"|{{#ifeq:{{{multiple}}}|first|id="enableTickers"|}}}} class="{{#ifeq:{{{multiple|single}}}|single||isATicker}} Ticker_engi...)
 
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div {{#ifeq:{{{multiple|single}}}|single|id="singleTickerForPage"|{{#ifeq:{{{multiple}}}|first|id="enableTickers"|}}}} class="{{#ifeq:{{{multiple|single}}}|single||isATicker}} Ticker_engine-{{urlencode:{{{engine|std}}}}} {{#if:{{{speed|}}}|Ticker_speed-{{{speed}}}}} {{#if:{{{left_text|{{{link_text|{{{right_text|{{{link|}}}}}}}}}}}}|Ticker_strLeft-{{#ifeq:{{urlencode:{{{left_text|}}}}}||%00|{{urlencode:{{{left_text|}}}}}}}
<div class="isATicker Ticker_engine-std Ticker_speed-3">
Ticker_strRight-{{#ifeq:{{urlencode:{{{right_text|}}}}}||%00|{{urlencode:{{{right_text|}}}}}}}
<DynamicPageList>
Ticker_strLinkText-{{#ifeq:{{urlencode:{{{link_text|}}}}}||%00|{{urlencode:{{{link_text|}}}}}}}
category=mapped
Ticker_strLinkURI-{{#ifeq:{{{link|}}}||Main_Page|{{{link|}}}}}
count=5
}} {{{options|}}}
</DynamicPageList>
" style="display:none;">{{{customSrc|{{#tag:DynamicPageList|category=Mapped
</div>
{{#if:{{{cat1|{{{1|}}}}}}|category={{{cat1|{{{1}}}}}}}}
 
notcategory=brief
<noinclude>
notcategory=Archived
==Parameters==
count={{{count|15}}}
*multiple=
stablepages=only
**needed if more then one ticker on page
notcategory=Disputed
**if not specified defaults to single
notcategory=No publish
**''single'' means one ticker
}}}}}</div>
**''first'' is for first if more then one ticker
**''other'' is for others not called first
*engine=
**engine type
**''fade'' (slightly buggy on some browsers)
**''std'' (default)
**''none''
*cat1= (or first unamed parameter)
**category name to make ticker more specific (for example ''Africa'')
*speed=
**as decimal (0.1 = 1/10th, 2 = 2x, etc)
*customSrc=
**list of ticker items
*options=
**extra ticker options or class. see [[mediawiki:ticker2.js
*left_text=, right_text=, link_text=, link=
** change the intro string. left is normal text to left, right is to the right, link_text in middle
**text is urlencoded so no need to escape anything (use ''options='' if you need to encode a plus sign)
**link is local page name (ex ''Main_Page''). '''replace spaces with underscore (_)'''
 
</noinclude>
 
<noinclude>
[[Category:Templates]]
</noinclude>

Latest revision as of 06:09, 9 October 2009


Parameters

  • multiple=
    • needed if more then one ticker on page
    • if not specified defaults to single
    • single means one ticker
    • first is for first if more then one ticker
    • other is for others not called first
  • engine=
    • engine type
    • fade (slightly buggy on some browsers)
    • std (default)
    • none
  • cat1= (or first unamed parameter)
    • category name to make ticker more specific (for example Africa)
  • speed=
    • as decimal (0.1 = 1/10th, 2 = 2x, etc)
  • customSrc=
    • list of ticker items
  • options=
    • extra ticker options or class. see [[mediawiki:ticker2.js
  • left_text=, right_text=, link_text=, link=
    • change the intro string. left is normal text to left, right is to the right, link_text in middle
    • text is urlencoded so no need to escape anything (use options= if you need to encode a plus sign)
    • link is local page name (ex Main_Page). replace spaces with underscore (_)