Template:Plan/Page: Difference between revisions

From KDE Wiki Sandbox
No edit summary
(Make title optional)
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}}}|{{{title}}}]]|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>


Example:
Examples:


<tt><nowiki>{{Plan/Page|page=Intrduction|title=Introducing Plan}}</nowiki></tt>
<tt><nowiki>{{Plan/Page|page=Introduction|title=Introducing Plan}}</nowiki></tt>


Gives:
{{Plan/Page|page=Introduction|title=Introducing Plan}}
:{{Plan/Page|page=Intrduction|title=Introducing Plan}}
 
<tt><nowiki>{{Plan/Page|page=Introduction}}</nowiki></tt>
 
{{Plan/Page|page=Introduction}}


</noinclude>
</noinclude>

Revision as of 14:18, 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}}

Introducing Plan

{{Plan/Page|page=Introduction}}

Introduction