Template:Wiki loves parliaments/base

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Wiki loves parliaments

{{{project}}}

{{{subtitle}}}
{{{description}}}



Template documentationview · edit · history · purge ]

Base template for Wiki loves parliaments projects. Templates that make use of this base template can be added to files. Do not use this base template directly!

Usage

{{Wiki loves parliaments/base |project= |subtitle= |description= |participants_count= |participants= |email= |license= |nolicense= |supported_by_wmde= |supported_by_wmat= |category_project= |type= |visit= }}

Every Wiki loves parliaments project should use a specific template that encapsulates this template. Some arguments should be passed through, some should be set in the specific template.

Arguments to pass through in the specific template
  • nolicense
  • type
  • visit
Arguments that must be set in the specific template
  • project
  • subtitle
  • description
  • license
  • category_project

All other arguments are optional. If a text is passed as an argument, it should be localized e. g. using {{LangSwitch}}.

Parts of the template
Example
A specific template could look like this:
{{Wiki loves parliaments/base
 | project            = project name
 | subtitle           = {{LangSwitch | en = English subtitle | de = German subtitle }}
 | description        = {{LangSwitch | en = English description | de = German description }}
 | participants_count = 10
 | participants       = name 1, name 2
 | email              = test@example.com
 | license            = {{cc-by-sa-4.0}}
 | nolicense          = {{{nolicense|}}}
 | supported_by_wmde  = yes
 | supported_by_wmat  = yes
 | category_project   = project name (categories)
 | type               = {{{1|}}}
 | visit              = {{{2|}}}
}}
For a real-life example, see {{Wiki loves parliaments/Bundestag 2014}} and the category Category:Wiki loves parliaments/Bundestag 2014.

Template parameters

ParameterDescriptionDefaultStatus
projectprojectname of the project, used as a headingemptyrequired
subtitlesubtitlesubtitle for the top boxemptyrequired
descriptionproject descriptionlong project description of the project for the top boxemptyrequired
participants_countparticipant countparticipant count, rounded downemptyoptional
participantsparticipantslist of participants, shown in a toggled section if participants_count is setemptyoptional
emailemailcontact address for questions on reuse (if not set, no reuse notice is shown)emptyoptional
licenselicensedefault license to use in this template, e. g. {{Cc-by-sa-4.0}}emptyoptional
nolicenseno licensesuppresses the default license if setemptyoptional
supported_by_wmdeSupported by WMDEadds Category:Supported by Wikimedia Deutschland to files (if set)emptyoptional
supported_by_wmatSupported by WMATadds Category:Supported by Wikimedia Österreich to files (if set)emptyoptional
category_projectproject category nameproject name used in the categories. Adds the files using this template to the category Wiki loves parliaments/project name and its subcategories.emptyrequired
typetypetype of the file that uses this template (Making-of, Portrait, Visit, Video)emptyrequired
visitvisitname of the visit if the file type is Visitemptyoptional

Additional information

The template is intended to be used in the following namespaces: the Template namespace

The template is intended to be used by the following user groups: all users

Relies on:
{{Hidden}}

See also

Localization

To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation " (xx being the code of your language)

The parameters given to this template must be localized.