Registered User (Merge articles) |
Registered User mNo edit summary |
||
Line 29: | Line 29: | ||
| '''Linux kernel''' | | '''Linux kernel''' | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
1- {{DocSource | domain=Linux kernel | path=crypto/index.html}} | 1- {{DocSource | domain=Linux kernel | path=crypto/index.html}}<br /> | ||
2- {{DocSource | domain=Linux kernel | path=gpu/drm-uapi.html}} | 2- {{DocSource | domain=Linux kernel | path=gpu/drm-uapi.html}} | ||
</pre> | </pre> | ||
Line 38: | Line 38: | ||
| '''Yocto Project''' | | '''Yocto Project''' | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
1- {{DocSource | domain=Yocto Project | path=overview-manual/overview-manual.html}} | 1- {{DocSource | domain=Yocto Project | path=overview-manual/overview-manual.html}}<br /> | ||
2- {{DocSource | domain=Yocto Project | path=brief-yoctoprojectqs/brief-yoctoprojectqs.html}} | 2- {{DocSource | domain=Yocto Project | path=brief-yoctoprojectqs/brief-yoctoprojectqs.html}} | ||
</pre> | </pre> | ||
Line 47: | Line 47: | ||
| '''AWS IoT Greengrass''' | | '''AWS IoT Greengrass''' | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
1- {{DocSource | domain=AWS Greengrass | path=developerguide/what-is-gg.html}} | 1- {{DocSource | domain=AWS Greengrass | path=developerguide/what-is-gg.html}}<br /> | ||
2- {{DocSource | domain=AWS Greengrass | path=developerguide/device-config-setup.html}} | 2- {{DocSource | domain=AWS Greengrass | path=developerguide/device-config-setup.html}} | ||
</pre> | </pre> | ||
Line 61: | Line 61: | ||
| '''Linux kernel''' | | '''Linux kernel''' | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
1- {{DocSource | domain=Linux kernel | path=crypto/index.html}} | 1- {{DocSource | domain=Linux kernel | path=crypto/index.html}}<br /> | ||
2- {{DocSource | domain=Linux kernel | path=crypto/index.html | text=Linux Kernel Crypto API}} | 2- {{DocSource | domain=Linux kernel | path=crypto/index.html | text=Linux Kernel Crypto API}}<br /> | ||
3- {{DocSource | domain=Linux kernel | path=crypto/index.html | version=4.19}} | 3- {{DocSource | domain=Linux kernel | path=crypto/index.html | version=4.19}}<br /> | ||
4- {{DocSource | domain=Linux kernel | path=crypto/index.html | text=Linux Kernel Crypto API | version=4.19}} | 4- {{DocSource | domain=Linux kernel | path=crypto/index.html | text=Linux Kernel Crypto API | version=4.19}} | ||
</pre> | </pre> | ||
Line 74: | Line 74: | ||
| '''Yocto Project''' | | '''Yocto Project''' | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
1- {{DocSource | domain=Yocto Project | path=overview-manual/overview-manual.html}} | 1- {{DocSource | domain=Yocto Project | path=overview-manual/overview-manual.html}}<br /> | ||
2- {{DocSource | domain=Yocto Project | path=overview-manual/overview-manual.html | text=Yocto Project Overview and Concepts Manual}} | 2- {{DocSource | domain=Yocto Project | path=overview-manual/overview-manual.html | text=Yocto Project Overview and Concepts Manual}}<br /> | ||
3- {{DocSource | domain=Yocto Project | path=overview-manual/overview-manual.html | version=3.0}} | 3- {{DocSource | domain=Yocto Project | path=overview-manual/overview-manual.html | version=3.0}}<br /> | ||
4- {{DocSource | domain=Yocto Project | path=overview-manual/overview-manual.html | text=Yocto Project Overview and Concepts Manual | version=3.0}} | 4- {{DocSource | domain=Yocto Project | path=overview-manual/overview-manual.html | text=Yocto Project Overview and Concepts Manual | version=3.0}} | ||
</pre> | </pre> | ||
Line 87: | Line 87: | ||
| '''AWS IoT Greengrass''' | | '''AWS IoT Greengrass''' | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
1- {{DocSource | domain=AWS Greengrass | path=developerguide/what-is-gg.html}} | 1- {{DocSource | domain=AWS Greengrass | path=developerguide/what-is-gg.html}}<br /> | ||
2- {{DocSource | domain=AWS Greengrass | path=developerguide/what-is-gg.html | text=What is AWS IoT Greengrass?}} | 2- {{DocSource | domain=AWS Greengrass | path=developerguide/what-is-gg.html | text=What is AWS IoT Greengrass?}}<br /> | ||
3- {{DocSource | domain=AWS Greengrass | path=developerguide/what-is-gg.html | version=2.0}} | 3- {{DocSource | domain=AWS Greengrass | path=developerguide/what-is-gg.html | version=2.0}}<br /> | ||
4- {{DocSource | domain=AWS Greengrass | path=developerguide/what-is-gg.html | text=What is AWS IoT Greengrass? | version=2.0}} | 4- {{DocSource | domain=AWS Greengrass | path=developerguide/what-is-gg.html | text=What is AWS IoT Greengrass? | version=2.0}} | ||
</pre> | </pre> | ||
Line 97: | Line 97: | ||
3- {{DocSource | domain=AWS Greengrass | path=developerguide/what-is-gg.html | version=2.0}}<br /> | 3- {{DocSource | domain=AWS Greengrass | path=developerguide/what-is-gg.html | version=2.0}}<br /> | ||
4- {{DocSource | domain=AWS Greengrass | path=developerguide/what-is-gg.html | text=What is AWS IoT Greengrass? | version=2.0}} | 4- {{DocSource | domain=AWS Greengrass | path=developerguide/what-is-gg.html | text=What is AWS IoT Greengrass? | version=2.0}} | ||
|- | |||
| Check that there's no space before and after the text | |||
<pre style="white-space: pre-wrap;"> | |||
1- BEFORE{{DocSource | domain=Linux kernel | path=crypto/index.html}}AFTER<br /> | |||
2- BEFORE{{DocSource | domain=Linux kernel | path=crypto/index.html | text=Linux Kernel Crypto API}}AFTER<br /> | |||
3- BEFORE{{DocSource | domain=Linux kernel | path=crypto/index.html | version=4.19}}AFTER<br /> | |||
4- BEFORE{{DocSource | domain=Linux kernel | path=crypto/index.html | text=Linux Kernel Crypto API | version=4.19}}AFTER | |||
</pre> | |||
| | |||
1- BEFORE{{DocSource | domain=Linux kernel | path=crypto/index.html}}AFTER<br /> | |||
2- BEFORE{{DocSource | domain=Linux kernel | path=crypto/index.html | text=Linux Kernel Crypto API}}AFTER<br /> | |||
3- BEFORE{{DocSource | domain=Linux kernel | path=crypto/index.html | version=4.19}}AFTER<br /> | |||
4- BEFORE{{DocSource | domain=Linux kernel | path=crypto/index.html | text=Linux Kernel Crypto API | version=4.19}}AFTER | |||
|- | |- | ||
| Unsupported domain | | Unsupported domain | ||
Line 109: | Line 122: | ||
'''Linux kernel''': | '''Linux kernel''': | ||
<nowiki> | <nowiki> | ||
[https://www.kernel.org/doc/html/{{#if: {{{version|}}}|v{{#replace:{{{version|}}}| |}}|v5.4}}/{{#replace:{{{path|}}}| |}} {{#if: {{{text|}}}|{{{text}}}|{{{path}}}}} {{#if: {{{version|}}}|(v{{#replace:{{{version|}}}| |}})}}] | [https://www.kernel.org/doc/html/{{#if: {{{version|}}}|v{{#replace:{{{version|}}}| |}}|v5.4}}/{{#replace:{{{path|}}}| |}} {{#if: {{{text|}}}|{{{text}}}|{{{path}}}}}{{#if: {{{version|}}}| (v{{#replace:{{{version|}}}| |}})}}] | ||
</nowiki> | </nowiki> | ||
'''Yocto Project''': | '''Yocto Project''': | ||
<nowiki> | <nowiki> | ||
[https://www.yoctoproject.org/docs/{{#if: {{{version|}}}|{{#replace:{{{version|}}}| |}}|3.1}}/{{#replace:{{{path|}}}| |}} {{#if: {{{text|}}}|{{{text}}}|{{{path}}}}} {{#if: {{{version|}}}|(v{{#replace:{{{version|}}}| |}})}}] | [https://www.yoctoproject.org/docs/{{#if: {{{version|}}}|{{#replace:{{{version|}}}| |}}|3.1}}/{{#replace:{{{path|}}}| |}} {{#if: {{{text|}}}|{{{text}}}|{{{path}}}}}{{#if: {{{version|}}}| (v{{#replace:{{{version|}}}| |}})}}] | ||
</nowiki> | </nowiki> | ||
'''AWS IoT Greengrass''' | '''AWS IoT Greengrass''' | ||
<nowiki> | <nowiki> | ||
[https://docs.aws.amazon.com/greengrass/{{#if: {{{version|}}}|{{#replace:{{{version|}}}| |}}|latest}}/{{#replace:{{{path|}}}| |}} {{#if: {{{text|}}}|{{{text}}}|{{{path}}}}} {{#if: {{{version|}}}|({{#replace:{{{version|}}}| |}})}}] | [https://docs.aws.amazon.com/greengrass/{{#if: {{{version|}}}|{{#replace:{{{version|}}}| |}}|latest}}/{{#replace:{{{path|}}}| |}} {{#if: {{{text|}}}|{{{text}}}|{{{path}}}}}{{#if: {{{version|}}}| v({{#replace:{{{version|}}}| |}})}}] | ||
</nowiki> | </nowiki> | ||
</noinclude>{{#switch: {{{domain}}} | </noinclude>{{#switch: {{{domain}}} | ||
| Linux kernel = [https://www.kernel.org/doc/html/{{#if: {{{version|}}}|v{{#replace:{{{version|}}}| |}}|v5.4}}/{{#replace:{{{path|}}}| |}} {{#if: {{{text|}}}|{{{text}}}|{{{path}}}}} {{#if: {{{version|}}}|(v{{#replace:{{{version|}}}| |}})}}] | | Linux kernel = [https://www.kernel.org/doc/html/{{#if: {{{version|}}}|v{{#replace:{{{version|}}}| |}}|v5.4}}/{{#replace:{{{path|}}}| |}} {{#if: {{{text|}}}|{{{text}}}|{{{path}}}}}{{#if: {{{version|}}}| (v{{#replace:{{{version|}}}| |}})}}] | ||
| Yocto Project = [https://www.yoctoproject.org/docs/{{#if: {{{version|}}}|{{#replace:{{{version|}}}| |}}|3.1}}/{{#replace:{{{path|}}}| |}} {{#if: {{{text|}}}|{{{text}}}|{{{path}}}}} {{#if: {{{version|}}}|(v{{#replace:{{{version|}}}| |}})}}] | | Yocto Project = [https://www.yoctoproject.org/docs/{{#if: {{{version|}}}|{{#replace:{{{version|}}}| |}}|3.1}}/{{#replace:{{{path|}}}| |}} {{#if: {{{text|}}}|{{{text}}}|{{{path}}}}}{{#if: {{{version|}}}| (v{{#replace:{{{version|}}}| |}})}}] | ||
| AWS Greengrass = [https://docs.aws.amazon.com/greengrass/{{#if: {{{version|}}}|{{#replace:{{{version|}}}| |}}|latest}}/{{#replace:{{{path|}}}| |}} {{#if: {{{text|}}}|{{{text}}}|{{{path}}}}} {{#if: {{{version|}}}|({{#replace:{{{version|}}}| |}})}}] | | AWS Greengrass = [https://docs.aws.amazon.com/greengrass/{{#if: {{{version|}}}|{{#replace:{{{version|}}}| |}}|latest}}/{{#replace:{{{path|}}}| |}} {{#if: {{{text|}}}|{{{text}}}|{{{path}}}}}{{#if: {{{version|}}}| (v{{#replace:{{{version|}}}| |}})}}] | ||
| {{Highlight| Unsupported domain!}} | | {{Highlight| Unsupported domain!}} | ||
}} | }} |
Revision as of 11:52, 19 October 2020
1. Usage[edit source]
The DocSource template is used to indicate the URL of any Linux® kernel, Yocto Project, and AWS IoT Greengrass document used in this wiki.
<domain> | path=<path> | text=<link text> | version=<version>}}Usage: {{DocSource | domain=
- Where:
- <domain> is the mandatory string that identifies the domain of the document. The possible values are:
- Linux kernel: the document belongs to the Linux kernel domain.
- Yocto Project: the document belongs to the Yocto Project domain.
- AWS Greengrass: the document belongs to the AWS IoT Greengrass domain.
- <path> is the mandatory relative path of the document from the root URL of the domain. The root URLs are:
- https://www.kernel.org/doc/html/ for the Linux kernel domain
- https://www.yoctoproject.org/docs/ for the Yocto Project domain
- https://docs.aws.amazon.com/greengrass/ for the AWS IoT Greengrass domain
- <link text> is an optional link text (text that is displayed instead of the URL).
- <version> is an optional version number (branch or tag) if the default one doesn't fit. Per default, the URL points to:
- the v5.4 branch of the Linux kernel
- the 3.1 branch of the Yocto Project
- the latest branch of the AWS IoT Greengrass
2. Basic examples[edit source]
You type | You get |
---|---|
Linux kernel
Linux kernel | path=crypto/index.html}}<br /> 2- {{DocSource | domain=Linux kernel | path=gpu/drm-uapi.html}}1- {{DocSource | domain= |
|
Yocto Project
Yocto Project | path=overview-manual/overview-manual.html}}<br /> 2- {{DocSource | domain=Yocto Project | path=brief-yoctoprojectqs/brief-yoctoprojectqs.html}}1- {{DocSource | domain= |
1- overview-manual/overview-manual.html |
AWS IoT Greengrass
1- {{DocSource | domain=AWS Greengrass | path=developerguide/what-is-gg.html}}<br />
2- {{DocSource | domain=AWS Greengrass | path=developerguide/device-config-setup.html}}
|
1- developerguide/what-is-gg.html |
3. More examples[edit source]
You type | You get |
---|---|
Linux kernel
Linux kernel | path=crypto/index.html}}<br /> 2- {{DocSource | domain=Linux kernel | path=crypto/index.html | text=Linux Kernel Crypto API}}<br /> 3- {{DocSource | domain=Linux kernel | path=crypto/index.html | version=4.19}}<br /> 4- {{DocSource | domain=Linux kernel | path=crypto/index.html | text=Linux Kernel Crypto API | version=4.19}}1- {{DocSource | domain= |
1- crypto/index.html |
Yocto Project
Yocto Project | path=overview-manual/overview-manual.html}}<br /> 2- {{DocSource | domain=Yocto Project | path=overview-manual/overview-manual.html | text=Yocto Project Overview and Concepts Manual}}<br /> 3- {{DocSource | domain=Yocto Project | path=overview-manual/overview-manual.html | version=3.0}}<br /> 4- {{DocSource | domain=Yocto Project | path=overview-manual/overview-manual.html | text=Yocto Project Overview and Concepts Manual | version=3.0}}1- {{DocSource | domain= |
1- overview-manual/overview-manual.html |
AWS IoT Greengrass
IoT Greengrass?}}<br /> 3- {{DocSource | domain=AWS Greengrass | path=developerguide/what-is-gg.html | version=2.0}}<br /> 4- {{DocSource | domain=AWS Greengrass | path=developerguide/what-is-gg.html | text=What is AWS IoT Greengrass? | version=2.0}}1- {{DocSource | domain=AWS Greengrass | path=developerguide/what-is-gg.html}}<br /> 2- {{DocSource | domain=AWS Greengrass | path=developerguide/what-is-gg.html | text=What is AWS |
1- developerguide/what-is-gg.html |
Check that there's no space before and after the text
Linux kernel | path=crypto/index.html}}AFTER<br /> 2- BEFORE{{DocSource | domain=Linux kernel | path=crypto/index.html | text=Linux Kernel Crypto API}}AFTER<br /> 3- BEFORE{{DocSource | domain=Linux kernel | path=crypto/index.html | version=4.19}}AFTER<br /> 4- BEFORE{{DocSource | domain=Linux kernel | path=crypto/index.html | text=Linux Kernel Crypto API | version=4.19}}AFTER1- BEFORE{{DocSource | domain= |
1- BEFOREcrypto/index.html AFTER |
Unsupported domain
{{DocSource | domain=Unsupported domain | path=Document}}
|
Unsupported domain! |
4. Code[edit source]
Linux kernel: [https://www.kernel.org/doc/html/{{#if: {{{version|}}}|v{{#replace:{{{version|}}}| |}}|v5.4}}/{{#replace:{{{path|}}}| |}} {{#if: {{{text|}}}|{{{text}}}|{{{path}}}}}{{#if: {{{version|}}}| (v{{#replace:{{{version|}}}| |}})}}]
Yocto Project: [https://www.yoctoproject.org/docs/{{#if: {{{version|}}}|{{#replace:{{{version|}}}| |}}|3.1}}/{{#replace:{{{path|}}}| |}} {{#if: {{{text|}}}|{{{text}}}|{{{path}}}}}{{#if: {{{version|}}}| (v{{#replace:{{{version|}}}| |}})}}]
AWS IoT Greengrass [https://docs.aws.amazon.com/greengrass/{{#if: {{{version|}}}|{{#replace:{{{version|}}}| |}}|latest}}/{{#replace:{{{path|}}}| |}} {{#if: {{{text|}}}|{{{text}}}|{{{path}}}}}{{#if: {{{version|}}}| v({{#replace:{{{version|}}}| |}})}}]
Unsupported domain!