Template:FGD/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
*{{param|included in fgd link}} - if this fgd is included in other fgd specify a link to that page
*{{param|included in fgd link}} - if this fgd is included in other fgd specify a link to that page
*{{param|included in fgd path}} - path of the fgd file where this fgd file is included in
*{{param|included in fgd path}} - path of the fgd file where this fgd file is included in
The fgd text itself should be placed on page {{code|Template:FGD page/raw/<page name>}}
* Example [[Left 4 Dead 2.fgd]] has the text on [[Template:FGD page/raw/Left 4 Dead 2.fgd]]
The raw page should also have following format <code><nowiki><pre><onlyinclude></nowiki></code>{{code|full FGD text here}}<code><nowiki></onlyinclude></nowiki></code> (omit the <nowiki></pre></nowiki> ending tag! otherwise <nowiki><onlyinclude><nowiki> won't work

Revision as of 03:29, 11 September 2024

Edit-copy.png
This is a documentation subpage for Template:FGD.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

Template to have uniform fgd pages and make them easier to edit if needed

  • {{{engine}}} - source, goldsrc or source 2 to apply category
  • {{{filepath}}} - location of the file
  • {{{included in fgd link}}} - if this fgd is included in other fgd specify a link to that page
  • {{{included in fgd path}}} - path of the fgd file where this fgd file is included in


The fgd text itself should be placed on page Template:FGD page/raw/<page name>

The raw page should also have following format <pre><onlyinclude>full FGD text here</onlyinclude> (omit the </pre> ending tag! otherwise <nowiki><nowiki> won't work