Difference between revisions of "Template:Interlanguage link info/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Martin of Sheffield
(Sandbox ideas)
 
imported>Martin of Sheffield
(Sandbox to contain template, not test! Oops.)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Test case|_collapsible=yes|_showcode=yes|_title=Test1
+
{{Ambox|
}}
+
  | name = Interlanguage link info
 
+
  | small = {{#if:{{{sect|{{{section|{{{1|}}}}}}}}}|{{#if:{{{small|{{{left|}}}}}}|left}} }}
{{Test case|_collapsible=yes|_showcode=yes|_title=Test
+
  | sect = {{#ifeq:{{yesno|def=|1={{{sect|{{{section}}}}}} }}|yes|section|{{{sect|{{{section|{{{1|}}}}}}}}} }}
|section=yes}}
+
  | text = contains numerous links to pages on [[List of Wikipedias#Detailed list|foreign language Wikpedias]].  They are shown as {{color|red|red links}} with the language codes in [{{color|blue|<small>small blue letters</small>}}] in brackets.  Click on the language code to see the page in that language.
 
+
}}<noinclude>
{{Test case|_collapsible=yes|_showcode=yes|_title=Test
 
|section=test}}
 
 
 
{{Test case|_collapsible=yes|_showcode=yes|_title=Test
 
|small=left}}
 
 
 
{{Test case|_collapsible=yes|_showcode=yes|_title=Test
 
|section=yes|small=left}}
 
 
 
<noinclude>
 
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 16:12, 26 June 2020

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

Usage

This template adds an information banner to assist readers in understanding a {{Interlanguage link}}. Up to two parameters may be supplied:

Section

The first (and only) unnamed parameter, |sec= and |section= change the first words. By default they are "This page". If the parameter is "y" or "true" then the words will be "This section". Any other value simply replaces the word "article".

Small

By default the message is displayed across the width of the page. If |small=left is supplied then the box will be narrow on the left-hand side. This only works in sections, boxes applying to the whole page cannot be rendered small.

See also

  • {{ill-info}} which links to {{Interlanguage link info}}.