Skip to main content
Jump to: navigation, search

Difference between revisions of "Template:ScoutLink"

(remove blanks)
m (add nowiki tag arround the expanded version in the noinclude)
 
Line 5: Line 5:
 
* <code><nowiki>{{ScoutLink|<Category name>|<Page name>|<Link name>}}</nowiki></code> links with a name
 
* <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
 
* <code><nowiki>{{ScoutLink|<Category name>|<Page name>|name=<Link name>}}</nowiki></code> Alternative format for links with a name
[[Category:Scout Template]]
+
 
<code>
+
Source:
 +
<code><nowiki>
 
[[Scout/{{{1}}}
 
[[Scout/{{{1}}}
 
   {{#if: {{{2|}}} | /{{{2}}} |  
 
   {{#if: {{{2|}}} | /{{{2}}} |  
Line 15: Line 16:
 
       }}  
 
       }}  
 
     }}   
 
     }}   
}}
+
  }}
 
]]
 
]]
</code>
+
</nowiki></code>
  
 +
[[Category:Scout Template]]
 
</noinclude><includeonly>[[Scout/{{{1}}}{{#if:{{{2|}}}|/{{{2}}}|}}|{{#if:{{{name|}}}|{{{name}}}|{{#if:{{{3|}}}|{{{3}}}|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}}}}}]]</includeonly>
 
</noinclude><includeonly>[[Scout/{{{1}}}{{#if:{{{2|}}}|/{{{2}}}|}}|{{#if:{{{name|}}}|{{{name}}}|{{#if:{{{3|}}}|{{{3}}}|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}}}}}]]</includeonly>

Latest revision as of 14: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}}} }} }} }} ]]

Back to the top