Namespaces
Variants
Views
Actions

Difference between revisions of "Template:rev inl"

From cppreference.com
(Add `id` parameter.)
Line 1: Line 1:
<span class="t-rev-inl {{#ifeq:{{{noborder|}}}|true|t-rev-inl-noborder}} {{#if:{{{since|}}}|t-since-{{#replace:{{{since}}}|+|x}}}} {{#if:{{{until|}}}|t-until-{{#replace:{{{until}}}|+|x}}}}"><span>{{{1|}}}</span> <!--
+
<span class="t-rev-inl {{#ifeq:{{{noborder|}}}|true|t-rev-inl-noborder}} {{#if:{{{since|}}}|t-since-{{#replace:{{{since}}}|+|x}}}} {{#if:{{{until|}}}|t-until-{{#replace:{{{until}}}|+|x}}}}"><span {{#if:{{{id|}}}|id="{{{id}}}"}}>{{{1|}}}</span> <!--
 
--><span>{{#if:{{{since|}}}|{{mark since {{{since|}}}}} }}{{#if:{{{until|}}}|{{mark until {{{until|}}}}} }}</span></span><noinclude>
 
--><span>{{#if:{{{since|}}}|{{mark since {{{since|}}}}} }}{{#if:{{{until|}}}|{{mark until {{{until|}}}}} }}</span></span><noinclude>
 
{{documentation | Template:rev/doc}}
 
{{documentation | Template:rev/doc}}
 
</noinclude>
 
</noinclude>

Revision as of 14:14, 9 April 2020

[edit] [{{purge}}] Template documentation

Used to declare that certain part of the description is valid to only specific revisions of the standard.

{{rev begin|noborder=true_if_noborder (optional)}}

Begins the set of text snippets specific to a specific revision(s) of the standard. If the noborder parameter is true then the table is displayed with no border and as little padding as possible.

{{rev|since=since-std (optional)|until=until-std (optional)|text }}

Specifies that text is valid only for standard revisions since since-std until until-std (until-std is not inclusive).

{{rev end}}

Ends the set of text snippets specific to a specific revision(s) of the standard.

{{rrev|noborder=true_if_noborder (optional)|since=since-std (optional)|until=until-std (optional)|text }}

A combined {{rev begin}}/{{rev}}/{{rev end}}, for when only a single {{rev}} is needed.

{{rrev multi|noborder=true_if_noborder (optional)|sinceX=since-std (optional)|untilX=until-std (optional)|revX=text |... }}

A combined {{rev begin}}/{{rev}}/{{rev end}}. Up to 7 snippets are supported. The default for sinceX is untilX-1 and default for untilX is sinceX+1. Thus, it is most useful when the snippets are relatively short and the revision ranges consecutive. This template may be substituted.

{{rev inl|id=id (optional)|since=since-std (optional)|until=until-std (optional)|noborder=true_if_noborder (optional)|text }}

Same as {{rev}}, just is displayed inline. {{rev begin}} and {{rev end}} must not be used. The text can be referenced with id.

Border is omitted if the noborder parameter is true.