Template:XMLtype: Difference between revisions

From OniGalore
Jump to navigation Jump to search
(missing braces, missing #ifeq)
(missing single-quote)
Line 1: Line 1:
<includeonly>|-
<includeonly>|-
|{{Anchor|{{{1}}}}}''[[XML:{{{1}}}|{{{1}}}]]'''
|{{Anchor|{{{1}}}}}'''[[XML:{{{1}}}|{{{1}}}]]'''
|{{{2}}}
|{{{2}}}
|{{#ifeq:{{{3}}}|yes|[[Image:Aqua Dot-Green.png]]|{{#ifeq:{{{3}}}|no|[[Image:Aqua Dot-Red.png]]|[[Image:Aqua Dot-Yellow.png]]}}|}}
|{{#ifeq:{{{3}}}|yes|[[Image:Aqua Dot-Green.png]]|{{#ifeq:{{{3}}}|no|[[Image:Aqua Dot-Red.png]]|[[Image:Aqua Dot-Yellow.png]]}}|}}

Revision as of 18:32, 8 April 2014

This template is used to construct the tables on XML:File types.

Parameters:

  1. Tag, e.g. "ONCC". This will be turned into a link in the format [[XML:ONCC]].
  2. File type name, e.g. "Oni Character Class".
  3. Doc status. "yes" produces a Aqua Dot-Green.png, "no" produces a Aqua Dot-Red.png, and any other text, like "some", produces a Aqua Dot-Yellow.png.
  4. File name, e.g. "ONCC__.oni".
  5. Global? "yes" produces "global", "no" produces "local".
  6. Description. You can use a section link like "[[#BINA]]" in this text to allow the reader to jump to the section of the page that discusses BINA, as this template uses {{Anchor}} to place HTML section anchors with the name that you pass in as parameter 1.