Namespaces
Variants
Views
Actions

Help:Editing

From cppreference.com

This wiki uses Mediawiki, the same wiki system as the Wikipedia project. You can use their help pages to introduce you to the Mediawiki wikicode syntax.

Contents

[edit] Frequently-used syntax

Description You want You type
Bold text bold '''bold'''
Italic text italic ''italic''
Teletype text const_iterator {{tt|const_iterator}}
Formatted code return std::pair("A", x + 42); {{c|return std::pair("A", x + 42);}}
Manual link to wiki page the sort algorithm [[cpp/algorithm/sort|the {{tt|sort}} algorithm]]
Automatic link to wiki page std::sort {{lc|std::sort}}
Link to member function push_back on a std::vector subpage {{lc|push_back}}
Special symbols  | and = {{!}} and {{=}}

[edit] Templates

Most of the content in this wiki is wrapped in fairly complex templates (e.g. the {{c|...}} and {{lc|...}} templates above). These templates do most of the formatting and help to aggregate the repetitive stuff in one place, so when something is to be modified, there is no need to make the same modification tens or hundreds of times. For help about the templates used in this wiki, see Help:Templates.

[edit] Style

The wiki aims to have consistent style. Please see Help:Manual of style for a style guide that helps to follow consistent style and formatting in the wiki.

Note that you don't need to master the complex templates or abovementioned guidelines in order to contribute. Adding new content is much harder than applying formatting, so feel free to add content even if you're unsure about the formatting -- someone can fix that later.

Some high-traffic templates are locked in order to prevent vandalism or because of performance reasons. In these cases you should request a modification in the discussion page.

[edit] See also