Template:Banner: Difference between revisions
Jump to navigation
Jump to search
m Use class ".banner-text" defined in MediaWiki:common.css |
Expand, add documentation |
||
| Line 1: | Line 1: | ||
{|class="banner" | {|class="banner" | ||
|class="banner-text center nowrap"| | |class="banner-text center nowrap"| | ||
<div class="banner-title">{{{ | <div class="banner-title">Welcome to <strong class="selflink">{{{welcome to|{{PAGENAME}}}}}</strong>,</div> | ||
<div class="banner-subtitle">{{{ | <div class="banner-subtitle">{{{description|The reference documentation and tips on VideoLAN's projects.}}}</div> | ||
|class="banner-links-col1 plainlinks"| | |class="banner-links-col1 plainlinks"| | ||
{{{links| | |||
* [[VideoLAN]] | * [[VideoLAN]] | ||
* [[VLC media player]] | * [[VLC media player]] | ||
** [https://addons.videolan.org/ Add-ons for VLC] | ** [https://addons.videolan.org/ Add-ons for VLC] | ||
* [[Documentation:Documentation|Documentation]] | * [[Documentation:Documentation|Documentation]] | ||
}}} | |||
|class="banner-links-col2 plainlinks"| | |class="banner-links-col2 plainlinks"| | ||
{{{links2| | |||
* [https://videolan.org Main Site] | * [https://videolan.org Main Site] | ||
* [https://forum.videolan.org Forum] | * [https://forum.videolan.org Forum] | ||
* [https://planet.videolan.org News from developers] | * [https://planet.videolan.org News from developers] | ||
}}} | |||
|class="banner-links-col3 plainlinks"| | |class="banner-links-col3 plainlinks"| | ||
{{{links3| | |||
* [https://videolan.org/developers/ Developer's website] | * [https://videolan.org/developers/ Developer's website] | ||
* [http://nightlies.videolan.org Latest builds] | * [http://nightlies.videolan.org Latest builds] | ||
* [https://trac.videolan.org/vlc/ Trac, Bugs, SVN and roadmap] | * [https://trac.videolan.org/vlc/ Trac, Bugs, SVN and roadmap] | ||
}}} | |||
|}<noinclude> | |}<noinclude> | ||
== Usage == | |||
<code>{{{{PAGENAME}}<nowiki>|welcome to= |description= |links= |links2= |links3= }}</nowiki></code> | |||
=== Parameters === | |||
* <code>'''<nowiki>|welcome to=</nowiki>'''</code> (Optional) Specify custom text for the page name (without welcome to), default is the name of the page | |||
* <code>'''<nowiki>|description=</nowiki>'''</code> (Required) Describe the purpose of the page or its contents (e.g. <samp>The reference documentation on VideoLAN's projects.</samp>) | |||
* <code>'''<nowiki>|links=</nowiki>'''</code> (Optional) A bulleted list of links, defaults to generic links | |||
* <code>'''<nowiki>|links2=</nowiki>'''</code> (Optional) A bulleted list of links, defaults to generic links | |||
* <code>'''<nowiki>|links3=</nowiki>'''</code> (Optional) A bulleted list of links, defaults to generic links | |||
=== Examples === | |||
==== Main Page ==== | |||
<code>{{{{PAGENAME}}<nowiki>|welcome to=VideoLAN's wiki|description=The reference documentation and tips on VideoLAN's projects.|links=* [[VideoLAN]] * [[VLC media player]] ** [https://addons.videolan.org/ Add-ons for VLC] * [[Documentation:Documentation|Documentation]]|links2=* [https://videolan.org Main Site] * [https://forum.videolan.org Forum] * [https://planet.videolan.org News from developers]|links3=* [https://videolan.org/developers/ Developer's website] * [http://nightlies.videolan.org Latest builds] * [https://trac.videolan.org/vlc/ Trac, Bugs, SVN and roadmap]}}</nowiki></code> | |||
{{{{PAGENAME}}|welcome to=VideoLAN's wiki|description=The reference documentation and tips on VideoLAN's projects.|links=* [[VideoLAN]] * [[VLC media player]] ** [https://addons.videolan.org/ Add-ons for VLC] * [[Documentation:Documentation|Documentation]]|links2=* [https://videolan.org Main Site] * [https://forum.videolan.org Forum] * [https://planet.videolan.org News from developers]|links3=* [https://videolan.org/developers/ Developer's website] * [http://nightlies.videolan.org Latest builds] * [https://trac.videolan.org/vlc/ Trac, Bugs, SVN and roadmap]}} | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 04:21, 27 April 2019
Usage
{{Banner|welcome to= |description= |links= |links2= |links3= }}
Parameters
|welcome to=(Optional) Specify custom text for the page name (without welcome to), default is the name of the page|description=(Required) Describe the purpose of the page or its contents (e.g. The reference documentation on VideoLAN's projects.)|links=(Optional) A bulleted list of links, defaults to generic links|links2=(Optional) A bulleted list of links, defaults to generic links|links3=(Optional) A bulleted list of links, defaults to generic links
Examples
Main Page
{{Banner|welcome to=VideoLAN's wiki|description=The reference documentation and tips on VideoLAN's projects.|links=* [[VideoLAN]] * [[VLC media player]] ** [https://addons.videolan.org/ Add-ons for VLC] * [[Documentation:Documentation|Documentation]]|links2=* [https://videolan.org Main Site] * [https://forum.videolan.org Forum] * [https://planet.videolan.org News from developers]|links3=* [https://videolan.org/developers/ Developer's website] * [http://nightlies.videolan.org Latest builds] * [https://trac.videolan.org/vlc/ Trac, Bugs, SVN and roadmap]}}