Template talk:Piw

From Wikipedia, the free encyclopedia

"{{piw|help|link}}" gives "help:link (talk, backlinks, edit)" [1]Template:Xpd/

[edit] Contents

[[{{{1}}}:{{{2}}}]] ([[{{{1}}} talk:{{{2}}}|talk]], [[Special:Whatlinkshere/{{{1}}}:{{{2}}}|backlinks]], [http://en.wikipedia.org{{localurl:{{{1}}}:{{{2}}}|action=edit}} edit])<noinclude> {{documentation}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> </noinclude>

[edit] Explanation

Example:

{{piw|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:

{{piw|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

Template:Pi w

-

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

gives

Template:Pi w

-

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

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

gives

Template:Pi w

-

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

gives

Template:Pi w