User:Cvoxalury/Sandbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
== De-Multipaged Main Page ==
== De-Multipaged Main Page ==
The idea is that it will replace the main page's base article, without nested templates and lang subpages (they'll be their own pages referenced in a more classical way).
The idea is that it will replace the main page's base article, without nested templates and lang subpages (they'll be their own pages referenced in a more classical way. That is, to make a translation, a translator can copy the source code of this page to the translated version, and replace the text themselves. The few templates such as the navbox will then use translated versions too).


The statistics block is removed, as the only relevant part of it is the number of articles. It is a real measure of the wiki's volume of documentation, whereas number of edits or uploads grows too quickly, number of users is irrelevant, number of pages is grossly out of sync with documentation as so many of them are templates and such.
The statistics block is removed, as the only relevant part of it is the number of articles. It is a real measure of the wiki's volume of documentation, whereas number of edits or uploads grows too quickly, number of users is irrelevant, number of pages is grossly out of sync with documentation as so many of them are templates and such.


The template and strings lookups are kept at minimum to allow for ease of maintenance. The background template is kept because it is one of the nice things.
The template and strings lookups are kept at minimum to allow for ease of reading and maintenaning the page code. The background template is kept because it is one of the nice things.
----
----
{{Background
{{Background
Line 12: Line 12:
}}
}}


