Anonymous
×
Create a new article
Write your page title here:
We currently have 205 articles on Shadowrun Seattle Shutdown. Type your article name above or click on one of the titles below and start writing!



Shadowrun Seattle Shutdown

Template:Required: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
{{Documentation}}
{{Documentation}}
<includeonly><onlyinclude><span class="error">{{#if:{{IsNum|{{{1}}}}}|{{Code|{{{1}}}}} is required by {{Template|{{{2}}}}}|{{Template|{{{2}}}}} has {{{1}}} mandatory parameters}}!</span></onlyinclude></includeonly>
<includeonly><onlyinclude><span class="error" style="font-size:medium;">{{#if:{{IsNum|{{{1}}}}}|{{Template|{{{2}}}}} has {{{1}}} mandatory parameters|{{Code|{{{1}}}}} is required by {{Template|{{{2}}}}}}}!</span></onlyinclude></includeonly>

Revision as of 16:16, 24 October 2022

Icon-documentation.svg

Template:Required is a helper template for Template:Error, used to call out missing mandatory parameters.

Usage

It accepts two mandatory parameter:

  • 1 is the name of the parameter or the number of parameters.
  • 2 is the name of the template.

It should generally be included as the default return for parameters. For example, if a template called "bar" has a required parameter called "foo", it should be used like so: {{{foo|{{Required|foo|bar}}}}}

Return

{{Required|foo|bar}} returns:
foo is required by Template:bar!
{{Required|7|bar}} returns:
Template:bar has 7 mandatory parameters!

The documentation above was transcluded from Template:Required/Documentation.