ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Difference between revisions of "Template:Tutorial"

From ModEnc
Jump to: navigation, search
(Now it should work)
(Beta version finished)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
<div style="position: relative; top: -1em; left: 0em;">
 
<div style="position: relative; top: -1em; left: 0em;">
{| class="template_modbar_table gamegallery"
+
<center>{{#ifeq: {{{xcc}}} | yes | [[Image:Game_xcc_yes.png]][[Category:XCC Tutorials]]}}
|{{#ifeq: {{{xcc}}} | yes | [[Image:Game_td_yes.png]][[Category:XCC Tutorials]]}}
+
{{#ifeq: {{{lb}}} | yes | [[Image:Game_lb_yes.png]][[Category:LaunchBase Tutorials]]}}
|{{#ifeq: {{{lb}}} | yes | [[Image:Game_td_yes.png]][[Category:LaunchBase Tutorials]]}}
+
{{#ifeq: {{{td}}} | yes | [[Image:Game_td_yes.png]][[Category:Tiberian Dawn Tutorials]]}}
|{{#ifeq: {{{td}}} | yes | [[Image:Game_td_yes.png]][[Category:Tiberian Dawn Tutorials]]}}
+
{{#ifeq: {{{co}}} | yes | [[Image:Game_co_yes.png]][[Category:Covert Operations Tutorials]]}}
|{{#ifeq: {{{co}}} | yes | [[Image:Game_co_yes.png]][[Category:Covert Operations Tutorials]]}}
+
{{#ifeq: {{{ra}}} | yes | [[Image:Game_ra_yes.png]][[Category:Red Alert Tutorials]]}}
|{{#ifeq: {{{ra}}} | yes | [[Image:Game_ra_yes.png]][[Category:Red Alert Tutorials]]}}
+
{{#ifeq: {{{cs}}} | yes | [[Image:Game_cs_yes.png]][[Category:Counterstrike Tutorials]]}}
|{{#ifeq: {{{cs}}} | yes | [[Image:Game_cs_yes.png]][[Category:Counterstrike Tutorials]]}}
+
{{#ifeq: {{{am}}} | yes | [[Image:Game_am_yes.png]][[Category:Aftermath Tutorials]]}}
|{{#ifeq: {{{am}}} | yes | [[Image:Game_am_yes.png]][[Category:Aftermath Tutorials]]}}
+
{{#ifeq: {{{ts}}} | yes | [[Image:Game_ts_yes.png]][[Category:Tiberian Sun Tutorials]]}}
|{{#ifeq: {{{ts}}} | yes | [[Image:Game_ts_yes.png]][[Category:Tiberian Sun Tutorials]]}}
+
{{#ifeq: {{{fs}}} | yes | [[Image:Game_fs_yes.png]][[Category:Firestorm Tutorials]]}}
|{{#ifeq: {{{fs}}} | yes | [[Image:Game_fs_yes.png]][[Category:Firestorm Tutorials]]}}
+
{{#ifeq: {{{ets}}} | yes | [[Image:Game_ets_yes.png]][[Category:ETS Tutorials]]}}
|{{#ifeq: {{{ets}}} | yes | [[Image:Game_ets_yes.png]][[Category:ETS Tutorials]]}}
+
{{#ifeq: {{{ra2}}} | yes | [[Image:Game_ra2_yes.png]][[Category:Red Alert 2 Tutorials]]}}
|{{#ifeq: {{{ra2}}} | yes | [[Image:Game_ra2_yes.png]][[Category:Red Alert 2 Tutorials]]}}
+
{{#ifeq: {{{yr}}} | yes | [[Image:Game_yr_yes.png]][[Category:Yuri's Revenge Tutorials]]}}
|{{#ifeq: {{{yr}}} | yes | [[Image:Game_yr_yes.png]][[Category:Yuri's Revenge Tutorials]]}}
+
{{#ifeq: {{{rp}}} | yes | [[Image:Game_rp_yes.png]][[Category:RockPatch Tutorials]]}}
|{{#ifeq: {{{rp}}} | yes | [[Image:Game_rp_yes.png]][[Category:RockPatch Tutorials]]}}
+
{{#ifeq: {{{gen}}} | yes | [[Image:Game_gen_yes.png]][[Category:Generals Tutorials]]}}
|{{#ifeq: {{{gen}}} | yes | [[Image:Game_gen_yes.png]][[Category:Generals Tutorials]]}}
+
{{#ifeq: {{{zh}}} | yes | [[Image:Game_zh_yes.png]][[Category:Zero Hour Tutorials]]}}
|{{#ifeq: {{{zh}}} | yes | [[Image:Game_zh_yes.png]][[Category:Zero Hour Tutorials]]}}
+
{{#ifeq: {{{tw}}} | yes | [[Image:Game_tw_yes.png]][[Category:Tiberium Wars Tutorials]]}}
|{{#ifeq: {{{tw}}} | yes | [[Image:Game_tw_yes.png]][[Category:Tiberium Wars Tutorials]]}}
+
</center>
|}
 
 
{|align="left" width="100%" cellspacing="0" cellpadding="0" class="template_flag" height="100%"
 
{|align="left" width="100%" cellspacing="0" cellpadding="0" class="template_flag" height="100%"
 
|-
 
|-
Line 30: Line 29:
  
 
<noinclude>
 
<noinclude>
This page generates a tutorial header. '''It is still under contruction!'''
+
This page generates a tutorial header.
<!--This template generates the general flag header to be used at the very top of flag pages.
 
  
 
==Usage==
 
==Usage==
<pre>{{Flag
+
<pre>{{Tutorial
 
|name=
 
|name=
|files=
+
|contrib=
|values={{values|}}
+
|games/tools
|special=
 
|default=
 
|types=
 
|games
 
 
}}</pre>
 
}}</pre>
 
{| cellpadding="4" class="table_descrow" style="float: right;"
 
{| cellpadding="4" class="table_descrow" style="float: right;"
 
!Code
 
!Code
!Game
+
!Game/Tool
 
!Code
 
!Code
!Game
+
!Game/Tool
 
|-
 
|-
 
|td
 
|td
Line 83: Line 77:
 
|tw
 
|tw
 
|[[Tiberium Wars]]
 
|[[Tiberium Wars]]
 +
|-
 +
|xcc
 +
|[[XCC Mixer]]
 +
|lb
 +
|[[LaunchBase]]
 
|}
 
|}
 
Copy-paste the code above and fill out the parameters as follows:<br>
 
Copy-paste the code above and fill out the parameters as follows:<br>
*'''name:''' The exact name of the flag (Defaults to page name)
+
*'''name:''' Headline of the tutorial (Defaults to page name which should be prefered)
*'''files:''' In which files this flag can be used (Defaults to {{rules}})
+
*'''contrib:''' Creators/contributors of this tutorial
*'''values:''' Possible values/[[Help:Values|value types]]; use [[Template:Values]] for common ones.
+
*'''games/tools:''' To which games or tools this tutorial applies. To select a game/tool, add a parameter in the form of code=yes to your template call, e.g. lb=yes. A list of available codes is to the right of this text.{{clr}}
*'''special:''' Special values, if any (like -1 for unlimited) - ''don't set this if there is none''
 
*'''default:''' The default value for this flag - ''don't set this if there is none''
 
*'''types:''' Where you can use this flag
 
*'''games:''' In which games this flag is usable. To select a game, add a parameter in the form of code=yes to your template call, e.g. yr=yes. A list of available codes is to the right of this text.{{clr}}
 
 
==Notes==
 
==Notes==
*If there is no value for special or default, do not set anything.
+
*This template is intended to be put directly at the page's beginning - no extra horizontal lines, to empty lines, nothing. Either relocate the TOC via <nowiki>__TOC__</nowiki> or disable it entirely via <nowiki>__NOTOC__</nowiki>.
*If a value begins with a - (minus), write <code>&amp;#8722;value</code> instead.
 
*This template is intended to be put directly at the page's beginning - no extra horizontal lines, to empty lines, nothing. Either relocate the TOC via <nowiki>__TOC__</nowiki> or disable it entirely via <nowiki>__NOTOC__</nowiki>.  
 
<br>Template includes [[:Category:INI Flags]] automatically.
 
<br><br>
 
''See example usages [[Ammo|here]] and [[ButtonList|here]].''-->
 
 
</noinclude>
 
</noinclude>

Revision as of 16:14, 31 March 2008


This page generates a tutorial header.

Usage

{{Tutorial
|name=
|contrib=
|games/tools
}}
Code Game/Tool Code Game/Tool
td Tiberian Dawn co The Covert Operations
ra Red Alert cs Counterstrike
am Aftermath ts Tiberian Sun
fs Firestorm ets Extended Tiberian Sun
ra2 Red Alert 2 yr Yuri's Revenge
rp RockPatch gen Generals
zh Zero Hour tw Tiberium Wars
xcc XCC Mixer lb LaunchBase

Copy-paste the code above and fill out the parameters as follows:

  • name: Headline of the tutorial (Defaults to page name which should be prefered)
  • contrib: Creators/contributors of this tutorial
  • games/tools: To which games or tools this tutorial applies. To select a game/tool, add a parameter in the form of code=yes to your template call, e.g. lb=yes. A list of available codes is to the right of this text.

Notes

  • This template is intended to be put directly at the page's beginning - no extra horizontal lines, to empty lines, nothing. Either relocate the TOC via __TOC__ or disable it entirely via __NOTOC__.