Template:Shop: Difference between revisions

From Inkipedia, the Splatoon wiki
(Changed to Lua module. In the interim, Template:Shop/new was used.)
Tag: Replaced
(Temporarily switched to Module:Shop/new because its vaguely-named frame object "main" was renamed to "invokeFromTemplate".)
Line 1: Line 1:
<includeonly>{{#invoke:Shop|main}}</includeonly><noinclude>
<includeonly>{{#invoke:Shop/new|invokeFromTemplate}}</includeonly><noinclude>
Invokes [[Module:Shop]].
Invokes [[Module:Shop/new]].


{{:Module:Shop/doc}}
{{:Module:Shop/doc}}
</noinclude>
</noinclude>

Revision as of 16:34, 8 March 2024

Invokes Module:Shop/new.

Displays an inline shop icon with a link text.

Parameters

game Named, required. The abbreviation of icon's game of origin. Must be one of the following:
  • S for Splatoon.
  • S2 for Splatoon 2.
  • S3 for Splatoon 3.
name Named, required. The English name of the shop.
  • Ammo Knights (Inkopolis) (while game=S3) for Shelly/Donny solo icon.
  • Ammo Knights (Duo) (while game=S3) for Shelly and Donny pair icon.
icononly Named, optional. If present and "true", the link text will be omitted.
size Named, optional. The width of the icon in pixels (do not include px). Defaults to 24 if absent.

Examples

Markup

{{Shop|game=S|name=Ammo Knights}}<br />
{{Shop|game=S3|name=Naut Couture}}<br />
{{Shop|game=S3|name=Ammo Knights|icononly=true|size=64}}<br />
{{Shop|game=S3|name=Ammo Knights (Inkopolis)|size=48}}

Output

Script error: No such module "Shop/new".
Script error: No such module "Shop/new".
Script error: No such module "Shop/new".
Script error: No such module "Shop/new".