Diferencia entre revisiones de «Plantilla:BSD/doc»

De Wiki Network Bogota
Saltar a: navegación, buscar
m (switch {{code}}s to <code>s)
 
m (1 revisión importada)
 
(Sin diferencias)

Revisión actual del 13:17 16 dic 2017

{{#ifeq:bsd/doc |doc

    | 

{{#ifeq:show |show

         | {{#invoke:Message box|mbox}}
        }}{{#if: |
         |   {{#ifexist:Plantilla:BSD/doc
                  | [[Category:{{#switch:Plantilla |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

Usage

This template defaults to the 3-clause version, but may be used for any of the w:BSD licenses, by adding a parameter:

{{[[{{#if:|{{{SISTER}}}Template|Plantilla}}:BSD|BSD]]{{#if:4||4}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} — This will show the original 4-clause license.
{{[[{{#if:|{{{SISTER}}}Template|Plantilla}}:BSD|BSD]]{{#if:3||3}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} — This is the same as {{[[{{#if:|{{{SISTER}}}Template|Plantilla}}:BSD|BSD]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}, and will show the new 3-clause license.
{{[[{{#if:|{{{SISTER}}}Template|Plantilla}}:BSD|BSD]]{{#if:2||2}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} — This will show the FreeBSD 2-clause license.
{{[[{{#if:|{{{SISTER}}}Template|Plantilla}}:BSD|BSD]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}     — This will show the same as {{BSD|3}}, and will show the new 3-clause license.

The text of the license may be customized with the year, owner and organization parameters:

{{BSD|4|year=2009|owner=[[User:Jimbo Wales|Jimbo Wales]]|organization=the Wikimedia Foundation}} gives:
               {{#invoke:Message box|mbox}}{{#switch:
 {{#if: 
 | {{{demospace}}}    
 | {{#ifeq:Plantilla|Archivo
   | file
   | other
   }} 
 }}

| file | image =

| other | #default = }}

{{BSD|3|year=2009|owner=[http://en.wikipedia.org/wiki/User:Jimbo_Wales Jimbo Wales]}} gives:
               {{#invoke:Message box|mbox}}{{#switch:
 {{#if: 
 | {{{demospace}}}    
 | {{#ifeq:Plantilla|Archivo
   | file
   | other
   }} 
 }}

| file | image =

| other | #default = }}

{{BSD|2|year=2009}} gives:
               {{#invoke:Message box|mbox}}{{#switch:
 {{#if: 
 | {{{demospace}}}    
 | {{#ifeq:Plantilla|Archivo
   | file
   | other
   }} 
 }}

| file | image =

| other | #default = }}

{{BSD}} gives:
               {{#invoke:Message box|mbox}}{{#switch:
 {{#if: 
 | {{{demospace}}}    
 | {{#ifeq:Plantilla|Archivo
   | file
   | other
   }} 
 }}

| file | image =

| other | #default = }}

See also