Difference between revisions of "Template:Variants manual/doc"
From Captain of Industry Wiki
(Created page with ";Purpose :This template is designed as a subroutine of "Template: Variants" (WIP). ;Usage :This template accepts the following parameters: ::<code>{{{1}}}</code>: Common part of the machine name for all tiers, such as Pipe and Boiler. ::<code>{{{2}}}</code> - <code>{{{8}}}</code>: Remaining part of the machine's name, such as II and Gas :This template requires the page of 1st tier of the machine in the wiki. Notably, all parameters are case-sensitive. ;Example * {...") |
|||
Line 7: | Line 7: | ||
::<code>{{{2}}}</code> - <code>{{{8}}}</code>: Remaining part of the machine's name, such as II and Gas | ::<code>{{{2}}}</code> - <code>{{{8}}}</code>: Remaining part of the machine's name, such as II and Gas | ||
:This template requires the page of 1st tier of the machine in the wiki. Notably, all parameters are case-sensitive. | :This template requires the page of 1st tier of the machine in the wiki. Notably, all parameters are case-sensitive. | ||
:The parameters work as the following instead of above when <code>irregular = yes</code> is specified. | |||
::<code>{{{1}}}</code>: The page name of 1st tire machine, such as farm. | |||
::<code>{{{2}}}</code>: The name of 1st tire machine. Default value: <code>{{{1}}}</code> | |||
::<code>{{{3}}}</code>, <code>{{{5}}}</code>, <code>{{{7}}}</code>, ..., <code>{{{15}}}</code>: The page name of 2nd - 8th tire machine. | |||
::<code>{{{4}}}</code>, <code>{{{6}}}</code>, <code>{{{8}}}</code>, ..., <code>{{{16}}}</code>: The abbreviated name of 2nd - 8th tire machine. They ares shown in square brackets. | |||
;Example | ;Example | ||
Line 13: | Line 18: | ||
* {{t|Variants manual|Assembly|Manual|Electric|(Electric) II|Robotic|(Robotic) II}} → {{Variants manual|Assembly|Manual|Electric|(Electric) II|Robotic|(Robotic) II}} | * {{t|Variants manual|Assembly|Manual|Electric|(Electric) II|Robotic|(Robotic) II}} → {{Variants manual|Assembly|Manual|Electric|(Electric) II|Robotic|(Robotic) II}} | ||
* {{t|Variants manual|Captain's Office}} → {{Variants manual|Captain's Office}} | * {{t|Variants manual|Captain's Office}} → {{Variants manual|Captain's Office}} | ||
* {{t|Variants manual|irregular=yes|Farm|Farm|Irrigated Farm|Irrigated}} → {{Variants manual|irregular=yes|Farm|Farm|Irrigated Farm|Irrigated}} | |||
* {{t|Variants manual}} → {{Variants manual}} | * {{t|Variants manual}} → {{Variants manual}} | ||
* {{t|Variants manual|Ipsum|II|III}} → {{Variants manual|Ipsum|II|III}} | * {{t|Variants manual|Ipsum|II|III}} → {{Variants manual|Ipsum|II|III}} |
Revision as of 21:17, 3 November 2022
- Purpose
- This template is designed as a subroutine of "Template: Variants" (WIP).
- Usage
- This template accepts the following parameters:
{{{1}}}
: Common part of the machine name for all tiers, such as Pipe and Boiler.{{{2}}}
-{{{8}}}
: Remaining part of the machine's name, such as II and Gas
- This template requires the page of 1st tier of the machine in the wiki. Notably, all parameters are case-sensitive.
- The parameters work as the following instead of above when
irregular = yes
is specified.{{{1}}}
: The page name of 1st tire machine, such as farm.{{{2}}}
: The name of 1st tire machine. Default value:{{{1}}}
{{{3}}}
,{{{5}}}
,{{{7}}}
, ...,{{{15}}}
: The page name of 2nd - 8th tire machine.{{{4}}}
,{{{6}}}
,{{{8}}}
, ...,{{{16}}}
: The abbreviated name of 2nd - 8th tire machine. They ares shown in square brackets.
- Example
- {{Variants manual|Pipe|II|III}} → Pipe [II•III]
- {{Variants manual|Boiler|Coal|Gas|Electric}} → Boiler (Coal) [Gas•Electric]
- {{Variants manual|Assembly|Manual|Electric|(Electric) II|Robotic|(Robotic) II}} → Assembly (Manual) [Electric•Electric II•Robotic•Robotic II]
- {{Variants manual|Captain's Office}} → Captain's Office II
- {{Variants manual|Farm|Farm|Irrigated Farm|Irrigated}} → Farm [Irrigated]
- {{Variants manual}} → Template Variants: parameter {{{1}}} is not provided.
- {{Variants manual|Ipsum|II|III}} → Template Variants: the page of "Ipsum", "Ipsum II" or "Ipsum (II)" is not found in the wiki.
- Details
-
- Bracket Completion
- The round brackets may be omitted if the entire parameter is covered by the brackets. For example, you can input "Gas" instead of "(Gas)." However, the brackets cannot be omitted if the parameter is covered partially such as "(Electric) II."
- Name of 1st tier machine
- This template searches the machine page in the wiki for choosing a format. If there is a page named
{{{1}}}
, it is considered as 1st tier of the machine. If there is a page named "{{{1}}}
{{{2}}}
" or "{{{1}}}
({{{2}}}
)", this name is considered as 1st tier of the machine.