v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:Link"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>[[{{{1}}}{{#if:{{{2|}}}|{{{2}}}}}{{#if:{{{3|}}}|{{{3}}}}}{{#if:{{{4|}}}|{{{4}}}}}{{#if:{{{5|}}}|{{{5}}}}}{{#if:{{{6|}}}|{{{6}}}}}{{#if:{{{7|}}}|{{{7}}}}}{{#if:{{{...")
 
(examples)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>[[{{{1}}}{{#if:{{{2|}}}|{{{2}}}}}{{#if:{{{3|}}}|{{{3}}}}}{{#if:{{{4|}}}|{{{4}}}}}{{#if:{{{5|}}}|{{{5}}}}}{{#if:{{{6|}}}|{{{6}}}}}{{#if:{{{7|}}}|{{{7}}}}}{{#if:{{{8|}}}|{{{8}}}}}{{#if:{{{9|}}}|{{{9}}}}}{{#if:{{{10|}}}|{{{10}}}}}{{#if:{{{t|}}}|{{!}}{{{t}}}}}]]</includeonly><noinclude>
+
<includeonly>[[{{{1}}}{{#if:{{{2|}}}|{{{2}}}}}{{#if:{{{3|}}}|{{{3}}}}}{{#if:{{{4|}}}|{{{4}}}}}{{#if:{{{5|}}}|{{{5}}}}}{{#if:{{{6|}}}|{{{6}}}}}{{#if:{{{7|}}}|{{{7}}}}}{{#if:{{{8|}}}|{{{8}}}}}{{#if:{{{9|}}}|{{{9}}}}}{{#if:{{{10|}}}|{{{10}}}}}{{#if:{{{t|}}}|{{!}}{{{t}}}}}]]<!-- Template:Link --></includeonly><noinclude>
Experimental link template, which might prevent spam in pages linked to from the announcements box.
+
Experimental link template, which might reduce spam on pages linked to from high-traffic pages (especially the announcements).
 +
 
 +
==Usage==
 +
This template accepts up to 10 (ordered) parameters, as well as an optional parameter for a displayed title (<code>t=</code>). Note that '''leading and trailing spaces are stripped from template arguments''' &mdash; that is, spaces in a parameter should have at least one non-whitespace character on each side.
 +
<pre>{{link|Ma|in P|ag|e}}</pre>
 +
{{link|Ma|in P|ag|e}}
 +
 
 +
<pre>{{link|Ma|in |Pag|e}}</pre>
 +
{{link|Ma|in |Pag|e}} (trailing spaces are stripped from argument 2)
 +
 
 +
<pre>{{link|Ma|in P|ag|e|t=Link to main page}}</pre>
 +
{{link|Ma|in P|ag|e|t=Link to main page}}
 +
 
 
</noinclude>
 
</noinclude>

Latest revision as of 18:01, 29 August 2013

Experimental link template, which might reduce spam on pages linked to from high-traffic pages (especially the announcements).

Usage[edit]

This template accepts up to 10 (ordered) parameters, as well as an optional parameter for a displayed title (t=). Note that leading and trailing spaces are stripped from template arguments — that is, spaces in a parameter should have at least one non-whitespace character on each side.

{{link|Ma|in P|ag|e}}

Main Page

{{link|Ma|in |Pag|e}}

MainPage (trailing spaces are stripped from argument 2)

{{link|Ma|in P|ag|e|t=Link to main page}}

Link to main page