Template:Plan/Page: Difference between revisions

From KDE UserBase Wiki
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#iferror:{{#ifexpr:{{{manual| {{#titleparts: {{PAGENAME}} | 1 | 2 }} }}}^0 = 1
{{#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/{{#titleparts:{{PAGENAME}}|1|2}}/Manual/{{{page}}}|{{{title}}}]]
|[[Special:myLanguage/Plan/Manual/{{{page}}}|{{#if: {{{title|}}} |{{{title}}}|{{{page}}} }}]]}}</includeonly><noinclude>
|string}}
|[[Special:myLanguage/Plan/Manual/{{{page}}}|{{{title}}}]]
}}
</includeonly>
<noinclude>


==Description==
==Description==
Line 21: 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|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}}

Introducing Plan

{{Plan/Page|page=Introduction|title=}}

Introduction