Difference between revisions of "Template:Banner"

From VideoLAN Wiki
Jump to navigation Jump to search
m (Rename "Developers' Sites" to "Developer Zone")
(New parameter: "banner title" to allow translation)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{|class="banner"
 
{|class="banner"
 
|class="banner-text center nowrap"|
 
|class="banner-text center nowrap"|
<div class="banner-title">Welcome to <strong class="selflink">{{{welcome to|{{PAGENAME}}}}}</strong>{{#if:{{{description|}}}|,}}</div>
+
<div class="banner-title">{{{banner title|Welcome to <strong class="selflink">{{{welcome to|{{PAGENAME}}}}}</strong>}}}{{#if:{{{description|}}}|,}}</div>
 
{{#if:{{{description|}}}|<div class="banner-subtitle">{{{description}}}</div>}}
 
{{#if:{{{description|}}}|<div class="banner-subtitle">{{{description}}}</div>}}
 
|class="banner-links-col1 nowrap plainlinks"|
 
|class="banner-links-col1 nowrap plainlinks"|
Line 24: Line 24:
 
|}<noinclude>
 
|}<noinclude>
 
== Usage ==
 
== Usage ==
  <code>{{{{PAGENAME}}<nowiki>|welcome to= |description= |links= |links2= |links3= }}</nowiki></code>
+
  <code>{{{{PAGENAME}}<nowiki> |welcome to= |description= |links= |links2= |links3= }}</nowiki></code>
  
 
=== Parameters ===
 
=== Parameters ===
* <code>'''<nowiki>|welcome to=</nowiki>'''</code> (Optional, default page name) Specify custom text for the page name (without welcome to)
+
* <code>'''<nowiki>|banner title=</nowiki>'''</code> (Custom) Specify custom text for the page name e.g. to translate it
 +
** <code>'''<nowiki>|welcome to=</nowiki>'''</code> (Optional, default page name) Specify custom text for the page name after <samp>Welcome to</samp>
 
* <code>'''<nowiki>|description=</nowiki>'''</code> (Recommended, default blank) Describe the purpose of the page or its contents (e.g. <samp>The reference documentation on VideoLAN's projects.</samp>)
 
* <code>'''<nowiki>|description=</nowiki>'''</code> (Recommended, default blank) 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>|links=</nowiki>'''</code> (Optional) A bulleted list of links, defaults to generic links
Line 38: Line 39:
 
|welcome to=VideoLAN's Wiki</nowiki><br /><nowiki>
 
|welcome to=VideoLAN's Wiki</nowiki><br /><nowiki>
 
|description=The reference documentation and tips on VideoLAN's projects.</nowiki><br /><nowiki>
 
|description=The reference documentation and tips on VideoLAN's projects.</nowiki><br /><nowiki>
|links=</nowiki><br /><nowiki>
 
* [[VideoLAN]]</nowiki><br /><nowiki>
 
* [[VLC media player]]</nowiki><br /><nowiki>
 
** [https://addons.videolan.org/ Add-ons]</nowiki><br /><nowiki>
 
* [[Documentation:Documentation|Documentation]]</nowiki><br /><nowiki>
 
|links2=</nowiki><br /><nowiki>
 
* [https://videolan.org Main Site]</nowiki><br /><nowiki>
 
* [https://forum.videolan.org Forum]</nowiki><br /><nowiki>
 
* [https://planet.videolan.org News from developers]</nowiki><br /><nowiki>
 
|links3=</nowiki><br /><nowiki>
 
* [https://videolan.org/developers/ Developer's website]</nowiki><br /><nowiki>
 
* [http://nightlies.videolan.org Latest builds]</nowiki><br /><nowiki>
 
* [https://trac.videolan.org/vlc/ Trac, Bugs, SVN and roadmap]</nowiki><br /><nowiki>
 
 
}}</nowiki></code>
 
}}</nowiki></code>
 
{{{{PAGENAME}}
 
{{{{PAGENAME}}
 
|welcome to=VideoLAN's Wiki
 
|welcome to=VideoLAN's Wiki
 
|description=The reference documentation and tips on VideoLAN's projects.
 
|description=The reference documentation and tips on VideoLAN's projects.
|links=
+
}}
* [[VideoLAN]]
+
 
* [[VLC media player]]
+
===== Main Page/de =====
** [https://addons.videolan.org/ Add-ons]
+
<code>{{{{PAGENAME}}<br /><nowiki>
* [[Documentation:Documentation|Documentation]]
+
|banner title=Willkommen bei [[{{PAGENAME}}|VideoLAN]]</nowiki><br /><nowiki>
|links2=
+
}}</nowiki></code>
* [https://videolan.org Main Site]
+
{{{{PAGENAME}}|
* [https://forum.videolan.org Forum]
+
|banner title=Willkommen bei [[Main Page/de|VideoLAN]]
* [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]
 
 
}}
 
}}
  

Latest revision as of 09:04, 27 April 2019

Usage

{{Banner |welcome to= |description= |links= |links2= |links3= }}

Parameters

  • |banner title= (Custom) Specify custom text for the page name e.g. to translate it
    • |welcome to= (Optional, default page name) Specify custom text for the page name after Welcome to
  • |description= (Recommended, default blank) 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.
}}

Main Page/de

{{Banner
|banner title=Willkommen bei [[{{PAGENAME}}|VideoLAN]]
}}

VLC Developers Corner

{{Banner
|description=This is a directory of everything to do with the development of VideoLAN's projects.<br /> Check [[VLC media player|VLC's page]] to get info on VLC.
|links=
* [[VideoLAN]]
* [[VLC media player]]
** [https://addons.videolan.org Add-ons]
* [[Documentation:Documentation|Documentation]]
* [[VideoLAN_Sites#Developers|Developers' Sites]]
|links2=
* [https://www.videolan.org/developers Developer Zone]
* [https://nightlies.videolan.org Nightly builds]
* [https://jenkins.videolan.org Automatic builds]
|links3=
* [https://trac.videolan.org Trac, bugs, features, roadmap]
* [https://www.videolan.org/videolan/mirrors.html Mirrors check]
* [ftp://ftp.videolan.org/pub/videolan/ Main FTP]
}}