Template:SubnauticaLink: Difference between revisions
m (documentation.) Tag: 2017 source edit |
(Revamped text to automatically link to the other game's article) |
||
Line 1: | Line 1: | ||
{|style="background-color:rgba(95, 120, 171, 0.37); color:##FFFFFF; margin:0 auto 1em auto; padding:0 2px; border:1px solid #3b5773; -moz-border-radius:7.5px; border-radius:7.5px; text-align:center; width:100%;" |
{|style="background-color:rgba(95, 120, 171, 0.37); color:##FFFFFF; margin:0 auto 1em auto; padding:0 2px; border:1px solid #3b5773; -moz-border-radius:7.5px; border-radius:7.5px; text-align:center; width:100%;" |
||
|- |
|- |
||
|align="center" | <small>This article is about {{# |
|align="center" | <small>This article is about '''{{{1|{{#explode:{{PAGENAME}}|(}}}}}''' as it appears in ''{{#ifeq:{{{3|{{#explode:{{PAGENAME}}|(|1}}}}}|Below Zero)|Below Zero|Subnautica}}''. To see this subject as it appears in ''{{#ifeq:{{{3|{{#explode:{{PAGENAME}}|(|1}}}}}|Below Zero)|Subnautica|Below Zero}}'', click [[{{{2|{{#explode:{{PAGENAME}}|(}} {{#ifeq:{{#explode:{{PAGENAME}}|(|1}}|Below Zero)|(Subnautica)|(Below Zero)}}}}}|'''here''']].</small> |
||
|}<noinclude> |
|}<noinclude> |
||
{{Documentation}} |
{{Documentation}} |
Revision as of 18:06, 18 August 2021
This article is about {{#explode:SubnauticaLink|(}} as it appears in Subnautica. To see this subject as it appears in Below Zero, click [[{{#explode:SubnauticaLink|(}} (Below Zero)|here]]. |
Template used for linking to related articles on the Subnautica:Below Zero wiki.
Usage
Using the parameters
Input:{{SubnauticaLink|Stalker|Flashlight|Below Zero)}}
Output:
This article is about Stalker as it appears in Subnautica. To see this subject as it appears in Below Zero, click here. |
Placed on a Below Zero article
Input on Chinese Potato (Below Zero):{{SubnauticaLink}}
Output on Chinese Potato (Below Zero):
Placed on a Subnautica article
This article is about Chinese Potato as it appears in Below Zero. To see this subject as it appears in Subnautica, click here. |
{{SubnauticaLink}}
Output on Chinese Potato (Subnautica):
This article is about Chinese Potato as it appears in Subnautica. To see this subject as it appears in Below Zero, click here. |
Parameters
Note: the parameters only need to be defined when their default behaviors are not wanted. In most cases, the default behaviors are correct, so the parameters are usually not needed.
- First Parameter: This parameter decides what the text after "This article is about" is. By default, this is the name of the article without the parenthetical note at the end (e.g., on Chinese Potato (Below Zero), the text would be "Chinese Potato").
- Second Parameter: This parameter decides where here at the end of the template links to. By default, the template takes the current article's name, replaces (Below Zero) with (Subnautica) or vice versa, and links to that new article (e.g., on Chinese Potato (Below Zero), it would link to Chinese Potato (Subnautica)).
- Third Parameter: This parameter controls when Subnautica and Below Zero appear in the template. By default, the template does this automatically based on the current article's name (e.g., on Chinese Potato (Subnautica), it would say, ". . . as it appears in Subnautica. To see this subject as it appears in Below Zero . . .).
This template is put on articles that have a different article for the different games. If the articles have the same name, parameters 1 and 2 are unncessary; if they both use (Subnautica) and (Below Zero), parameter 3 is unnecessary.
Parameter | Description | Type | Status | |
---|---|---|---|---|
The current article's name | 1 | Specify the name of the current article
| String | optional |
The other article's name | 2 | Specify the name of the other game's article
| String | optional |
Current Game Name | 3 | Unnecessary if the articles end in (Below Zero) and (Subnautica) correctly; otherwise, write "Below Zero)" if this article is about Below Zero or any other text if it is not
| String | optional |