模板:PublicationRequestId

来自百问网嵌入式Linux wiki
Wiki讨论 | 贡献2020年4月10日 (五) 15:47的版本 (创建页面,内容为“<noinclude> ==Usage== The PublicationRequestId template is used '''to store, in a page, the date and the identifier (ID) of the las…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

Usage

The PublicationRequestId template is used to store, in a page, the date and the identifier (ID) of the last publication request (PR) done to the technical writer team, through the technical literature management system (TLMS), for publishing this page. It should be added at the bottom of the page for which a PR has been done.

It puts a message box with a "light blue checked document" icon in the page.

Only logged-in users who have writing permissions, can see this box. However, do not put any confidential information in the parameters of this template.

Usage: {{PublicationRequestId | <TLMS PR ID> | <date> | <comment>}}

Where:

  • <TLMS PR ID> is the mandatory identifier of the publication request done in the TLMS
    • Auto is a special value for this parameter to indicate that the page has been automatically approved (no TLMS PR ID)
  • <date> is the date of the request in the YYYY-MM-DD format. It is a mandatory parameter, except if <TLMS PR ID> is Auto
  • <comment> is an optional comment.

Basic examples

You type You get
Publication request: TLMS PR ID and date supplied
{{PublicationRequestId | 12345 | 2019-05-09 |}}

<securetransclude src="ProtectedTemplate:PublicationRequestId" params="12345 | 2019-05-09 |"></securetransclude>

Publication request: TLMS PR ID set with "Auto" and comment supplied
{{PublicationRequestId | Auto |  | Automatic approval based on the “Category model” article}}

<securetransclude src="ProtectedTemplate:PublicationRequestId" params="Auto | | Automatic approval based on the “Category model” article"></securetransclude>

More examples

You type You get
Publication request: no TLMS PR ID supplied, no date supplied
{{PublicationRequestId}}

<securetransclude src="ProtectedTemplate:PublicationRequestId" params="| |"></securetransclude>

Publication request: TLMS PR ID supplied, no date supplied
{{PublicationRequestId | 12345}}

<securetransclude src="ProtectedTemplate:PublicationRequestId" params="12345 | |"></securetransclude>

Publication request: no TLMS PR ID supplied, date supplied
{{PublicationRequestId | | 2019-05-09}}

<securetransclude src="ProtectedTemplate:PublicationRequestId" params="| 2019-05-09 |"></securetransclude>

Publication request: TLMS PR ID supplied, date supplied, comment supplied
{{PublicationRequestId | 12345 | 2019-05-09 | Comment about this PR}}

<securetransclude src="ProtectedTemplate:PublicationRequestId" params="12345 | 2019-05-09 | Comment about this PR"></securetransclude>

Publication request: TLMS PR ID set with "Auto", no comment supplied
{{PublicationRequestId | Auto}}

<securetransclude src="ProtectedTemplate:PublicationRequestId" params="Auto | |"></securetransclude>

Check that the spaces before and after the message
BEFORE{{PublicationRequestId | Auto}}AFTER<br>
BEFORE
{{PublicationRequestId | Auto}}
AFTER

BEFORE<securetransclude src="ProtectedTemplate:PublicationRequestId" params="Auto | |"></securetransclude>AFTER
BEFORE <securetransclude src="ProtectedTemplate:PublicationRequestId" params="Auto | |"></securetransclude> AFTER

Code

<securetransclude src="ProtectedTemplate:PublicationRequestId" params="| |"></securetransclude>