Difference between revisions of "Template:GameIntro"

From Bohemia Interactive Community
Jump to navigation Jump to search
(Some wiki formatting)
m (Add TemplateCase usage)
Line 1: Line 1:
<includeOnly>[[File:{{{image|MaldenFi17.jpg}}}|{{{size|250}}}px|right]]
+
<includeonly>[[File:{{{image|MaldenFi17.jpg}}}|{{{size|250}}}px|right]]
  
 
=== Introduction ===
 
=== Introduction ===
Line 5: Line 5:
 
{{#if: {{{feature1|}}} |
 
{{#if: {{{feature1|}}} |
 
=== Features ===
 
=== Features ===
* {{{feature1}}} |}}
+
* {{{feature1}}} }}
{{#if: {{{feature2|}}}|
+
{{#if: {{{feature2|}}} |
 
* {{{feature2}}}}}
 
* {{{feature2}}}}}
{{#if: {{{feature3|}}} | * {{{feature3}}} |}}<!--
+
{{#if: {{{feature3|}}} | * {{{feature3}}} }}<!--
-->{{#if: {{{feature4|}}} | * {{{feature4}}} |}}<!--
+
-->{{#if: {{{feature4|}}} | * {{{feature4}}} }}<!--
-->{{#if: {{{feature5|}}} | * {{{feature5}}} |}}<!--
+
-->{{#if: {{{feature5|}}} | * {{{feature5}}} }}<!--
-->{{#if: {{{feature6|}}} | * {{{feature6}}} |}}<!--
+
-->{{#if: {{{feature6|}}} | * {{{feature6}}} }}<!--
-->{{#if: {{{feature7|}}} | * {{{feature7}}} |}}<!--
+
-->{{#if: {{{feature7|}}} | * {{{feature7}}} }}<!--
-->{{#if: {{{feature8|}}} | * {{{feature8}}} |}}<!--
+
-->{{#if: {{{feature8|}}} | * {{{feature8}}} }}<!--
-->{{#if: {{{feature9|}}} | * {{{feature9}}} |}}<!--
+
-->{{#if: {{{feature9|}}} | * {{{feature9}}} }}<!--
-->{{#if: {{{feature10|}}} | * {{{feature10}}} |}}<!--
+
-->{{#if: {{{feature10|}}} | * {{{feature10}}} }}<!--
-->{{#if: {{{feature11|}}} | * {{{feature11}}} |}}<!--
+
-->{{#if: {{{feature11|}}} | * {{{feature11}}} }}<!--
-->{{#if: {{{feature12|}}} | * {{{feature12}}} |}}<!--
+
-->{{#if: {{{feature12|}}} | * {{{feature12}}} }}<!--
-->{{#if: {{{feature13|}}} | * {{{feature13}}} |}}<!--
+
-->{{#if: {{{feature13|}}} | * {{{feature13}}} }}<!--
-->{{#if: {{{feature14|}}} | * {{{feature14}}} |}}<!--
+
-->{{#if: {{{feature14|}}} | * {{{feature14}}} }}<!--
-->{{#if: {{{feature15|}}} | * {{{feature15}}} |}}<!--
+
-->{{#if: {{{feature15|}}} | * {{{feature15}}} }}<!--
-->{{#if: {{{feature16|}}} | * {{{feature16}}} |}}<!--
+
-->{{#if: {{{feature16|}}} | * {{{feature16}}} }}<!--
-->{{#if: {{{feature17|}}} | * {{{feature17}}} |}}<!--
+
-->{{#if: {{{feature17|}}} | * {{{feature17}}} }}<!--
-->{{#if: {{{feature18|}}} | * {{{feature18}}} |}}<!--
+
-->{{#if: {{{feature18|}}} | * {{{feature18}}} }}<!--
-->{{#if: {{{feature19|}}} | * {{{feature19}}} |}}<!--
+
-->{{#if: {{{feature19|}}} | * {{{feature19}}} }}<!--
-->{{#if: {{{feature20|}}} | * {{{feature20}}} |}}
+
-->{{#if: {{{feature20|}}} | * {{{feature20}}} }}
  
 
{{#if: {{{gallery1|}}}|
 
{{#if: {{{gallery1|}}}|
Line 40: Line 40:
 
}}
 
}}
  
{{#if: {{{dlc1|}}} |  
+
{{#if: {{{dlc1|}}} |
 
=== DLCs ===
 
=== DLCs ===
* {{{dlc1}}} | }}
+
* {{{dlc1}}} }}
{{#if: {{{dlc2|}}} | * {{{dlc2}}} |}}<!--
+
{{#if: {{{dlc2|}}} | * {{{dlc2}}} }}<!--
-->{{#if: {{{dlc3|}}} | * {{{dlc3}}} |}}<!--
+
-->{{#if: {{{dlc3|}}} | * {{{dlc3}}} }}<!--
-->{{#if: {{{dlc4|}}} | * {{{dlc4}}} |}}<!--
+
-->{{#if: {{{dlc4|}}} | * {{{dlc4}}} }}<!--
-->{{#if: {{{dlc5|}}} | * {{{dlc5}}} |}}<!--
+
-->{{#if: {{{dlc5|}}} | * {{{dlc5}}} }}<!--
-->{{#if: {{{dlc6|}}} | * {{{dlc6}}} |}}<!--
+
-->{{#if: {{{dlc6|}}} | * {{{dlc6}}} }}<!--
-->{{#if: {{{dlc7|}}} | * {{{dlc7}}} |}}<!--
+
-->{{#if: {{{dlc7|}}} | * {{{dlc7}}} }}<!--
-->{{#if: {{{dlc8|}}} | * {{{dlc8}}} |}}<!--
+
-->{{#if: {{{dlc8|}}} | * {{{dlc8}}} }}<!--
-->{{#if: {{{dlc9|}}} | * {{{dlc9}}} |}}<!--
+
-->{{#if: {{{dlc9|}}} | * {{{dlc9}}} }}<!--
-->{{#if: {{{dlc10|}}} | * {{{dlc10}}} |}}<!--
+
-->{{#if: {{{dlc10|}}} | * {{{dlc10}}} }}<!--
-->{{#if: {{{dlc11|}}} | * {{{dlc11}}} |}}<!--
+
-->{{#if: {{{dlc11|}}} | * {{{dlc11}}} }}<!--
-->{{#if: {{{dlc12|}}} | * {{{dlc12}}} |}}<!--
+
-->{{#if: {{{dlc12|}}} | * {{{dlc12}}} }}<!--
-->{{#if: {{{dlc13|}}} | * {{{dlc13}}} |}}
+
-->{{#if: {{{dlc13|}}} | * {{{dlc13}}} }}
{{#if: {{{start1|}}} |  
+
{{#if: {{{start1|}}} |
 
=== Getting Started ===
 
=== Getting Started ===
* {{{start1}}} | }}
+
* {{{start1}}} }}
{{#if: {{{start2|}}} | * {{{start2}}} |}}<!--
+
{{#if: {{{start2|}}} | * {{{start2}}} }}<!--
-->{{#if: {{{start3|}}} | * {{{start3}}} |}}<!--
+
-->{{#if: {{{start3|}}} | * {{{start3}}} }}<!--
-->{{#if: {{{start4|}}} | * {{{start4}}} |}}<!--
+
-->{{#if: {{{start4|}}} | * {{{start4}}} }}<!--
-->{{#if: {{{start5|}}} | * {{{start5}}} |}}<!--
+
-->{{#if: {{{start5|}}} | * {{{start5}}} }}<!--
-->{{#if: {{{start6|}}} | * {{{start6}}} |}}<!--
+
-->{{#if: {{{start6|}}} | * {{{start6}}} }}<!--
-->{{#if: {{{start7|}}} | * {{{start7}}} |}}
+
-->{{#if: {{{start7|}}} | * {{{start7}}} }}
  
{{#if: {{{social1|}}} |  
+
{{#if: {{{social1|}}} |
 
=== Social Media ===
 
=== Social Media ===
* {{{social1}}} |}}
+
* {{{social1}}} }}
{{#if: {{{social2|}}} | * {{{social2}}} |}}<!--
+
{{#if: {{{social2|}}} | * {{{social2}}} }}<!--
-->{{#if: {{{social3|}}} | * {{{social3}}} |}}<!--
+
-->{{#if: {{{social3|}}} | * {{{social3}}} }}<!--
-->{{#if: {{{social4|}}} | * {{{social4}}} |}}<!--
+
-->{{#if: {{{social4|}}} | * {{{social4}}} }}<!--
-->{{#if: {{{social5|}}} | * {{{social5}}} |}}
+
-->{{#if: {{{social5|}}} | * {{{social5}}} }}
  
 
__NOTOC__
 
__NOTOC__
 
__NOEDITSECTION__
 
__NOEDITSECTION__
{{#ifeq: {{{isDLC|n}}} | n | [[Category:Projects]]}}</includeOnly><noinclude>
+
{{#ifeq: {{{isDLC|n}}} | n | {{TemplateCase||[[Category:Projects]]}}}}</includeonly><noinclude>
 
 
 
== Usage ==
 
== Usage ==
 
{{<nowiki/>GameIntro|'''''image'''''|'''''size'''''|'''''intro'''''|'''''feature''#'''|'''''gallery''#'''|'''''dlc''#'''|'''''start''#'''|'''''social''#'''|'''''isDLC'''''}}
 
{{<nowiki/>GameIntro|'''''image'''''|'''''size'''''|'''''intro'''''|'''''feature''#'''|'''''gallery''#'''|'''''dlc''#'''|'''''start''#'''|'''''social''#'''|'''''isDLC'''''}}
Line 87: Line 86:
 
* start'''#''': (Optional) A list with "getting started" pages (# in range 1..7)
 
* start'''#''': (Optional) A list with "getting started" pages (# in range 1..7)
 
* social'''#''': (Optional) Links to social media (# in range 1..5)
 
* social'''#''': (Optional) Links to social media (# in range 1..5)
* isDLC: (Optional, default n) Enter ''y'' if it is a DLC. This will prevent <nowiki>[[Category: Projects]]</nowiki> from being added to the page
+
* isDLC: (Optional, default n) Enter ''y'' if it is a DLC. This will prevent <tt>[[:Category: Projects]]</tt> from being added to the page
  
 
{{Informative | The template will automatically remove TOC and section edit links. Additionally, the page is automatically added to the [[:Category:Projects|Projects]] category (if not a DLC).}}
 
{{Informative | The template will automatically remove TOC and section edit links. Additionally, the page is automatically added to the [[:Category:Projects|Projects]] category (if not a DLC).}}

Revision as of 20:04, 16 January 2021

Usage

{{GameIntro|image|size|intro|feature#|gallery#|dlc#|start#|social#|isDLC}}

  • image: Image displayed on the top right
  • size: (optional, default 250) Size of image in px
  • intro: A short summary of what the game is about
  • feature#: (Optional) A list of features (# in range 1..20)
  • gallery#: (Optional) Images displayed at the bottom of the page (# in range 1..4)
  • dlc#: (Optional) Available DLCs (# in range 1..13)
  • start#: (Optional) A list with "getting started" pages (# in range 1..7)
  • social#: (Optional) Links to social media (# in range 1..5)
  • isDLC: (Optional, default n) Enter y if it is a DLC. This will prevent Projects from being added to the page

Informative

Template

Show template


Example

See pages using this template.