ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
Difference between revisions of "Template:ModBar"
From ModEnc
(I fucking hate template editing - conditional template doesn't work, setting defaults.) |
(Most complex template _ever_.) |
||
Line 1: | Line 1: | ||
− | {| | + | <includeonly>{{Sidebar|width=280px|float=right|title={{{name|{{PAGENAME}}}}}|content={{ModEnc:Sidebars/ModBar|image={{{image|Missingshot.png}}}|dev={{{dev|Anonymous Modder}}}|td={{{td|no}}}|ra={{{ra|no}}}|cs={{{cs|no}}}|am={{{am|no}}}|ts={{{ts|no}}}|fs={{{fs|no}}}|ets={{{ets|no}}}|ra2={{{ra2|no}}}|yr={{{yr|no}}}|rp={{{rp|no}}}|gen={{{gen|no}}}|zh={{{zh|no}}}|tw={{{tw|no}}}|type={{{type|Expansion}}}|dates={{{dates|unreleased}}}|version={{{version|1.0}}}|site={{{site|{{SERVER}}/{{FULLPAGENAMEE}}}}}|}}}}</includeonly> |
− | + | <noinclude>{{ModBar | |
− | | | + | |name=RockPatch |
− | | | + | |dev=pd, jonwil, C&CVK |
− | | | + | |type=Patch |
− | | | + | |dates=27.10.2006 |
− | | | + | |version=v1.08 SE |
− | | | + | |site=http://rtb.strategy-x.com |
− | | | + | |yr=yes |
− | |{{{ | + | }} |
− | | | + | Usage:<pre> |
− | | | ||
− | |{{{ | ||
− | | | ||
− | | | ||
− | |{{{ | ||
− | | | ||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | | | ||
− | | | ||
− | |{{{ | ||
− | | | ||
− | | | ||
− | | | ||
− | |} | ||
− | <includeonly> | ||
− | |||
− | |||
{{ModBar | {{ModBar | ||
|name= | |name= | ||
|image= | |image= | ||
− | |||
|dev= | |dev= | ||
|type= | |type= | ||
|dates= | |dates= | ||
|version= | |version= | ||
− | |||
− | |||
|site= | |site= | ||
+ | |game | ||
}} | }} | ||
</pre> | </pre> | ||
Line 51: | Line 28: | ||
*'''name:''' Name of the mod. ('''Default:''' Current page name) | *'''name:''' Name of the mod. ('''Default:''' Current page name) | ||
*'''image:''' Name of screenshot.extension. ('''Default:''' [[:Image:Missingshot.png|Missingshot.png]]) | *'''image:''' Name of screenshot.extension. ('''Default:''' [[:Image:Missingshot.png|Missingshot.png]]) | ||
− | |||
*'''dev:''' Developing team name or modder name. ('''Default:''' Anonymous Modder) | *'''dev:''' Developing team name or modder name. ('''Default:''' Anonymous Modder) | ||
*'''type:''' Balancing, Expansion, Total Conversion or similar. ('''Default:''' Expansion) | *'''type:''' Balancing, Expansion, Total Conversion or similar. ('''Default:''' Expansion) | ||
*'''dates:''' Release dates of mod versions. ('''Default:''' Present day) | *'''dates:''' Release dates of mod versions. ('''Default:''' Present day) | ||
*'''version:''' Version number of the mod's current version. ('''Default:''' 1.0) | *'''version:''' Version number of the mod's current version. ('''Default:''' 1.0) | ||
− | |||
− | |||
*'''site:''' Url of the mod's address. Is turned into a link automatically. ('''Default:''' The current page) | *'''site:''' Url of the mod's address. Is turned into a link automatically. ('''Default:''' The current page) | ||
+ | *'''game:''' To choose the game(s) the mod is available for, add a parameter in the form of code=yes to your template call, e.g. yr=yes. You can choose from the following codes/games: | ||
+ | {| cellpadding="4" class="table_descrow" | ||
+ | !Code | ||
+ | !Game | ||
+ | !Code | ||
+ | !Game | ||
+ | |- | ||
+ | |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]] | ||
+ | |} | ||
==Example== | ==Example== | ||
<pre>{{ModBar | <pre>{{ModBar | ||
− | |name= | + | |name=RockPatch |
− | |dev= | + | |dev=pd, jonwil, C&CVK |
− | |type= | + | |type=Patch |
− | |dates= | + | |dates=27.10.2006 |
− | |version= | + | |version=v1.08 SE |
− | |site=http:// | + | |site=http://rtb.strategy-x.com |
+ | |yr=yes | ||
}}</pre> | }}</pre> | ||
− | + | Result visible to the right. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</noinclude> | </noinclude> |
Revision as of 23:59, 3 February 2007
Usage:
{{ModBar |name= |image= |dev= |type= |dates= |version= |site= |game }}
Copy-paste the code above and fill in the fields as instructed.
Screenshot shouldn't be too big, and needs to be uploaded via Special:Upload first.
Box title is the page title.
Template includes Category:Mods and Patches automatically.
- name: Name of the mod. (Default: Current page name)
- image: Name of screenshot.extension. (Default: Missingshot.png)
- dev: Developing team name or modder name. (Default: Anonymous Modder)
- type: Balancing, Expansion, Total Conversion or similar. (Default: Expansion)
- dates: Release dates of mod versions. (Default: Present day)
- version: Version number of the mod's current version. (Default: 1.0)
- site: Url of the mod's address. Is turned into a link automatically. (Default: The current page)
- game: To choose the game(s) the mod is available for, add a parameter in the form of code=yes to your template call, e.g. yr=yes. You can choose from the following codes/games:
Code | Game | Code | Game |
---|---|---|---|
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 |
Example
{{ModBar |name=RockPatch |dev=pd, jonwil, C&CVK |type=Patch |dates=27.10.2006 |version=v1.08 SE |site=http://rtb.strategy-x.com |yr=yes }}
Result visible to the right.