Difference between revisions of "Template:Example code"

From VideoLAN Wiki
Jump to navigation Jump to search
(New feature: parameters "PD" and "WTFPL" place pages in Category:PD pages)
m (Centre)
Line 1: Line 1:
<div class="widebox">This page contains example code{{#if:{{{for|}}}|&#32;for [[{{{for}}}]]}}.<br /><!--
+
<div class="widebox center">This page contains example code{{#if:{{{for|}}}|&#32;for [[{{{for}}}]]}}.<br /><!--
 
-->{{#switch:{{{l}}}<!--
 
-->{{#switch:{{{l}}}<!--
 
   -->|GPL=This code is licensed under the [https://www.gnu.org/copyleft/gpl.html GNU General public license][[Category:GNU GPL Licensed pages]]<!--
 
   -->|GPL=This code is licensed under the [https://www.gnu.org/copyleft/gpl.html GNU General public license][[Category:GNU GPL Licensed pages]]<!--

Revision as of 09:43, 23 March 2019

This page contains example code.

Place at top of pages which are just example code.

Places page in Category:Example code, and correct page license category.

Usage {{example code|l=GPL|for=.Net Interface to VLC}}

  • l (L) is license. Can be some text, eg: "Licensed under My License", or one of the following magic values
    • GPL
    • LGPL
    • PD (public domain)
    • WTFPL (Do WTF you want to public license)