Difference between revisions of "Template:Goto"

From Synfig Studio :: Documentation
Jump to: navigation, search
m
m
Line 1: Line 1:
{{#ifexist: {{{1}}}/{{SUBPAGENAME}} | [[{{{1}}}/{{SUBPAGENAME}}]] | [[{{{1}}}]] }}
+
{{#ifexist: {{{1}}}/{{SUBPAGENAME}} | [[{{{1}}}/{{SUBPAGENAME}}]] | [[{{{1}}}]] }}<noinclude>
 +
 
 +
This template is to be used on localized pages. Use it to generate a link to another pages from page with same language subpage. If the page does not exist, the link is generated to the default target page, without language subcode (english).
 +
 
 +
Basic link to page [[Doc:Overview]] has form:
 +
 
 +
<nowiki>[[Doc:Overview]]</nowiki>
 +
 
 +
Next example demonstrate using this template on any page with language subcode cs…
 +
 
 +
<nowiki>{{goto|Doc:Overview}}</nowiki>
 +
 
 +
# If target exist, as [[Doc:Overview/cs]], is generated link to this page.
 +
# If target not exist, is generated link [[Doc:Overview]]
 +
 
 +
</noinclude>

Revision as of 11:37, 3 February 2017

[[{{{1}}}]]

This template is to be used on localized pages. Use it to generate a link to another pages from page with same language subpage. If the page does not exist, the link is generated to the default target page, without language subcode (english).

Basic link to page Doc:Overview has form:

[[Doc:Overview]]

Next example demonstrate using this template on any page with language subcode cs…

{{goto|Doc:Overview}}
  1. If target exist, as Doc:Overview/cs, is generated link to this page.
  2. If target not exist, is generated link Doc:Overview