Template:FGD: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{back|Category:FGD}} This FGD file can be located here: {{path|{{{filepath}}}|fgd|icon=file}} {{#if: {{{included in fgd path|}}} | This file is included in {{Path|1 = {{{i...")
 
No edit summary
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{back|Category:FGD}}
{{back|Category:FGD}}
{{doc}}
<includeonly>


This FGD file can be located here: {{path|{{{filepath}}}|fgd|icon=file}}
<onlyinclude>== FGD ==
{{#if: {{{included in fgd path|}}}
{{back|Category:FGD}}
| This file is included in {{Path|1 = [[{{{included fgd link}}}|{{{included in fgd path}}}]] }}
 
This FGD file can be located here: {{path|{{{filepath}}}/{{{name}}}|fgd|icon=file}}
{{#if: {{{included in fgd link|}}}
| <br/>This file is included in {{Path|1 = [[{{{included in fgd link}}}|{{{included in fgd path}}}]] }}
}}
}}
<!-- {{subst:codeblock|style=1|src={{{name}}}.fgd ([[Template:FGD/{{PAGENAME}}|light background]])|lang=fgd|softwrap=1|{{FGD/{{PAGENAME}} }}}}
        --><div style="overflow:hidden;background-color:rgba(0,0,0,.1);border:1px solid rgba(48,48,48,1);border-radius:4px; font-family:monospace,monospace; line-height:1.125rem; text-indent:0; white-space:pre-wrap; margin: .3em 0 .3em 0"><!--
            --><div style="display:flex;justify-content:space-between;background-color:rgba(0,0,0,.1); border-bottom:1px solid rgba(255,255,255,.1); font-family:monospace,monospace;line-height:1.125rem; text-indent:0; white-space:pre-wrap; padding:.5em"><!--
--><!--
                --><div>{{{name}}}.fgd ([[Template:FGD/{{PAGENAME}}|light background]])</div><!--
                --><div>Forge Game Data</div><!--
--><!--
            --></div><!--
--><!--
            --><div style="width:100%"><!--
                --><div style="scrollbar-color:#373737 #101010; position:relative;width:100%;display:flex;max-height:unset;overflow:auto"><!--
                    --><!--
--><!--
                    --><div style="width:100%;text-indent:0;line-height:1.6em;white-space:pre-wrap;height:100%;tab-size:4;"><!--
                        --><div style="padding:.45em .5em;position:relative">{{FGD/{{PAGENAME}} }}</div><!--
                    --></div><!--
--><!--
                --></div><!--
            --></div><!--
--><!--
        --></div>
{{#switch: {{{engine}}}
| #default = [[Category:Source 1 FGDs]]
| goldsrc = [[Category:GoldSrc FGDs]]
| source 2 = [[Category:Source 2 FGDs]]
}}</onlyinclude>
</includeonly>


{{codeblock|src=base.fgd|lang=fgd|{{FGD page/raw/{{PAGENAME}} }}}}
[[Category:Includes raw templates]]

Latest revision as of 07:11, 23 May 2025

Category:FGD
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

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

  • {{{name}}} - name of the file withough .fgd extension
  • {{{filepath}}} - location of the file without / at the end (use / slash not the other one \)
  • {{{engine}}} - source, goldsrc or source 2 to apply category
  • {{{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 name>


Warning.pngWarning:Post-expand include size seems to be quite big when this is used. This template might fail for too big fgd