Template:XMLtype: Difference between revisions

m
have to break this fake section link on account of ValBot's section link-checking script
(alignment)
m (have to break this fake section link on account of ValBot's section link-checking script)
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
|-
|-
|style="padding:6px 0px 0px 0px"|<span id="{{{1}}}">'''[[XML:{{{1}}}|{{{1}}}]]'''</span>
|style="padding:5px 0px 0px 0px"|'''[[XML:{{{1}}}|{{{display|{{{1}}}}}}]]'''
|style="vertical-align:center"|{{#ifeq:{{{3}}}|yes|[[Image:Aqua Dot-Green.png]]|{{#ifeq:{{{3}}}|no|[[Image:Aqua Dot-Red.png]]|[[Image:Aqua Dot-Yellow.png]]}}|}}
|style="padding:1px 0px 0px 1px"|<span id="{{{1}}}">{{#ifeq:{{{3}}}|yes|[[Image:Aqua Dot-Green.png]]|{{#ifeq:{{{3}}}|no|[[Image:Aqua Dot-Red.png]]|[[Image:Aqua Dot-Yellow.png]]}}|}}</span>
|style="vertical-align:center"|'''{{{2}}}'''
|style="padding:10px 0px 0px 0px"|'''{{{2}}}'''
|style="vertical-align:center"|{{{4}}}
|style="padding:5px 0px 0px 0px"|{{{4}}}
|style="vertical-align:center"|{{{5}}}
|style="padding:5px 0px 0px 0px"|{{{5}}}
|style="padding:5px 0px 0px 0px"|{{{6}}}
|-
|-
|style="border-style:solid; border-width:0px 0px {{#ifeq:{{{position}}}|bottom|0|1}}px 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 {{#ifeq:{{{position}}}|bottom|0|1}}px 0px; border-bottom-color:#AAA" colspan="6"|{{{7}}}</includeonly><noinclude>This template is used to construct the tables on [[XML:File types]].


Parameters:
Parameters (these are unnamed and order-dependent except for the last two):
#Tag, e.g. "ONCC". This will be turned into a link in the format <nowiki>[[XML:ONCC]]</nowiki>.
#Tag, e.g. "ONCC". This will be turned into a link in the format <nowiki>[[XML:ONCC]]</nowiki>.
#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. "BINAEINOimpact_effects".
#File name, e.g. "BINAEINOimpact_effects".
#Scope. You can write anything here, but typically this parameter is "global" or "local".
#Scope of resource in vanilla Oni. You can write anything here, but typically this parameter is "global" or "local".
#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.
#Scope of resource in Anniversary Edition Oni. The AE globalizes certain resources.
*The optional "position=bottom" parameter removes the bottom border from the rows output by the template, for when you are placing this template as the last element in a table. Otherwise you get a double border, from the bottom of the row as well as the table itself.
#Description. You can use a section link like "[<span style="display:none">Don't mind me, just breaking this link in the raw markup for ValBot's sake.</span>[#BINA|BINA]]" 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>
#The optional parameter "position=bottom" removes the bottom border from the rows output by the template, for when you are placing this template as the last element in a table. Otherwise you get a double border, one from the bottom of the row and one from the table itself.
#The optional "display" parameter allows you to specify a type name that does not match the location of the page on the wiki (this is used by "WMM_", which is at [[XML:WMM]] because MediaWiki does not let us create a page ending in an underscore).
 
[[Category:Table templates]]</noinclude>