Template:Table: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Super raw version)
mNo edit summary
 
(40 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<onlyinclude><!--
{{Doc}}
-->{{#switch:{{{1|}}}|start=<table cellpadding="{{{cellpadding|4px}}}" style="width:{{{width|auto}}}; background:#202020; border:2px solid #525252; border-radius:12px;">}}<!--
<includeonly><onlyinclude><table {{#if:{{{id|}}}|id="{{{id|}}}"|}} class="plainlinks {{{class|}}}" cellpadding="{{{cellpadding|4px}}}" {{#if:{{{cellspacing|}}}|cellspacing="{{{cellspacing}}}"}} style="{{#if:{{{width|}}}|width:{{{width}}};}} background:{{{bgcolor|#202020}}}; border:2px solid #525252; border-radius:{{{radius|6px}}}; {{#if:{{{font-size|}}}|font-size:{{{font-size}}};}} {{#if:{{{align|}}}|margin:{{#switch:{{{align}}}|center=auto|right=0 0 0 auto}};}} {{{style|}}}"><!--
-->{{#switch:{{{1|}}}|start|end=
|{{#if:{{{caption|}}}
|<caption>{{{caption|}}}</caption>
|{{#if:{{{header|}}}
|<tr><!--
-->{{#if:{{{1|}}}|<th style="text-align:{{{align|left}}}">{{{1|}}}</th>|}}<!--
-->{{#if:{{{2|}}}|<th style="text-align:{{{align|left}}}">{{{2|}}}</th>|}}<!--
-->{{#if:{{{3|}}}|<th style="text-align:{{{align|left}}}">{{{3|}}}</th>|}}<!--
-->{{#if:{{{4|}}}|<th style="text-align:{{{align|left}}}">{{{4|}}}</th>|}}<!--
-->{{#if:{{{5|}}}|<th style="text-align:{{{align|left}}}">{{{5|}}}</th>|}}<!--
-->{{#if:{{{6|}}}|<th style="text-align:{{{align|left}}}">{{{6|}}}</th>|}}<!--
-->{{#if:{{{7|}}}|<th style="text-align:{{{align|left}}}">{{{7|}}}</th>|}}<!--
-->{{#if:{{{8|}}}|<th style="text-align:{{{align|left}}}">{{{8|}}}</th>|}}
</tr>
|<tr bgcolor="#3A3A3A"><!--
-->{{#if:{{{1|}}}|<td style="border-radius:{{{cellradius|0}}}; background-color:#303030; font-size:14px; text-align:{{{align|left}}};">{{{1|}}}</td>|}}<!--
-->{{#if:{{{2|}}}|<td style="border-radius:{{{cellradius|0}}}; text-align:{{{align|left}}}">{{{2|}}}</td>|}}<!--
-->{{#if:{{{3|}}}|<td style="border-radius:{{{cellradius|0}}}; text-align:{{{align|left}}}">{{{3|}}}</td>|}}<!--
-->{{#if:{{{4|}}}|<td style="border-radius:{{{cellradius|0}}}; text-align:{{{align|left}}}">{{{4|}}}</td>|}}<!--
-->{{#if:{{{5|}}}|<td style="border-radius:{{{cellradius|0}}}; text-align:{{{align|left}}}">{{{5|}}}</td>|}}<!--
-->{{#if:{{{6|}}}|<td style="border-radius:{{{cellradius|0}}}; text-align:{{{align|left}}}">{{{6|}}}</td>|}}<!--
-->{{#if:{{{7|}}}|<td style="border-radius:{{{cellradius|0}}}; text-align:{{{align|left}}}">{{{7|}}}</td>|}}<!--
-->{{#if:{{{8|}}}|<td style="border-radius:{{{cellradius|0}}}; text-align:{{{align|left}}}">{{{8|}}}</td>|}}<!--
--></tr><!--
-->}}<!--
-->|}}<!--
-->}}<!--
-->{{#switch:{{{1|}}}|end=</table>}}<!--
--></onlyinclude>
<center>
{{Table
| start
| width = 800px
}}
{{Table
| caption = [[File:Source-logo.png|400px|link=|Source Engine]]
<p style="margin:10px 0 10px;font-size:14px;">'''[[SDK Installation|Download and Installation]]&ensp;·&ensp;[[:Category:Source SDK FAQ|Frequently Asked Questions]]&ensp;·&ensp;[[Source SDK Release Notes|Release Notes]]'''</p>
}}
{{Table
| align = center
| cellradius = 8px 8px 0 0
| '''[[:Category:Modding|Modding]]'''
| Creating, organizing and releasing your [[Source|<span style=color:#E1E0DF>Source</span>]] project.
}}
{{Table
| align = center
| '''[[:Category:Level Design|Level Design]]'''
| [[Map (level design)|<span style=color:#E1E0DF>Maps</span>]] are the 3D worlds where everything comes together.
}}
{{Table
| align = center
| '''[[:Category:Programming|Programming]]'''
| 2 = A mod's C++ <span style=color:#E1E0DF>code</span> defines the way its world and game rules behave.
}}
{{Table
| align = center
| '''[[:Category:Scripting|Scripting]]'''
| Scripting can be used for adding new functionality or logic to [[Entity|<span style=color:#E1E0DF>entities</span>]].
}}
{{Table
| align = center
| '''[[:Category:Modeling|Modeling]]'''
| [[Model|<span style=color:#E1E0DF>Models</span>]] are the detailed 3D objects that appear in the game world.
}}
{{Table
| align = center
| '''[[:Category:Material System|Materials]]'''
| [[Texture|<span style=color:#E1E0DF>Textures</span>]] and [[Shader|<span style=color:#E1E0DF>shaders</span>]] are combined in Source to create [[Material|<span style=color:#E1E0DF>materials</span>]].
}}
{{Table
| align = center
| '''[[:Category:Sound System|Sounds]]'''
| Quality [[Sound and Music|<span style=color:#E1E0DF>audio</span>]] adds a fourth dimension to your world.
}}
{{Table
| align = center
| '''[[:Category:Particle_System|Particles]]'''
| Effects like smoke, sparks, blood and fire are created with [[Particle System Overview|<span style=color:#E1E0DF>particles</span>]].
}}
{{Table
| align = center
| '''[[:Category:AI|Artificial Intelligence]]'''
| AI controls the behavior of all but the simplest of [[NPC|<span style=color:#E1E0DF>NPC</span>]] actions.
}}
{{Table
| align = center
| '''[[:Category:Choreography|Choreography]]'''
| Direct your digital actors' performances with [[Choreography creation|<span style=color:#E1E0DF>choreographed scenes</span>]].
}}
{{Table
| align = center
| '''[[:Category:Source_Filmmaker|Filmmaker]]'''
| Create movies inside the [[Source|<span style=color:#E1E0DF>Source Engine</span>]].
}}
{{Table
| align = center
| '''[[:Category:Tutorials|Tutorials]]'''
| Step-by-step guides on a variety of topics.
}}
{{Table
| align = center
| '''[[:Category:Technical|Technical]]'''
| In-depth discussion of [[Source|<span style=color:#E1E0DF>Source's</span>]] features.
}}
{{Table
| align = center
| '''[[:Category:Glossary|Glossary]]'''
| 2 = Explanations for <span style=color:#E1E0DF>terms</span> you may encounter.
}}
{{Table
| align = center
| '''[[:Category:Official Tools|Official Tools]]'''
| Official tools made by [[Valve|<span style=color:#E1E0DF>Valve</span>]] for their games.
}}
{{Table
| align = center
| '''[[:Category:Third Party Tools|Third-Party Tools]]'''
| 2 = Useful developer tools created by the <span style=color:#E1E0DF>community</span>
}}
{{Table
| align = center
| cellradius = 0 0 8px 8px
| '''[[:Category:IO System|I/O System]]'''
| The [[Inputs and Outputs|<span style=color:#E1E0DF>I/O system</span>]] is the backbone of most levels in Source-based games/mods.
}}
{{Table|end}}


-->{{#if:{{{caption|}}}|<caption style="{{#if:{{{caption indent|}}}|margin:{{{caption indent|}}};|}} {{#if:{{{caption indent:top|}}}|margin-top:{{{caption indent:top|}}};|}} {{#if:{{{caption indent:right|}}}|margin-rght:{{{caption indent:right|}}};|}} {{#if:{{{caption indent:bottom|}}}|margin-bottom:{{{caption indent:bottom|}}};|}} {{#if:{{{caption indent:left|}}}|margin-left:{{{caption indent:left|}}};|}}">{{{caption|}}}</caption>|}}<!--


{{Table|start}}
-->{{{1|}}}<!--
{{Table
 
| header = 1
--></table></onlyinclude></includeonly>
| Hello, World!
| Hello, World!
}}
{{Table
| Hello, World!
| Hello, World!
}}
{{Table
| Hello, World!
| Hello, World!
}}
{{Table|end}}
</center>

Latest revision as of 07:41, 15 June 2023

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

Adds a table, but actually adds a table.

Parameters and Examples

Parameter Description Example
{{{1}}} or {{{text}}} Your text.
{{Table|Hello, World!}}
{{Table|text = Hello, World!}}

Elements

{{{caption}}} Table caption.
{{Table|caption = Hello, World!}}

Attributes

{{{id}}} Element ID. Useful for linking to a specific part of the page.
{{Table|id = my_id}}
[[My Sweet Page#my_id|My sweet page]]
{{{class}}} Custom HTML class.
{{Table|class = myClass}}
{{{style}}} Custom CSS.
{{Table|style = background-image:linear-gradient(0deg, white, black)}}

Style

{{{caption indent}}} Indentation of the caption from all sides.
{{Table|caption indent = 1em 2em 3em 4em}}
{{{caption indent:top}}} Indentation of the caption at the top
{{Table|caption indent:top = 1em}}
{{{caption indent:right}}} Indentation of the caption on the right.
{{Table|caption indent:right = 2em}}
{{{caption indent:bottom}}} Indentation of the caption at the bottom.
{{Table|caption indent:bottom = 3em}}
{{{caption indent:left}}} Indentation of the caption on the left.
{{Table|caption indent:left = 4em}}
{{{width}}} The width of the cell.
{{Table|width = 30%}}
{{{bgcolor}}} Background color.
{{Table|bgcolor = rgb(255 255 255)}}
{{{radius}}} The radius of the cell border.
{{Table|radius = 8px 2px 4px 8px}}
{{{align}}} Table alignment. Available values:
  • center
  • right
{{Table|align = right}}
{{{font-size}}} Font size.
{{Table|font-size = 1.5em}}

Ready-made table code

{{Table | align = center | caption = <span style="user-select:none"> [[File:ValveEmployee.png|link = Valve]] </span> | caption indent:bottom = 1em | {{tr | {{th|radius=3px 0 0 0| Header 1 }} {{th| Header 2 }} {{th|radius=0 3px 0 0| Header 3 }} }} {{tr | {{td| Cell 1 }} {{td| Cell 2 }} {{td|rowspan=2| Cell 3 }} }} {{tr | {{td|colspan=2|bgcolor=#303030| Cell 4 }} }} {{tr | {{td|radius=0 0 0 3px| Cell 6 }} {{td|colspan=2|bgcolor=#303030|radius=0 0 3px 0| Cell 7 }} }} }}