Difference between revisions of "Templates"

From NEStalgia
Jump to: navigation, search
(Quests)
(Added information on using the new alternating rows template.)
Line 1: Line 1:
 
Please update the page with any new templates you update, if they need some usage please put some usage on how it works.
 
Please update the page with any new templates you update, if they need some usage please put some usage on how it works.
  
=== Quick Links Bar ===
 
Displays a bar at the top of a site<br />
 
[[Template:Quick]]<br />
 
<nowiki>
 
How to use : {{{Quick}}}
 
</nowiki>
 
  
=== Armory ===
+
==Alternating Rows==
 +
[[Template:Alternating rows table section]]
 +
 
 +
<h4>Usage</h4>
 +
From [http://en.wikipedia.org/wiki/Template:Alternating_rows_table_section/doc Wikipedia's Documentation]:
 +
 
 +
"'''Alternating rows table section''' allows for the dynamic creation of tables that use alternating styles for odd and even numbered rows, typically in conjunction with a template which generates a table where some rows may not be present every time.
 +
 
 +
The template produces only a portion of the table: this allows for the end user to customize the leading and trailing sections of the table, include secondary rows between sections, or other control elements.  This table creates a new row at the start, and the user must start a new row if they want to include additional information after the table section.
 +
 
 +
There are two named arguments to this template:
 +
;os:Defines the CSS style for odd-numbered rows.
 +
;es:Defines the CSS style for even-numbered rows.
 +
 
 +
Beyond these, the template accepts up to 30 unnamed parameters, the contents which are appropriate wikimarkup to create a table row as described below.  A parameter may be left empty, and will not add to the current row count; in other words, the template tracks how may rows have been defined by the unnamed arguments to determine to apply the odd or even styling.
 +
 
 +
The unnamed arguments '''must''' start with a template-compatible table cell symbol, either "!" for a header, or the use of {{tl|!}} to create the standard cell indicator "|".  An argument can contain multiple cells, either separated on lines (using {{tl|!}} to separate cells) or on a single line (using {{tl|!!}} to replace "||" delimiters); cell-specific style arguments can also be applied.
 +
 
 +
Unpredictable results may happen using other wikitable features such as rowspanning, creating a new row within an argument (using {{tl|!-}}), or the like."
 +
<h4>Example</h4>
 +
<nowiki>
 +
{| class="wikitable"
 +
! Place !! Result
 +
{{Alternating rows table section|es=background:#f0f0f0;
 +
| {{!}} First {{!!}} 100
 +
| {{!}} Second {{!!}} 95
 +
| <!-- empty! -->
 +
| {{!}} Third {{!!}} 87
 +
| <!-- empty! -->
 +
| {{!}} Fourth {{!!}} 65
 +
| {{!}} Fifth {{!!}} 58
 +
}}
 +
|}
 +
</nowiki>
 +
{| class="wikitable"
 +
! Place !! Result
 +
{{Alternating rows table section|es=background:#f0f0f0;
 +
| {{!}} First {{!!}} 100
 +
| {{!}} Second {{!!}} 95
 +
| <!-- empty! -->
 +
| {{!}} Third {{!!}} 87
 +
| <!-- empty! -->
 +
| {{!}} Fourth {{!!}} 65
 +
| {{!}} Fifth {{!!}} 58
 +
}}
 +
|}
 +
 
 +
 
 +
== Armory ==
 
[[Template:Weapon]]<br />
 
[[Template:Weapon]]<br />
 
[[Template:Armor]]<br />
 
[[Template:Armor]]<br />
 
[[Template:Set]]
 
[[Template:Set]]
  
=== Item ===
+
== Item ==
  
 
[[Template:Item]] <br />
 
[[Template:Item]] <br />
Line 20: Line 62:
 
[[Template:Appearance]]
 
[[Template:Appearance]]
  
=== Monster ===
+
== Monster ==
 
[[Template:Monster]]
 
[[Template:Monster]]
  
=== Quest ===
+
== Quest ==
 
[[Template:Quest]]<br />
 
[[Template:Quest]]<br />
 
[[Template:NPC]]
 
[[Template:NPC]]
  
=== Skill ===
+
== Skill ==
  
 
[[Template:Skill]]
 
[[Template:Skill]]
  
=== Skill Class Tables ===
+
== Skill Class Tables ==
  
 
[[Template:RangerSkills]]<br />
 
[[Template:RangerSkills]]<br />

Revision as of 07:20, 24 May 2012

Please update the page with any new templates you update, if they need some usage please put some usage on how it works.


Alternating Rows

Template:Alternating rows table section

Usage

From Wikipedia's Documentation:

"Alternating rows table section allows for the dynamic creation of tables that use alternating styles for odd and even numbered rows, typically in conjunction with a template which generates a table where some rows may not be present every time.

The template produces only a portion of the table: this allows for the end user to customize the leading and trailing sections of the table, include secondary rows between sections, or other control elements. This table creates a new row at the start, and the user must start a new row if they want to include additional information after the table section.

There are two named arguments to this template:

os
Defines the CSS style for odd-numbered rows.
es
Defines the CSS style for even-numbered rows.

Beyond these, the template accepts up to 30 unnamed parameters, the contents which are appropriate wikimarkup to create a table row as described below. A parameter may be left empty, and will not add to the current row count; in other words, the template tracks how may rows have been defined by the unnamed arguments to determine to apply the odd or even styling.

The unnamed arguments must start with a template-compatible table cell symbol, either "!" for a header, or the use of {{!}} to create the standard cell indicator "|". An argument can contain multiple cells, either separated on lines (using {{!}} to separate cells) or on a single line (using {{!!}} to replace "||" delimiters); cell-specific style arguments can also be applied.

Unpredictable results may happen using other wikitable features such as rowspanning, creating a new row within an argument (using {{!-}}), or the like."

Example

 {| class="wikitable"
 ! Place !! Result
 {{Alternating rows table section|es=background:#f0f0f0;
 | {{!}} First {{!!}} 100
 | {{!}} Second {{!!}} 95
 | <!-- empty! -->
 | {{!}} Third {{!!}} 87
 | <!-- empty! -->
 | {{!}} Fourth {{!!}} 65
 | {{!}} Fifth {{!!}} 58
 }}
 |}
 
Place Result
First 100
Second 95
Third 87
Fourth 65
Fifth 58


Armory

Template:Weapon
Template:Armor
Template:Set

Item

Template:Item
Template:Page
Template:Seed
Template:Appearance

Monster

Template:Monster

Quest

Template:Quest
Template:NPC

Skill

Template:Skill

Skill Class Tables

Template:RangerSkills
Template:SoldierSkills
Template:ClericSkills
Template:WizardSkills
Template:MerchantSkills
Template:ConjurerSkills
Template:NinjaSkills
Template:WarlockSkills