« Modèle:Ticker » : différence entre les versions

De Baripedia
(Page créée avec « <div {{#ifeq:{{{multiple|single}}}|single|id="singleTickerForPage"|{{#ifeq:{{{multiple}}}|first|id="enableTickers"|}}}} class="{{#ifeq:{{{multiple|single}}}|single||isATi... »)
 
Aucun résumé des modifications
 
(2 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 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|}}}}}}}
Ticker_strRight-{{#ifeq:{{urlencode:{{{right_text|}}}}}||%00|{{urlencode:{{{right_text|}}}}}}}
Ticker_strLinkText-{{#ifeq:{{urlencode:{{{link_text|}}}}}||%00|{{urlencode:{{{link_text|}}}}}}}
Ticker_strLinkURI-{{#ifeq:{{{link|}}}||Accueil|{{{link|}}}}}
}} {{{options|}}}
" style="display:none;">{{{customSrc|{{#tag:DynamicPageList|category=Article publié
{{#if:{{{cat1|{{{1|}}}}}}|category={{{cat1|{{{1}}}}}}}}
count={{{count|15}}}
stablepages=only
notcategory=Article en développement
}}}}}</div>
<!-- Old ticker <div id="showticker" style="padding: .5em; height: 20px; margin-left: 2em;"></div> --><noinclude>


<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|}}}}}}}
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]].


    Ticker_strRight-{{#ifeq:{{urlencode:{{{right_text|}}}}}||%00|{{urlencode:{{{right_text|}}}}}}}
This is using the second incarnation of the ticker system.


        Ticker_strLinkText-{{#ifeq:{{urlencode:{{{link_text|}}}}}||%00|{{urlencode:{{{link_text|}}}}}}}
Basic usage. {{m|ticker|2=Africa}} displays all published articles in cat Africa. {{m|ticker}} displays the latest published news. See [[:en:User:Bawolff/sandbox/ticker]] for more funky examples of the ticker (ex. picture slideshow).


            Ticker_strLinkURI-{{#ifeq:{{{link|}}}||Accueil|{{{link|}}}}}


            }} {{{options|}}}
==Parameters==


            " style="display:none;">{{{customSrc|{{#tag:DynamicPageList|category=Article publié
*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 (_)'''


            {{#if:{{{cat1|{{{1|}}}}}}|category={{{cat1|{{{1}}}}}}}}
[[Catégorie:Modèle]]


                count={{{count|15}}}
[[en:Template:Ticker]]
[[fa:الگو:Ticker]]
[[no:Mal:Ticker]]
[[pt:Predefinição:Ticker]]
[[ru:Шаблон:Ticker]]
[[sr:Шаблон:Тикер]]
[[ta:வார்ப்புரு:Ticker]]
[[zh:Template:Ticker]]


                stablepages=only
</noinclude>
 
                notcategory=Article en développement
 
            }}}}}</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. {{m|ticker|2=Africa}} displays all published articles in cat Africa. {{m|ticker}} displays the latest published news. See [[:en: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 (_)'''
 
       
 
        [[Catégorie:Modèle]]
 
       
 
        [[en:Template:Ticker]]
 
        [[fa:الگو:Ticker]]
 
        [[no:Mal:Ticker]]
 
        [[pt:Predefinição:Ticker]]
 
        [[ru:Шаблон:Ticker]]
 
        [[sr:Шаблон:Тикер]]
 
        [[ta:வார்ப்புரு:Ticker]]
 
        [[zh:Template:Ticker]]
 
       
 
        </noinclude>

Version actuelle datée du 30 avril 2014 à 17:39


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. {{ticker|Africa}} displays all published articles in cat Africa. {{ticker}} displays the latest published news. See en: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=
  • 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 (_)

en:Template:Ticker fa:الگو:Ticker no:Mal:Ticker pt:Predefinição:Ticker ru:Шаблон:Ticker sr:Шаблон:Тикер ta:வார்ப்புரு:Ticker zh:Template:Ticker