Template:XMLtype: Difference between revisions

From OniGalore
Jump to navigation Jump to search
(put type name in bold)
(parameter 5 is now free text, since some types are not always global or always local)
Line 4: Line 4:
|{{#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]]}}|}}
|{{{4}}}
|{{{4}}}
|{{#ifeq:{{{5}}}|yes|global|local}}
|{{{5}}}
|-
|-
|style="border-style:solid; border-width:0px 0px 1px 0px; border-bottom-color:#AAA" colspan="5"|{{{6}}}</includeonly><noinclude>This template is used to construct the tables on [[XML:File types]].
|style="border-style:solid; border-width:0px 0px 1px 0px; border-bottom-color:#AAA" colspan="5"|{{{6}}}</includeonly><noinclude>This template is used to construct the tables on [[XML:File types]].
Line 12: Line 12:
#File type name, e.g. "Oni Character Class".
#File type name, e.g. "Oni Character Class".
#Doc status. "yes" produces a [[Image:Aqua Dot-Green.png]], "no" produces a [[Image:Aqua Dot-Red.png]], and any other text, like "some", produces a [[Image:Aqua Dot-Yellow.png]].
#Doc status. "yes" produces a [[Image:Aqua Dot-Green.png]], "no" produces a [[Image:Aqua Dot-Red.png]], and any other text, like "some", produces a [[Image:Aqua Dot-Yellow.png]].
#File name, e.g. "ONCC__.oni".
#File name, e.g. "BINAEINOimpact_effects".
#Global? "yes" produces "global", "no" produces "local".
#Scope. You can write anything here, but typically this parameter is "global" or "local".
#Description. You can use a section link like <nowiki>"[[#BINA]]"</nowiki> in this text to allow the reader to jump to the section of the page that discusses BINA, as this template uses <nowiki>{{Anchor}}</nowiki> to place HTML section anchors with the name that you pass in as parameter 1.
#Description. You can use a section link like <nowiki>"[[#BINA|BINA]]"</nowiki> in this text to allow the reader to jump to the section of the page that discusses BINA, as this template uses <nowiki>{{Anchor}}</nowiki> to place a HTML section anchor with the name that you pass in as parameter 1.
[[Category:General table templates]]</noinclude>
[[Category:General table templates]]</noinclude>

Revision as of 01:09, 9 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. "BINAEINOimpact_effects".
  5. Scope. You can write anything here, but typically this parameter is "global" or "local".
  6. Description. You can use a section link like "[[#BINA|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 a HTML section anchor with the name that you pass in as parameter 1.