Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Template:ScoutLink"

m (add nowiki tag arround the expanded version in the noinclude)
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
Template for links in the Scout project.
+
This template should be used for all internal links of the Scout project. The usage is simple:
[[Scout/{{{1}}}{{#if: {{{2}}} | /{{{2}}} | }} | {{#if: {{{name}}} | {{{name}}} |    {{#if: {{{3}}} | {{{3}}} | {{#if: {{{2}}} | {{{2}}} | {{{1}}} }} }}   }}]]
+
* <code><nowiki>{{ScoutLink|<Category name>|<Page name>}}</nowiki></code> for normal pages
</noinclude>
+
* <code><nowiki>{{ScoutLink|<Page name>}}</nowiki></code> for top level pages
<includeonly>[[Scout/{{{1}}}|{{{name}}}]]</includeonly>
+
* <code><nowiki>{{ScoutLink|<Category name>|<Page name>|<Link name>}}</nowiki></code> links with a name
 +
* <code><nowiki>{{ScoutLink|<Category name>|<Page name>|name=<Link name>}}</nowiki></code> Alternative format for links with a name
 +
 
 +
Source:
 +
<code><nowiki>
 +
[[Scout/{{{1}}}
 +
  {{#if: {{{2|}}} | /{{{2}}} |  
 +
  }} |  
 +
  {{#if: {{{name|}}} | {{{name}}} |     
 +
    {{#if: {{{3|}}} | {{{3}}} |  
 +
      {{#if: {{{2|}}} | {{{2}}} | {{{1}}}  
 +
      }}  
 +
    }}  
 +
  }}
 +
]]
 +
</nowiki></code>
 +
 
 +
[[Category:Scout Template]]
 +
</noinclude><includeonly>[[Scout/{{{1}}}{{#if:{{{2|}}}|/{{{2}}}|}}|{{#if:{{{name|}}}|{{{name}}}|{{#if:{{{3|}}}|{{{3}}}|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}}}}}]]</includeonly>

Revision as of 15:28, 9 November 2010

This template should be used for all internal links of the Scout project. The usage is simple:

  • {{ScoutLink|<Category name>|<Page name>}} for normal pages
  • {{ScoutLink|<Page name>}} for top level pages
  • {{ScoutLink|<Category name>|<Page name>|<Link name>}} links with a name
  • {{ScoutLink|<Category name>|<Page name>|name=<Link name>}} Alternative format for links with a name

Source: [[Scout/{{{1}}} {{#if: {{{2|}}} | /{{{2}}} | }} | {{#if: {{{name|}}} | {{{name}}} | {{#if: {{{3|}}} | {{{3}}} | {{#if: {{{2|}}} | {{{2}}} | {{{1}}} }} }} }} ]]

Copyright © Eclipse Foundation, Inc. All Rights Reserved.