Contents edit

[[{{#if:{{{1}}}|{{{1}}}:}}{{{2}}}]] ([[{{{1}}} talk:{{{2}}}|talk]], [[Special:Whatlinkshere/{{{1}}}:{{{2}}}|backlinks]], [{{fullurl:m:{{{1}}}:{{lcfirst:{{{2}}}}}|action=edit}} edit])

Explanation edit

Example:

{{pi|w:en|en.wikipedia.org|help|contents}}

gives

w:en:en.wikipedia.org (talk, backlinks, edit)

Note: the last link does not work when linking e.g. from Meta to the Wikipedia namespace of w:en:, project becomes Meta, wikipedia becomes http://en.wikipedia.org:

{{pi|w:en|en.wikipedia.org|project|contents}}

gives

w:en:en.wikipedia.org (talk, backlinks, edit)

-

{{pi|w:en|en.wikipedia.org|wikipedia|contents}}

gives

w:en:en.wikipedia.org (talk, backlinks, edit)

-

Workaround: use the alternative Template:Pi w:

{{pi w|w:en|en.wikipedia.org|project|contents}}

gives

w:en:project:contents (talk, backlinks, [http://en.wikipedia.org/w/index.php?title=project:contents&action=edit edit)

-

{{pi w|w:en|en.wikipedia.org|wikipedia|contents}}

gives

w:en:wikipedia:contents (talk, backlinks, [http://en.wikipedia.org/w/index.php?title=wikipedia:contents&action=edit edit)

-

The disadvantage of this version is that underscores are needed for spaces:

{{pi w|w:en|en.wikipedia.org||train station}}

gives

w:en::train station (talk, backlinks, [http://en.wikipedia.org/w/index.php?title=:train station&action=edit edit)

-

{{pi w|w:en|en.wikipedia.org||train_station}}

gives

w:en::train_station (talk, backlinks, [http://en.wikipedia.org/w/index.php?title=:train_station&action=edit edit)

Return to "Pi" page.