Difference between revisions of "Template:Cross-wiki language oldid"

From blackwiki
Jump to navigation Jump to search
imported>Patsagorn Y.
(→‎Usage: Add value if param 1,2 empty.)
imported>Andrybak
(fix typo: missing closing parenthesis in the usage of first positional parameter)
Line 1: Line 1:
<span class="plainlinks">[//{{{2|{{CONTENTLANG}}}}}.{{#switch:{{{1|{{SITENAME}}}}<!--
+
<span class="plainlinks">[//{{{2|{{CONTENTLANG}}}}}.{{#switch:{{{1|{{SITENAME}}}}}<!--
 
-->
 
-->
 
| Wikipedia  = Wikipedia
 
| Wikipedia  = Wikipedia

Revision as of 00:04, 27 February 2020

[1]

Template documentation[view] [edit] [history] [purge]

Usage

Code Output
{{Cross-wiki language oldid|Wikipedia|sv|164}} [2]
{{Cross-wiki language oldid|wiktionary|es|471117|borda}} borda
{{Cross-wiki language oldid|wikiverst|fi|5326|Tehtävät 2|Edit}} Edit
{{Cross-wiki language oldid|wikiqt|de|423279|Der kleine Prinz / Le petit prince (1943)|}} [3]

Note that if {{{5}}} (the fifth parameter) does have a variable, {{{4}}} specifies the section of the page, instead, and {{{5}}} specifies the link text.

Abbreviations

  • wikibks = Wikibooks
  • wikinws = Wikinews
  • wikisrc = Wikisource
  • wikiverst = Wikiversity
  • wikiqt = Wikiquote
  • wikt = Wiktionary

See also