Content:HistoryPP/TextFormatting-Variables: Difference between revisions
Jump to navigation
Jump to search
(+cat) |
(missing <tr> for headers) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
| \n;; \t;; \\;; \%;; %nick%;; %from_nick%;; %to_nick%;; %mes%;; %adj_mes%;; %quot_mes%;; %selmes%;; %adj_selmes%;; %quot_selmes%;; %datetime%;; %smart_datetime%;; %date%;; %time% | | \n;; \t;; \\;; \%;; %nick%;; %from_nick%;; %to_nick%;; %mes%;; %adj_mes%;; %quot_mes%;; %selmes%;; %adj_selmes%;; %quot_selmes%;; %datetime%;; %smart_datetime%;; %date%;; %time% | ||
| ;; | | ;; | ||
}} | }}<table class="wikitable"> | ||
<table class="wikitable"> | <tr> | ||
<th scope="col"> {{L10n:Content/TableHeaders | Variable}} </th> | <th scope="col"> {{L10n:Content/TableHeaders | Variable}} </th> | ||
<th scope="col"> {{L10n:Content/TableHeaders | Description}} </th> | <th scope="col"> {{L10n:Content/TableHeaders | Description}} </th> | ||
</tr> | |||
{{ #loop: i | {{ #loop: i | ||
| 0 <!-- loops start value for {{#var:i}} --> | | 0 <!-- loops start value for {{#var:i}} --> | ||
| {{#arraysize:HistoryPPTextFormattingVariables}} <!-- number of loops --> | | {{#arraysize:HistoryPPTextFormattingVariables}} <!-- number of loops --> | ||
| <tr> | | <tr> | ||
<td> {{#arrayindex:HistoryPPTextFormattingVariables | {{#var:i}} }} </td> | <td> <tt>{{#arrayindex:HistoryPPTextFormattingVariables | {{#var:i}} }}</tt> </td> | ||
<td> {{L10n:HistoryPP/TextFormatting-Variables | {{#arrayindex:HistoryPPTextFormattingVariables | {{#var:i}} }} }} </td> | <td> {{L10n:HistoryPP/TextFormatting-Variables | {{#arrayindex:HistoryPPTextFormattingVariables | {{#var:i}} }} }} </td> | ||
</tr> | </tr> | ||
}} | }} | ||
<noinclude>[[Category:Content pages]]</noinclude> | </table><noinclude> | ||
[[Category:Content pages]] | |||
</noinclude> |
Latest revision as of 18:50, 13 December 2015
Variable | Description |
---|---|
\n | New line |
\t | Tab |
\\ | Backslash (if you need to output backslash, instead of "Me\You" write "Me\\You") |
\% | Percent sign (if you need to output percent sign, instead of "Me%You" write "Me\%You") |
%nick% | Default contact's nickname text |
%from_nick% | Nick of the sender |
%to_nick% | Nick of the reciever |
%mes% | Plain message text |
%adj_mes% | Message adjusted to fit in 72 symbols |
%quot_mes% | The same as %adj_mes%, but every line is prefixed with "> " |
%selmes% | The same as %mes% or selected text in pseudo-edit mode |
%adj_selmes% | The same as %adj_mes% or applied to selected text in pseudo-edit mode |
%quot_selmes% | The same as %quot_mes% or applied to selected text in pseudo-edit mode |
%datetime% | Date and time of the event |
%smart_datetime% | Works only for several messages. Outputs full date & time only for messages with unique date. For other events outputs only time. |
%date% | Date of the event |
%time% | Time of the event |