Template:Plan/Page: Difference between revisions
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#iferror:{{#ifexpr:{{{manual| {{#titleparts: {{PAGENAME}} | 1 | 2 }} }}}^0 = 1|[[Special:myLanguage/Plan/{{#titleparts:{{PAGENAME}}|1|2}}/Manual/{{{page}}}|{{{title}}}]]|string}}|[[Special:myLanguage/Plan/Manual/{{{page}}}|{{{title}}}]]}}</includeonly><noinclude> | <includeonly>{{#iferror:{{#ifexpr:{{{manual| {{#titleparts: {{PAGENAME}} | 1 | 2 }} }}}^0 = 1 | ||
|[[Special:myLanguage/Plan/{{#titleparts:{{PAGENAME}}|1|2}}/Manual/{{{page}}}|{{#if: {{{title|}}} |{{{title}}}|{{{page}}} }}]]|string}} | |||
|[[Special:myLanguage/Plan/Manual/{{{page}}}|{{#if: {{{title|}}} |{{{title}}}|{{{page}}} }}]]}}</includeonly><noinclude> | |||
==Description== | ==Description== | ||
Line 14: | Line 16: | ||
<tt><nowiki>{{Plan/Page</nowiki><br><nowiki> | <tt><nowiki>{{Plan/Page</nowiki><br><nowiki> | ||
| page = The page name.</nowiki><br><nowiki> | | page = The page name.</nowiki><br><nowiki> | ||
| title = The page title.</nowiki><br><nowiki> | | title = The page title. (optional)</nowiki><br><nowiki> | ||
}}</nowiki></tt> | }}</nowiki></tt> | ||
Examples: | |||
<tt><nowiki>{{Plan/Page|page= | <tt><nowiki>{{Plan/Page|page=Introduction|title=Introducing Plan}}</nowiki></tt> | ||
{{Plan/Page|page=Introduction|title=Introducing Plan}} | |||
<tt><nowiki>{{Plan/Page|page=Introduction|title=}}</nowiki></tt> | |||
{{Plan/Page|page=Introduction}} | |||
</noinclude> | </noinclude> |
Latest revision as of 19:25, 2 December 2019
Description
Page reference template to be used in versioned manual pages.
The url must have the following format: Plan/<version number>/Manual/<subpage>
Version number must be a number, or empty, e.g:
- Plan/Manual/Introduction, or
- Plan/1/Manual/Introduction
{{Plan/Page
| page = The page name.
| title = The page title. (optional)
}}
Examples:
{{Plan/Page|page=Introduction|title=Introducing Plan}}
{{Plan/Page|page=Introduction|title=}}