<!-- Centered welcome text and article count -->
<div style="display:flex; flex-direction:column; gap:.8em; align-items:center; margin-top:2em; margin-bottom:3em"> <!--
<div style="display:flex; flex-direction:column; gap:.8em; align-items:center; margin-top:2em; margin-bottom:3em"> <!--
--> <span style="color:rgb(255 255 255 / 50%); font-weight:400; font-size:1.2em"> Welcome to the </span> <!--
--> <span style="color:rgb(255 255 255 / 50%); font-weight:400; font-size:1.2em"> Welcome to the </span> <!--
Line 19: Line 20:
--> {{#if:{{{sitename|}}}|<span style="color:rgb(255 255 255 / 30%); font-weight:400; font-size:1.2em"> {{SITENAME}} </span>|}}
--> {{#if:{{{sitename|}}}|<span style="color:rgb(255 255 255 / 30%); font-weight:400; font-size:1.2em"> {{SITENAME}} </span>|}}
</div>
</div>
Whether you're building a triple-A commercial project or a [[modification]] for {{hl2|3.1}}, you'll want to [[Special:Userlogin|sign up]] as a Valve developer today. It's free to join and is open to anyone working with the [[Source|Source engine]] and its [[SDK Installation|software development kit]].


<div style="display:grid; grid-template-columns:repeat(auto-fill,minmax(clamp((100%/2) - 1rem, 25rem, 100%),1fr)); column-gap:1.5em; margin-top:1.3em">
<div style="display:grid; grid-template-columns:repeat(auto-fill,minmax(clamp((100%/2) - 1rem, 25rem, 100%),1fr)); column-gap:1.5em; margin-top:1.3em">


<div>
<div>
<!--
<!-- GoldSRC panel-->
GoldSRC
-->
<div class="plainlinks" style="background:#303030; border:1px solid rgb(255 255 255 / 10%); border-radius:.35em; padding:.5em; margin-block:1em; margin-top:0; overflow:clip">
<div class="plainlinks" style="background:#303030; border:1px solid rgb(255 255 255 / 10%); border-radius:.35em; padding:.5em; margin-block:1em; margin-top:0; overflow:clip">
<h2 style="background:#7A372F; background-image:linear-gradient(90deg, #7A372F, #9c463d); border:1px solid rgb(255 255 255 / 30%); border-bottom:none; border-radius:.35em; padding:.5em; padding-block:.6em; margin:.5em .3em; margin-bottom:.7em; font-size:14px; font-weight:700; height:fit-content; position:relative">
<h2 style="background:#7A372F; border:1px solid rgb(255 255 255 / 30%); border-bottom:none; border-radius:.35em; padding:.5em; padding-block:.6em; margin:.5em .3em; margin-bottom:.7em; font-size:14px; font-weight:700; height:fit-content; position:relative">
[[Half-Life SDK|<span style="width:100%; height:100%; position:absolute; top:0; left:0; z-index:1" title="Go to the GoldSrc engine (Half-Life SDK) documentation index"></span>]]
[[Half-Life SDK|<span style="width:100%; height:100%; position:absolute; top:0; left:0; z-index:1" title="Go to the GoldSrc engine (Half-Life SDK) documentation index"></span>]]
[[File:Icon-GoldSrc.png|32px|link=]]&ensp;<span style="color:white">GoldSrc and the Half-Life SDK</span>&ensp;[[File:Doublearrow white.png|12px|alt=►►|link=]]</h2>
[[File:Icon-GoldSrc.png|32px|link=]]&ensp;<span style="color:white">GoldSrc and the Half-Life SDK</span>&ensp;[[File:Doublearrow white.png|12px|alt=►►|link=]]</h2>
<p style="font-weight:300; margin-left:.3em">If you want to create a Mod for [[Half-Life]] or looking for more [[GoldSrc]] documentation, click above.</p>
<p style="font-weight:300; margin-left:.3em">If you want to create a Mod for [[Half-Life]] or looking for more [[GoldSrc]] documentation, click above.</p>
</div>
</div>
<!--
 
Source
<!-- Source panel -->
-->
<div class="plainlinks" style="background:#303030; border:1px solid rgb(255 255 255 / 10%); border-radius:.35em;  padding:.5em; margin-block:1em; overflow:clip">
<div class="plainlinks" style="background:#303030; border:1px solid rgb(255 255 255 / 10%); border-radius:.35em;  padding:.5em; margin-block:1em; overflow:clip">
<h2 style="background:#4A6821; background-image:linear-gradient(90deg, #4A6821, #638a2c); border:1px solid rgb(255 255 255 / 30%); border-bottom:none; border-radius:.35em; padding:.5em; padding-block:.6em; margin:.5em .3em; margin-bottom:.7em; font-size:14px; font-weight:700; height:fit-content; position:relative">
<h2 style="background:#4A6821; border:1px solid rgb(255 255 255 / 30%); border-bottom:none; border-radius:.35em; padding:.5em; padding-block:.6em; margin:.5em .3em; margin-bottom:.7em; font-size:14px; font-weight:700; height:fit-content; position:relative">
[[SDK Docs|<span style="width:100%; height:100%; position:absolute; top:0; left:0; z-index:1" title="Go to the Source engine documentation index"> </span>]]
[[SDK Docs|<span style="width:100%; height:100%; position:absolute; top:0; left:0; z-index:1" title="Go to the Source engine documentation index"> </span>]]
[[File:Icon-Source.png|32px|link=]]&ensp;<span style="color:white">Source and the Source SDK</span>&ensp;[[File:Doublearrow white.png|12px|alt=►►|link=]]</h2>
[[File:Icon-Source.png|32px|link=]]&ensp;<span style="color:white">Source and the Source SDK</span>&ensp;[[File:Doublearrow white.png|12px|alt=►►|link=]]</h2>
<p style="font-weight:300; margin-left:.3em">If you want to create a Mod for [[Half-Life 2]] or looking for more [[Source]] documentation, click above.</p>
<p style="font-weight:300; margin-left:.3em">If you want to create a Mod for [[Half-Life 2]] or looking for more [[Source]] documentation, click above.</p>
</div>
</div>
<!--
 
Source 2
<!-- Source 2 panel -->
-->
<div class="plainlinks" style="background:#303030; border:1px solid rgb(255 255 255 / 10%); border-radius:.35em;  padding:.5em; margin-block:1em; overflow:clip">
<div class="plainlinks" style="background:#303030; border:1px solid rgb(255 255 255 / 10%); border-radius:.35em;  padding:.5em; margin-block:1em; overflow:clip">
<h2 style="background:#656821; background-image:linear-gradient(90deg, #656821, #898a2c); border:1px solid rgb(255 255 255 / 30%); border-bottom:none; border-radius:.35em; padding:.5em; padding-block:.6em; margin:.5em .3em; margin-bottom:.7em; font-size:14px; font-weight:700; height:fit-content; position:relative">
<h2 style="background:#656821; border:1px solid rgb(255 255 255 / 30%); border-bottom:none; border-radius:.35em; padding:.5em; padding-block:.6em; margin:.5em .3em; margin-bottom:.7em; font-size:14px; font-weight:700; height:fit-content; position:relative">
[[Source 2/Docs|<span style="width:100%; height:100%; position:absolute; top:0; left:0; z-index:1" title="Go to the Source 2 engine documentation index"> </span>]]
[[Source 2/Docs|<span style="width:100%; height:100%; position:absolute; top:0; left:0; z-index:1" title="Go to the Source 2 engine documentation index"> </span>]]
[[File:Icon-Source 2.png|32px|link=]]&ensp;<span style="color:white">Source 2 Documentation</span>&ensp;[[File:Doublearrow white.png|12px|alt=►►|link=]]</h2>
[[File:Icon-Source 2.png|32px|link=]]&ensp;<span style="color:white">Source 2 Documentation</span>&ensp;[[File:Doublearrow white.png|12px|alt=►►|link=]]</h2>
Line 73: Line 72:
-->
-->
</div>
</div>
</div>
<!-- Valve Technology panel -->
<div>
<onlyinclude><div class="plainlinks" style="background-color:#404040; border:1px solid rgb(255 255 255 / 20%); border-radius:.35em; padding:.4em .6em .6em.6em; margin-block:1em; margin-top:0; overflow:clip">
<div style="display:flex; align-items:center; padding:.5em 1.2em; gap:1em">
<div style="padding:1em; user-select:none">[[File:Source-logo.png|128px|link=Source]]</div>
<div>The engine under the hood of {{hl2|1}} can make your game a success. Let Source™ do the heavy lifting so that your team can focus on building great games.</div>
</div>


</div>
<hr style="background-color:rgba(255 255 255 / 3%); margin:0 25px">


<div>
<div style="display:flex; align-items:center; padding:.5em 1.2em; gap:1em">
<div style="padding:1em; user-select:none">[[File:SteamLogo.png|128px|link=Steam]]</div>
<div>If you're interested in building a product using [[Source]] or [[Source 2]], talk to us about options for distribution on [[Steam]].</div>
</div>


{{ValveTechnology}}
<div style="height:fit-content; background-color:#537aa8; border-top:1px solid rgba(255 255 255 / 4%); text-align:center; font-size:14px; font-weight:700; padding:6px 0; position:relative"> <!--
-->[[Valve Technology|<span style="width:100%; height:100%; position:absolute; top:0; left:0; z-index:1" title="Click here to learn more about Valve Technology.></span>]]<font style="color:#FFF">Read about Valve Technology</font>&ensp;[[File:Doublearrow white.png|link=|16px]]
</div></onlyinclude>
</div>


<div class="plainlinks" style="background:#303030; background-image:radial-gradient(ellipse at left top, rgba(100 100 100 / 22%), transparent 40%), linear-gradient(135deg, rgba(125 125 125 / 5%), rgba(150 150 150 / 2%)); border:1px solid rgb(255 255 255 / 20%); border-radius:.35em; padding:.4em .6em .6em.6em; margin-block:1em; overflow:clip">
<!-- 'For mod teams' panel -->
<div style="height:fit-content; font-weight:600; color:rgb(255 255 255 / 90%); margin-bottom:.5em"> {{:Main Page/strings|FMT}} </div><!-- for mod teams -->
<div class="plainlinks" style="background:#303030; border:1px solid rgb(255 255 255 / 20%); border-radius:.35em; padding:.4em .6em .6em.6em; margin-block:1em; overflow:clip">
* {{:Main Page/strings|FMT Line 1}}
<div style="height:fit-content; font-weight:600; color:rgb(255 255 255 / 90%); margin-bottom:.5em"> For Mod Teams </div>
* {{:Main Page/strings|FMT Line 2}}
* [[Source Engine Features]]
* {{:Main Page/strings|FMT Line 3}}
* [[Building Mods with Valve Technology|Why choose the Source engine for your mod?]]
* {{:Main Page/strings|FMT Line 4}}
* Read [[Making a Mod]] - building a team through the shipping process.
* {{:Main Page/strings|FMT Line 5}}
* Already using the SDK? Check the [[:Category:Source SDK FAQ|Source SDK FAQ]] for some helpful answers.
* {{:Main Page/strings|FMT Line 6}}
* New to Source coding? Get started with [[:Category:Programming|basic programming articles]].
* Read (or add) a tutorial on [[SDK Docs|Source development]], or any part of the content creation process.
</div>
</div>


<div class="plainlinks" style="background:#303030; background-image:radial-gradient(ellipse at left top, rgba(100 100 100 / 22%), transparent 40%), linear-gradient(135deg, rgba(125 125 125 / 5%), rgba(150 150 150 / 2%)); border:1px solid rgb(255 255 255 / 20%); border-radius:.35em; padding:.4em .6em .6em.6em; margin-block:1em; overflow:clip">
<!-- 'New to the wiki' panel -->
<div style="height:fit-content; font-weight:600; color:rgb(255 255 255 / 90%); margin-bottom:.5em"> {{:Main Page/strings|New Wiki}} </div><span style="font-weight:300">''{{:Main Page/strings|For Help}}''</span>
<div class="plainlinks" style="background:#303030; border:1px solid rgb(255 255 255 / 20%); border-radius:.35em; padding:.4em .6em .6em.6em; margin-block:1em; overflow:clip">
<div style="height:fit-content; font-weight:600; color:rgb(255 255 255 / 90%); margin-bottom:.5em"> New to the wiki? </div>
''For help with using the wiki, see [[Help: Contents]]. For help with navigating the wiki, see [[:Category: Entry pages]] or [[:Category: Valve Developer Community]].''
</div>
</div>



Revision as of 17:39, 18 June 2024

De-Multipaged Main Page

The idea is that it will replace the main page's base article, without nested templates and lang subpages (they'll be their own pages referenced in a more classical way. That is, to make a translation, a translator can copy the source code of this page to the translated version, and replace the text themselves. The few templates such as the navbox will then use translated versions too).

The statistics block is removed, as the only relevant part of it is the number of articles. It is a real measure of the wiki's volume of documentation, whereas number of edits or uploads grows too quickly, number of users is irrelevant, number of pages is grossly out of sync with documentation as so many of them are templates and such.

The template and strings lookups are kept at minimum to allow for ease of reading and maintenaning the page code. The background template is kept because it is one of the nice things.


Wireframe gradient.jpg
Welcome to the Valve Developer Community 13,094 articles documenting the development process. Sign up to become part of the community!

Whether you're building a triple-A commercial project or a modification for Half-Life 2, you'll want to sign up as a Valve developer today. It's free to join and is open to anyone working with the Source engine and its software development kit.