Difference between revisions of "Help:CustomTemplates"

From ZFGCpedia
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Here on ZFGCpedia, we deploy use of some custom-written templates. This page is to provide documentation on those templates.
 
Here on ZFGCpedia, we deploy use of some custom-written templates. This page is to provide documentation on those templates.
  
''A Note on templates: You do NOT need to satisfy each variable in order for a template to draw. [[Help:CustomTemplates#Examples|Click here to see examples]]''
+
''A Note on templates: You do NOT need to satisfy each attribute in order for certain templates to draw. [[Help:CustomTemplates#Examples|Click here to see examples]]''
  
 
= Game Template =
 
= Game Template =
 
[[Template:Game]]
 
[[Template:Game]]
The game template is used to create a metadata info "badge" of sorts detailing information on the given title.  
+
The game template is used to create a metadata info "badge" of sorts detailing information on the given title. You ''MUST'' fill in all of the attributes for this template to draw properly.
  
 
== Syntax ==
 
== Syntax ==
Line 28: Line 28:
  
 
== Examples ==
 
== Examples ==
  <code><nowiki>__FORCETOC__
+
{{Game
 +
|title=Skyward Sword
 +
|release=EU Nov 18, 2011<br />
 +
NA Nov 20, 2011<br />
 +
JP Nov 23, 2011<br />
 +
AU Nov 24, 2011
 +
|genre=Action-Adventure
 +
|developer=Nintendo EAD<br />
 +
Nintendo SPD<br />
 +
Monolith Soft
 +
|publisher=Nintendo
 +
|ESRB=E10+
 +
|platform=Wii
 +
}}
 +
  <code><nowiki>
 
  {{</nowiki></code>Game
 
  {{</nowiki></code>Game
 
  |title=Skyward Sword
 
  |title=Skyward Sword
Line 44: Line 58:
 
</code>
 
</code>
  
 +
= User Badge Templates =
 +
I will use my own user badge as an example here. Mediawiki gives each user a personal page associated with their user account.
  
  <code><nowiki>__FORCETOC__
+
''NOTE: You DO NOT need to satisfy each attribute for this template to draw properly.''
  {{</nowiki></code>Game
+
 
  |title=Star Fox 2
+
== Syntax ==
  |genre=Action-Adventure, Shooter
+
<code><nowiki>{{</nowiki></code>UserProfile
  |developer=Nintendo EAD
+
|avatar=
  |platform=SNES
+
|userid=
  <code><nowiki>}}
+
|gender=
</nowiki>
+
|location=
</code>
+
|notes=
 +
<code><nowiki>}}</nowiki></code>
 +
 
 +
== Example ==
 +
{{UserProfile
 +
|avatar=gm112_avatar.png
 +
|userid=15168
 +
|gender=Male
 +
|location=Ohio
 +
|notes=gm112 smellz
 +
}}
 +
<code><nowiki>{{</nowiki></code>UserProfile
 +
|avatar=gm112_avatar.png
 +
|userid=15168
 +
|gender=Male
 +
|location=Ohio
 +
|notes=gm112 smellz
 +
  <code><nowiki>}}</nowiki></code>
 +
 
 +
= King Of Thieves Item Template =
 +
This is the template for drawing ONLY ITEM information. Should there be content in King of Thieves using this template, it must be replaced with a proper template for said content.
 +
 
 +
''NOTE: Not ALL attributes have to be met for this template''
 +
 
 +
  <code><nowiki>{{</nowiki></code>ItemInfoBox
 +
  |title=
 +
  |img1=
 +
|type=
 +
|location=
 +
|required=
 +
|cost=
 +
  |damagerate=
 +
  |ammo=
 +
  <code><nowiki>}}</nowiki></code>
 +
 
 +
== Examples ==
 +
{{ItemInfobox
 +
|title = Sea Cog
 +
|img1 = <!-- Insert some type of art here later on -->
 +
|obtained = [[KOT:Lake Hylia Temple|Lake Hylia Temple]]
 +
}}
 +
<code><nowiki>{{</nowiki></code>ItemInfobox
 +
|title = Sea Cog
 +
|img1 = <!-- Insert some type of art here later on -->
 +
|obtained = [[KOT:Lake Hylia Temple|Lake Hylia Temple]]
 +
<code><nowiki>}}</nowiki></code>

Latest revision as of 13:30, 25 September 2012

Here on ZFGCpedia, we deploy use of some custom-written templates. This page is to provide documentation on those templates.

A Note on templates: You do NOT need to satisfy each attribute in order for certain templates to draw. Click here to see examples

Game Template

Template:Game The game template is used to create a metadata info "badge" of sorts detailing information on the given title. You MUST fill in all of the attributes for this template to draw properly.

Syntax

In a wiki article, to employ the user of the game template, the following has to be entered:

{{Game
|title=
|release=
|genre=
|developer=
|publisher=
|ESRB=
|platform=
 }}
  • title - For specifying the title of the game.

Ex: |title=Legend of Zelda

  • release - For sepcifying the release date. Append a <br /> should you want to add a line break for additional release date information(this applies to any entry here).

Ex: |release=NA: July 1, 1999

  • genre - For specifying the genre of the title.
  • developer - Who are the developer(s) working on the game
  • ESRB - ESRB rating, if applicable.
  • platform - Platform(s) the title was published on.

Examples

Game Information
About Skyward Sword:
Date Released: EU Nov 18, 2011

NA Nov 20, 2011
JP Nov 23, 2011
AU Nov 24, 2011

Genre: Action-Adventure
Developer: Nintendo EAD

Nintendo SPD
Monolith Soft

Publisher: Nintendo
ESRB Rating: E10+
Platform(s): Wii



 {{Game
|title=Skyward Sword
|release=EU Nov 18, 2011<br />
NA Nov 20, 2011<br />
JP Nov 23, 2011<br />
AU Nov 24, 2011 |genre=Action-Adventure |developer=Nintendo EAD<br />
Nintendo SPD<br />
Monolith Soft |publisher=Nintendo |ESRB=E10+ |platform=Wii }}

User Badge Templates

I will use my own user badge as an example here. Mediawiki gives each user a personal page associated with their user account.

NOTE: You DO NOT need to satisfy each attribute for this template to draw properly.

Syntax

{{UserProfile
|avatar=
|userid=
|gender=
|location=
|notes=
}}

Example

User Information
About CustomTemplates:
Avatar:
Gm112 avatar.png
Profile: Profile Stats
Gender: Male
Location: Ohio
Notes: gm112 smellz
{{UserProfile
|avatar=gm112_avatar.png
|userid=15168
|gender=Male
|location=Ohio
|notes=gm112 smellz
}}

King Of Thieves Item Template

This is the template for drawing ONLY ITEM information. Should there be content in King of Thieves using this template, it must be replaced with a proper template for said content.

NOTE: Not ALL attributes have to be met for this template

{{ItemInfoBox
|title=
|img1=
|type=
|location=
|required=
|cost=
|damagerate=
|ammo=
}}

Examples

Sea Cog
Obtained Lake Hylia Temple
{{ItemInfobox
|title = Sea Cog
|img1 = 
|obtained = Lake Hylia Temple
}}