Template:Ticker: Difference between revisions

From Iskomunidad
No edit summary
No edit summary
Line 4: Line 4:
Ticker_strLinkURI-{{#ifeq:{{{link|}}}||Main_Page|{{{link|}}}}}
Ticker_strLinkURI-{{#ifeq:{{{link|}}}||Main_Page|{{{link|}}}}}
}} {{{options|}}}
}} {{{options|}}}
" style="display:none;">{{{customSrc|{{#tag:DynamicPageList|category=UPD Memo
" style="display:none;">{{{customSrc|{{#tag:DynamicPageList|category=Published
{{#if:{{{cat1|{{{1|}}}}}}|category={{{cat1|{{{1}}}}}}}}
{{#if:{{{cat1|{{{1|}}}}}}|category={{{cat1|{{{1}}}}}}}}
notcategory=brief
notcategory=brief
Line 13: Line 13:
notcategory=No publish
notcategory=No publish
}}}}}</div>
}}}}}</div>
<!-- Old ticker <div id="showticker" style="padding: .5em; height: 20px; margin-left: 2em;"></div>--><noinclude>
This is a template to include the ticker. It makes including a ticker for the standard case (Displaying last published articles one at a time) easier. If you want to do something really funky/weird/unusual with the ticker system, see the comments in [[mediawiki:ticker2.js]] or ask [[user:Bawolff]].
This is using the second incarnation of the ticker system.
Basic usage. {{tl|ticker|2=Africa}} displays all published articles in cat Africa. {{tl|ticker}} displays the latest published news. See [[User:Bawolff/sandbox/ticker]] for more funky examples of the ticker (ex. picture slideshow).
==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 (_)'''
</noinclude>

Revision as of 05:42, 25 September 2009


This is a template to include the ticker. It makes including a ticker for the standard case (Displaying last published articles one at a time) easier. If you want to do something really funky/weird/unusual with the ticker system, see the comments in mediawiki:ticker2.js or ask user:Bawolff.

This is using the second incarnation of the ticker system.

Basic usage. Template:Tl displays all published articles in cat Africa. Template:Tl displays the latest published news. See User:Bawolff/sandbox/ticker for more funky examples of the ticker (ex. picture slideshow).


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 (_)