GameIntro – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix big spacing)
(Some wiki formatting)
Line 75: Line 75:
__NOTOC__
__NOTOC__
__NOEDITSECTION__
__NOEDITSECTION__
{{#ifeq: {{{isDLC|n}}} | n | [[Category:Projects]]}}
{{#ifeq: {{{isDLC|n}}} | n | [[Category:Projects]]}}</includeOnly><noinclude>
 
</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'''''}}
* image: Image displayed on the top right
* image: Image displayed on the top right
* size: (optional, default 250) Size of ''image'' in px
* size: (optional, default 250) Size of ''image'' in px
* intro: A short summary of what the game is about
* intro: A short summary of what the game is about
* feature'''#''': (optional) A list of features (# in range 1..20)
* feature'''#''': (Optional) A list of features (# in range 1..20)
* gallery'''#''': (optional) Images displayed at the bottom of the page (# in range 1..4)
* gallery'''#''': (Optional) Images displayed at the bottom of the page (# in range 1..4)
* dlc'''#''': (optional) Available DLCs (# in range 1..13)
* dlc'''#''': (Optional) Available DLCs (# in range 1..13)
* 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 <nowiki>[[Category: Projects]]</nowiki> 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).}}


''Template will automatically remove TOC and edit-sections. Additionally, page is automatically added to category [[:Category:Projects|Projects]].''
== Template ==
<spoiler text="Show template">
<pre>
{{GameIntro
|image =
|intro =
|feature1 =
|feature2 =
|feature3 =
|feature4 =
|feature5 =
|feature6 =
|feature7 =
|feature8 =
|feature9 =
|feature10 =
|feature11 =
|start1 =
|start2 =
|start3 =
|start4 =
|start5 =
|gallery1 =
|gallery2 =
|gallery3 =
|gallery4 =
}}
</pre>
</spoiler>


= Example =
== Example ==
'''See source code of [[:Category:DayZ]].'''
See [[Special:WhatLinksHere/{{FULLPAGENAME}} | pages using this template]].


[[Category:Templates|{{uc:{{PAGENAME}}}}]]
[[Category:Templates|{{uc:{{PAGENAME}}}}]]
</noinclude>
</noinclude>

Revision as of 02:39, 4 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 [[Category: Projects]] from being added to the page
The template will automatically remove TOC and section edit links. Additionally, the page is automatically added to the Projects category (if not a DLC).

Template

{{GameIntro
|image = 
|intro = 
|feature1 = 
|feature2 = 
|feature3 = 
|feature4 = 
|feature5 = 
|feature6 = 
|feature7 = 
|feature8 = 
|feature9 = 
|feature10 = 
|feature11 = 
|start1 = 
|start2 = 
|start3 = 
|start4 = 
|start5 = 
|gallery1 = 
|gallery2 = 
|gallery3 = 
|gallery4 = 
}}

Example

See pages using this template.