Help:Contents: Difference between revisions
Jump to navigation
Jump to search
m (testing) |
(trying sub) |
||
Line 1: | Line 1: | ||
{{ | <!-- | ||
{{{1}}}: page's full name, including any namespace, but excluding any language suffix | |||
{{ARTICLEPAGENAME}}: page's full name, including any namespace and/or language suffix | |||
[X language suffix]: JUST a language suffix, which is different for every language | |||
title | |||
-->{{#if: | {{DISPLAYTITLE:{{{title}}}}} }}<!-- | |||
html to make the buttons appear in the header space | |||
--><div style="position:relative;top:-32px;margin-bottom: -40px;float:right;text-align:right;padding:2px;line-height:11px;background:#262626;<!-- | |||
optional taking away of the icon borders | |||
-->{{#if: | margin-top:5px;border:0; | border:1px solid #65635F;border-bottom:0;}}"><!-- | |||
For English: | |||
Test if {{{1}}} is equal to {{ARTICLEPAGENAME}}. | |||
-If they match, then we must be on the English page already, therefore don't display the English icon. | |||
-If they do not match, show the English link, cause this is NOT the English page. | |||
We're not going to test if the English page exists or not. It damn well better. | |||
-->{{#ifeq: Template:Lang | {{ARTICLEPAGENAME}} | | [[File:en.png|alt=English|link=Template:Lang]] }}<!-- | |||
Other languages are a little more complex: | |||
Test if the page {{{1}}}:[X language suffix] exists. | |||
-If the page does exist, check if we're on that page right now by testing if {{{1}}}:[X language suffix] is equal to {{ARTICLEPAGENAME}}. | |||
--If they match, don't show the icon for this language, because we're already on that page. | |||
--If they do not match, show the icon for the language, because that page exists AND we currently are not on it. | |||
-If the page does not exist, don't show the icon for it obviously. | |||
Czech - cs | |||
-->{{#ifexist: Template:Lang:cs | <!-- | |||
-->{{#ifeq: Template:Lang:cs | {{ARTICLEPAGENAME}} | | [[File:cs.png|alt=Čeština|link=Template:Lang:cs]] }}<!-- | |||
--> | }} <!-- | |||
German - de | |||
-->{{#ifexist: Template:Lang:de | <!-- | |||
-->{{#ifeq: Template:Lang:de | {{ARTICLEPAGENAME}} | | [[File:de.png|alt=Deutsch|link=Template:Lang:de]] }}<!-- | |||
--> | }}<!-- | |||
Spanish - es | |||
-->{{#ifexist: Template:Lang:es | <!-- | |||
-->{{#ifeq: Template:Lang:es | {{ARTICLEPAGENAME}} | | [[File:es.png|alt=Español|link=Template:Lang:es]] }}<!-- | |||
--> | }}<!-- | |||
French - fr | |||
-->{{#ifexist: Template:Lang:fr | <!-- | |||
-->{{#ifeq: Template:Lang:fr | {{ARTICLEPAGENAME}} | | [[File:fr.png|alt=Français|link=Template:Lang:fr]] }}<!-- | |||
--> | }}<!-- | |||
Hungarian - hu | |||
-->{{#ifexist: Template:Lang:hu | <!-- | |||
-->{{#ifeq: Template:Lang:hu | {{ARTICLEPAGENAME}} | | [[File:hu.png|alt=Magyar|link=Template:Lang:hu]] }}<!-- | |||
--> | }}<!-- | |||
Italian - it | |||
-->{{#ifexist: Template:Lang:it | <!-- | |||
-->{{#ifeq: Template:Lang:it | {{ARTICLEPAGENAME}} | | [[File:it.png|alt=Italiano|link=Template:Lang:it]] }}<!-- | |||
--> | }}<!-- | |||
Dutch - nl | |||
-->{{#ifexist: Template:Lang:nl | <!-- | |||
-->{{#ifeq: Template:Lang:nl | {{ARTICLEPAGENAME}} | | [[File:nl.png|alt=Nederlands|link=Template:Lang:nl]] }}<!-- | |||
--> | }}<!-- | |||
Norwegian - no | |||
-->{{#ifexist: Template:Lang:no | <!-- | |||
-->{{#ifeq: Template:Lang:no | {{ARTICLEPAGENAME}} | | [[File:no.png|alt=Norsk|link=Template:Lang:no]] }}<!-- | |||
--> | }}<!-- | |||
Polish - pl | |||
-->{{#ifexist: Template:Lang:pl | <!-- | |||
-->{{#ifeq: Template:Lang:pl | {{ARTICLEPAGENAME}} | | [[File:pl.png|alt=Polski|link=Template:Lang:pl]] }}<!-- | |||
--> | }}<!-- | |||
Portuguese - pt | |||
-->{{#ifexist: Template:Lang:pt | <!-- | |||
-->{{#ifeq: Template:Lang:pt | {{ARTICLEPAGENAME}} | | [[File:pt.png|alt=Português|link=Template:Lang:pt]] }}<!-- | |||
--> | }}<!-- | |||
Brazilian Portuguese - pt-br | |||
-->{{#ifexist: Template:Lang:pt-br | <!-- | |||
-->{{#ifeq: Template:Lang:pt-br | {{ARTICLEPAGENAME}} | | [[File:pt-br.png|alt=Português-Brasileiro|link=Template:Lang:pt-br]] }}<!-- | |||
--> | }}<!-- | |||
Russian - ru | |||
-->{{#ifexist: Template:Lang:ru | <!-- | |||
-->{{#ifeq: Template:Lang:ru | {{ARTICLEPAGENAME}} | | [[File:ru.png|alt=Русский|link=Template:Lang:ru]] }}<!-- | |||
--> | }}<!-- | |||
Ukrainian - ua | |||
-->{{#ifexist: Template:Lang:ua | <!-- | |||
-->{{#ifeq: Template:Lang:ua | {{ARTICLEPAGENAME}} | | [[File:ua.png|alt=Українська|link=Template:Lang:ua]] }}<!-- | |||
--> | }}<!-- | |||
Swedish - sv | |||
-->{{#ifexist: Template:Lang:sv | <!-- | |||
-->{{#ifeq: Template:Lang:sv | {{ARTICLEPAGENAME}} | | [[File:sv.png|alt=Svenska|link=Template:Lang:sv]] }}<!-- | |||
--> | }}<!-- | |||
Turkish - tr | |||
-->{{#ifexist: Template:Lang:tr | <!-- | |||
-->{{#ifeq: Template:Lang:tr | {{ARTICLEPAGENAME}} | | [[File:tr.png|alt=Türkçe|link=Template:Lang:tr]] }}<!-- | |||
--> | }}<!-- | |||
Japanese - jp | |||
-->{{#ifexist: Template:Lang:jp | <!-- | |||
-->{{#ifeq: Template:Lang:jp | {{ARTICLEPAGENAME}} | | [[File:jp.png|alt=日本語|link=Template:Lang:jp]] }}<!-- | |||
--> | }}<!-- | |||
Simplified Chinese - zh-cn | |||
-->{{#ifexist: Template:Lang:zh-cn | <!-- | |||
-->{{#ifeq: Template:Lang:zh-cn | {{ARTICLEPAGENAME}} | | [[File:zh-cn.png|alt=简体中文|link=Template:Lang:zh-cn]] }}<!-- | |||
--> | }}<!-- | |||
Taiwanese Mandarin - zh-tw | |||
-->{{#ifexist: Template:Lang:zh-tw | <!-- | |||
-->{{#ifeq: Template:Lang:zh-tw | {{ARTICLEPAGENAME}} | | [[File:tw.png|alt=简体中文|link=Template:Lang:zh-tw]] }}<!-- | |||
--> | }}<!-- | |||
Korean - ko | |||
-->{{#ifexist: Template:Lang:ko | <!-- | |||
-->{{#ifeq: Template:Lang:ko | {{ARTICLEPAGENAME}} | | [[File:ko.png|alt=한국어|link=Template:Lang:ko]] }}<!-- | |||
--> | }}<!-- | |||
Georgian - ka | |||
-->{{#ifexist: Template:Lang:ka | <!-- | |||
-->{{#ifeq: Template:Lang:ka | {{ARTICLEPAGENAME}} | | [[File:ka.png|alt=ქართული ენა|link=Template:Lang:ka]] }}<!-- | |||
--> | }}<!-- | |||
Hebrew - he | |||
-->{{#ifexist: Template:Lang:he | <!-- | |||
-->{{#ifeq: Template:Lang:he | {{ARTICLEPAGENAME}} | | [[File:he.png|alt=עִברִית|link=Template:Lang:he]] }}<!-- | |||
--> | }}</div> | |||
<!-- | |||
{{{1}}}: page's full name, including any namespace, but excluding any language suffix | |||
{{ARTICLEPAGENAME}}: page's full name, including any namespace and/or language suffix | |||
[X language suffix]: JUST a language suffix, which is different for every language | |||
title | |||
-->{{#if: | {{DISPLAYTITLE:{{{title}}}}} }}<!-- | |||
html to make the buttons appear in the header space | |||
--><div style="position:relative;top:-32px;margin-bottom: -40px;float:right;text-align:right;padding:2px;line-height:11px;background:#262626;<!-- | |||
optional taking away of the icon borders | |||
-->{{#if: | margin-top:5px;border:0; | border:1px solid #65635F;border-bottom:0;}}"><!-- | |||
For English: | |||
Test if {{{1}}} is equal to {{ARTICLEPAGENAME}}. | |||
-If they match, then we must be on the English page already, therefore don't display the English icon. | |||
-If they do not match, show the English link, cause this is NOT the English page. | |||
We're not going to test if the English page exists or not. It damn well better. | |||
-->{{#ifeq: Help:Contents | {{ARTICLEPAGENAME}} | | [[File:en.png|alt=English|link=Help:Contents]] }}<!-- | |||
Other languages are a little more complex: | |||
Test if the page {{{1}}}:[X language suffix] exists. | |||
-If the page does exist, check if we're on that page right now by testing if {{{1}}}:[X language suffix] is equal to {{ARTICLEPAGENAME}}. | |||
--If they match, don't show the icon for this language, because we're already on that page. | |||
--If they do not match, show the icon for the language, because that page exists AND we currently are not on it. | |||
-If the page does not exist, don't show the icon for it obviously. | |||
Czech - cs | |||
-->{{#ifexist: Help:Contents:cs | <!-- | |||
-->{{#ifeq: Help:Contents:cs | {{ARTICLEPAGENAME}} | | [[File:cs.png|alt=Čeština|link=Help:Contents:cs]] }}<!-- | |||
--> | }} <!-- | |||
German - de | |||
-->{{#ifexist: Help:Contents:de | <!-- | |||
-->{{#ifeq: Help:Contents:de | {{ARTICLEPAGENAME}} | | [[File:de.png|alt=Deutsch|link=Help:Contents:de]] }}<!-- | |||
--> | }}<!-- | |||
Spanish - es | |||
-->{{#ifexist: Help:Contents:es | <!-- | |||
-->{{#ifeq: Help:Contents:es | {{ARTICLEPAGENAME}} | | [[File:es.png|alt=Español|link=Help:Contents:es]] }}<!-- | |||
--> | }}<!-- | |||
French - fr | |||
-->{{#ifexist: Help:Contents:fr | <!-- | |||
-->{{#ifeq: Help:Contents:fr | {{ARTICLEPAGENAME}} | | [[File:fr.png|alt=Français|link=Help:Contents:fr]] }}<!-- | |||
--> | }}<!-- | |||
Hungarian - hu | |||
-->{{#ifexist: Help:Contents:hu | <!-- | |||
-->{{#ifeq: Help:Contents:hu | {{ARTICLEPAGENAME}} | | [[File:hu.png|alt=Magyar|link=Help:Contents:hu]] }}<!-- | |||
--> | }}<!-- | |||
Italian - it | |||
-->{{#ifexist: Help:Contents:it | <!-- | |||
-->{{#ifeq: Help:Contents:it | {{ARTICLEPAGENAME}} | | [[File:it.png|alt=Italiano|link=Help:Contents:it]] }}<!-- | |||
--> | }}<!-- | |||
Dutch - nl | |||
-->{{#ifexist: Help:Contents:nl | <!-- | |||
-->{{#ifeq: Help:Contents:nl | {{ARTICLEPAGENAME}} | | [[File:nl.png|alt=Nederlands|link=Help:Contents:nl]] }}<!-- | |||
--> | }}<!-- | |||
Norwegian - no | |||
-->{{#ifexist: Help:Contents:no | <!-- | |||
-->{{#ifeq: Help:Contents:no | {{ARTICLEPAGENAME}} | | [[File:no.png|alt=Norsk|link=Help:Contents:no]] }}<!-- | |||
--> | }}<!-- | |||
Polish - pl | |||
-->{{#ifexist: Help:Contents:pl | <!-- | |||
-->{{#ifeq: Help:Contents:pl | {{ARTICLEPAGENAME}} | | [[File:pl.png|alt=Polski|link=Help:Contents:pl]] }}<!-- | |||
--> | }}<!-- | |||
Portuguese - pt | |||
-->{{#ifexist: Help:Contents:pt | <!-- | |||
-->{{#ifeq: Help:Contents:pt | {{ARTICLEPAGENAME}} | | [[File:pt.png|alt=Português|link=Help:Contents:pt]] }}<!-- | |||
--> | }}<!-- | |||
Brazilian Portuguese - pt-br | |||
-->{{#ifexist: Help:Contents:pt-br | <!-- | |||
-->{{#ifeq: Help:Contents:pt-br | {{ARTICLEPAGENAME}} | | [[File:pt-br.png|alt=Português-Brasileiro|link=Help:Contents:pt-br]] }}<!-- | |||
--> | }}<!-- | |||
Russian - ru | |||
-->{{#ifexist: Help:Contents:ru | <!-- | |||
-->{{#ifeq: Help:Contents:ru | {{ARTICLEPAGENAME}} | | [[File:ru.png|alt=Русский|link=Help:Contents:ru]] }}<!-- | |||
--> | }}<!-- | |||
Ukrainian - ua | |||
-->{{#ifexist: Help:Contents:ua | <!-- | |||
-->{{#ifeq: Help:Contents:ua | {{ARTICLEPAGENAME}} | | [[File:ua.png|alt=Українська|link=Help:Contents:ua]] }}<!-- | |||
--> | }}<!-- | |||
Swedish - sv | |||
-->{{#ifexist: Help:Contents:sv | <!-- | |||
-->{{#ifeq: Help:Contents:sv | {{ARTICLEPAGENAME}} | | [[File:sv.png|alt=Svenska|link=Help:Contents:sv]] }}<!-- | |||
--> | }}<!-- | |||
Turkish - tr | |||
-->{{#ifexist: Help:Contents:tr | <!-- | |||
-->{{#ifeq: Help:Contents:tr | {{ARTICLEPAGENAME}} | | [[File:tr.png|alt=Türkçe|link=Help:Contents:tr]] }}<!-- | |||
--> | }}<!-- | |||
Japanese - jp | |||
-->{{#ifexist: Help:Contents:jp | <!-- | |||
-->{{#ifeq: Help:Contents:jp | {{ARTICLEPAGENAME}} | | [[File:jp.png|alt=日本語|link=Help:Contents:jp]] }}<!-- | |||
--> | }}<!-- | |||
Simplified Chinese - zh-cn | |||
-->{{#ifexist: Help:Contents:zh-cn | <!-- | |||
-->{{#ifeq: Help:Contents:zh-cn | {{ARTICLEPAGENAME}} | | [[File:zh-cn.png|alt=简体中文|link=Help:Contents:zh-cn]] }}<!-- | |||
--> | }}<!-- | |||
Taiwanese Mandarin - zh-tw | |||
-->{{#ifexist: Help:Contents:zh-tw | <!-- | |||
-->{{#ifeq: Help:Contents:zh-tw | {{ARTICLEPAGENAME}} | | [[File:tw.png|alt=简体中文|link=Help:Contents:zh-tw]] }}<!-- | |||
--> | }}<!-- | |||
Korean - ko | |||
-->{{#ifexist: Help:Contents:ko | <!-- | |||
-->{{#ifeq: Help:Contents:ko | {{ARTICLEPAGENAME}} | | [[File:ko.png|alt=한국어|link=Help:Contents:ko]] }}<!-- | |||
--> | }}<!-- | |||
Georgian - ka | |||
-->{{#ifexist: Help:Contents:ka | <!-- | |||
-->{{#ifeq: Help:Contents:ka | {{ARTICLEPAGENAME}} | | [[File:ka.png|alt=ქართული ენა|link=Help:Contents:ka]] }}<!-- | |||
--> | }}<!-- | |||
Hebrew - he | |||
-->{{#ifexist: Help:Contents:he | <!-- | |||
-->{{#ifeq: Help:Contents:he | {{ARTICLEPAGENAME}} | | [[File:he.png|alt=עִברִית|link=Help:Contents:he]] }}<!-- | |||
--> | }}</div> | |||
<big><big>HackerOne members:</big></big> Before you test any bugs, please put your HackerOne profile on [[Special:MyTalk|this page]] so that we don't suspect you of malicious intent. | <big><big>HackerOne members:</big></big> Before you test any bugs, please put your HackerOne profile on [[Special:MyTalk|this page]] so that we don't suspect you of malicious intent. |
Revision as of 03:52, 20 August 2018
HackerOne members: Before you test any bugs, please put your HackerOne profile on this page so that we don't suspect you of malicious intent.
See suspicious activity? Read How to deal with hackers.
Is this what you're looking for?
- To learn about Source, mapping, modding, etc, read the Source SDK Documentation.
- Have questions or need help? See the New Help Desk.
Contributor's quick links
Welcome!
Welcome to the Valve Developer Community! If you're new, you might want to check out some of these pages:
- Help:Editing - How to edit pages, including wiki markup, templates, and style guidelines.
- Help:Etiquette - You might want to check this before editing.
- Valve Developer Community:About - A brief explanation of the VDC and its goals.
- Valve Developer Community:Community Portal - A guide to some of the many things you will find on the VDC.
- Help:Mod Profiles - Thinking about making a mod or an article about a mod? Don't make an article until you've read this page! It has guidelines on writing the article as well as policies about when articles are acceptable.
- Valve Developer Community:Protected page - Protected pages are pages that can only be edited by administrators. Read more about protected pages and find out how to request a page be protected.
- Valve Developer Community:Image use policy - This page explains what images are and are not acceptable. Images which do not conform to policy will be deleted!
- Help:Deletion - Information on what types of articles are eligible for deletion, and how to mark the articles so they can be deleted by administrators.
- Category:Half-Life Continuity - Want to make sure your Half-Life mod fits the canon? See these pages.
Wikipedia and MediaWiki resources
The VDC uses MediaWiki, an open source wiki engine licensed under the GNU GPL. The largest array of resources for learning how to use MediaWiki can be found at the largest wiki using the engine, Wikipedia.
- Wikipedia:Help:Contents - Main Wikipedia help menu.
- Wikipedia:Wikipedia:Tutorial - A series of introductory articles, each page discusses one useful feature of the wiki software.
- Wikipedia:Wikipedia:How_to_edit_a_page - Comprehensive guide on editing MediaWiki sites, including markup details.
- Wikipedia:Wikipedia:FAQ - Answers questions commonly asked about Wikipedia.
- Wikipedia:Wikipedia:Contributing_FAQ - Answers questions commonly asked by contributors to Wikipedia.
- Wikipedia:Wikipedia:Editing_FAQ - Answers the most common questions about editing Wikipedia.