A Minecraft Struggle Wiki
Advertisement
A Minecraft Struggle Wiki


Description

This template is used to identify either:
  • This article contains content related to a chapter that is in a part, or
  • This article contains content related to a part.

It also has a convenience-side-effect: It adds it to the Parts category or the Chapters category depending on the type of article. This helps speed up this wiki's indev process.

Syntax

{{InPart|<1?!>|<2?>}}

Parameters

For examples of how to use these parameters, see #Examples.

Parameter name Description Required? Default
1 The name of the article that is for the part that this article is being set to be in. No, but should be passed in for proper usage (?!)
2 Whether this article is of a chapter in the part ("chapter" is passed in) or of the part ("chapter" is not passed in [including nothing]) specified in parameter 1 (see above). No (?) Qualification for not being "chapter", thus this article being the one for the part itself

Examples

No arguments

Given no arguments, this template will bug out.

{{InPart||}}

Produces:

[[Category:]]


Only 1st argument

The 1st argument is the only major (and required for proper usage) one, as it specifies the part title that this article belongs to, so omitting the 2nd argument should not cause any problems.

{{InPart|Part 1 - Understanding the World of "Minecraft"|}}

Produces:


Why this truly works is because, by default, the 2nd parameter will be evaluated as if something was specified that wasn't "chapter", since nothing is definitely not "chapter".


Bad part title

A bad (or irrelevant) part title will not cause this template to "bug out", per se, just a red link (if it doesn't exist) and a deceptive category will be used.

Only 1st argument

As mentioned before, the 1st argument is the only major (and required for proper usage) one, as it specifies the part title that this article belongs to, so omitting the 2nd argument should not cause any problems, and because a bad (or irrelevant) part title will not cause this template to "bug out", per se, this will work fine.

{{InPart|Part 9 - Game Over|}}

Produces:


As mentioned before, why this truly works is because, by default, the 2nd parameter will be evaluated as if something was specified that wasn't "chapter", since nothing is definitely not "chapter".


All arguments

Passing in the 2nd argument will be only better (or in this case, the same) than before, DUH!

{{InPart|Part 9 - Game Over|chapter}}

Produces:


All arguments

Passing in all the arguments will allow all of the behavior from this template from before!

chapter

This will indicate that this article is a chapter within the part.

{{InPart|Part 1 - Understanding the World of "Minecraft"|chapter}}

Produces:


part (or anything else)

This will indicate that this article is the part itself.

{{InPart|Part 1 - Understanding the World of "Minecraft"|part}}

Produces:

Advertisement