Gamepedia Help Wiki
Gamepedia Help Wiki
m (Use Template:Y)
ExE Boss (talk | contribs)
(Use Template:Yesno for handling explicitly falsy values)
Line 14: Line 14:
 
</data>
 
</data>
 
<data source="req">
 
<data source="req">
<label>Requirements</label>
+
<label>Require&shy;ments</label>
 
</data>
 
</data>
 
<group>
 
<group>
Line 23: Line 23:
 
<data>
 
<data>
 
<label>Default?</label>
 
<label>Default?</label>
<default>{{#if: {{yesno| {{{default|}}} }}
+
<default>{{yesno| {{{default|¬}}}
| {{Y|alt=Default extension}}
+
| true = {{Y|alt=Default extension}}
  +
| false = {{N}}
  +
<!-- | ¬ = {{#ifeq:{{{ucp|¬}}}{{{gp|¬}}}|¬¬||{{?}}}} -->
 
}}</default>
 
}}</default>
 
</data>
 
</data>
 
<data>
 
<data>
 
<label>UCP?</label>
 
<label>UCP?</label>
<default>{{#if: {{yesno| {{{ucp|}}} }}
+
<default>{{yesno| {{{ucp|¬}}}
| {{Y|alt=Available on UCP}}
+
| true = {{Y|alt=Available on UCP}}
  +
| false = {{N}}
  +
<!-- | ¬ = {{#ifeq:{{{default|¬}}}{{{gp|¬}}}|¬¬||{{?}}}} -->
 
}}</default>
 
}}</default>
 
</data>
 
</data>
 
<data>
 
<data>
 
<label>GP?</label>
 
<label>GP?</label>
<default>{{#if: {{yesno| {{{gp|}}} }}
+
<default>{{yesno| {{{gp|¬}}}
| [[File:Book light transparent.svg|x16px|Custom Gamepedia extension|link=:Category:Custom Gamepedia extensions]]
+
| true = [[File:Book light transparent.svg|x16px|Custom Gamepedia extension|link=:Category:Custom Gamepedia extensions]]
  +
<!-- | ¬ = {{#ifeq:{{{default|¬}}}{{{ucp|¬}}}|¬¬||{{?}}}} -->
 
}}</default>
 
}}</default>
 
</data>
 
</data>
Line 44: Line 49:
 
-->{{#ifeq:{{NAMESPACE}}|Extension|[[Category:Extensions]]{{#cargo_store:_table=Extensions
 
-->{{#ifeq:{{NAMESPACE}}|Extension|[[Category:Extensions]]{{#cargo_store:_table=Extensions
 
|Name={{{name|{{PAGENAME}} }}}
 
|Name={{{name|{{PAGENAME}} }}}
|IsOurs={{{gp|}}}
+
|IsOurs={{yesno|{{{gp|¬}}}|false=0}}
|IsUCP={{{ucp|}}}
+
|IsUCP={{yesno|{{{ucp|¬}}}|false=0}}
|IsDefault={{{default|}}}
+
|IsDefault={{yesno|{{{default|¬}}}|false=0}}
 
|Description={{{desc|}}}
 
|Description={{{desc|}}}
 
|AdditionalContent={{CargoQuery
 
|AdditionalContent={{CargoQuery

Revision as of 01:56, 12 May 2021

This template adds rows to the table "Extensions", which is declared by the template Extensions/CargoDec. View table.

Template-info.png Documentation

{{Extension infobox
| name    = Category Intersection
| version = 1.0.0
| author  = [[w:c:wow:User:foxlit|foxlit]]
| link    = [[mediawikiwiki:Extension:CategoryIntersection|On MediaWiki]]
| req     = [[Extension:Gadgets]]
| desc    = Displays category intersections in the Intersection namespace.
| ucp     = yes
| gp      = yes
}}

{{Extension infobox
| name    = Foo Bar
| version = 1.0.0
| author  = [[User:Example]]
| link    = [[Gamepedia Help Wiki:Placeholder]]
| desc    = Demonstrates true and false values of:
| gp      = no
| ucp     = yes
| default = no
}}

Usage

{{Extension infobox
| name    = 
| version = 
| author  = 
| link    = 
| req     = 
| desc    = 
| default = <0/1>
| ucp     = <0/1>
| gp      = <0/1>
}}

Parameters

name
Name of the extension. Defaults to {{PAGENAME}}.
version
The version of the extension as seen on Special:Version.
author
The author(s) of the extension as seen on Special:Version.
link
The link to the extension on MediaWiki or another external site.
req
The dependencies/requirements of the extension, if any.
desc
The description of the extension as seen on Special:Version.
gp
yes if this is a Gamepedia-maintained extension.
ucp
yes if this is available on UCP.
default
yes if this is a default extension.

TemplateData

No description.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Namename

Name of the extension.

Default
{{PAGENAME}}
Stringsuggested
Versionversion

The version of the extension as seen on "Special:Version".

Stringsuggested
Authorauthor

The author(s) of the extension as seen on "Special:Version".

Contentsuggested
Linklink

The link to the extension on MediaWiki or another external site.

Contentsuggested
Requirementsreq

The dependencies/requirements of the extension, if any.

Contentoptional
Descriptiondesc

The description of the extension as seen on "Special:Version".

Contentsuggested
Default?default

Whether this extension is enabled by default.

Default
¬
Booleansuggested
UCP?ucp

Whether this extension is available on UCP.

Default
¬
Booleansuggested
GP?gp

Whether this is a Gamepedia-maintained extension.

Default
¬
Booleansuggested


The above documentation is transcluded from Template:Extension infobox/doc.[edit | history | purge]