Difference between revisions of "Template:Latin script/row26col"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
m (temporarily add safesubst: to simplify some upstream code)
imported>Frietjes
m (Undid revision 633684187 by Frietjes (talk))
Line 1: Line 1:
{{{{{|safesubst:}}}#if:{{{title|}}}
+
{{#if:{{{title|}}}
 
| <!-- titlebar row -->
 
| <!-- titlebar row -->
 
<!-- newline here -->
 
<!-- newline here -->
 
{{!}}-<br/>
 
{{!}}-<br/>
! colspan="26" {{!}} <div style="width:100%; background:{{{background|#e0e0e0;}}}; text-align:center;">'''{{{title}}}'''{{{{{|safesubst:}}}#if:{{{2|}}}|&nbsp;(<span style="font-weight:100; font-size:125%;">{{unicode|&thinsp;{{{2}}}&thinsp;}}</span>)}}</div>
+
! colspan="26" {{!}} <div style="width:100%; background:{{{background|#e0e0e0;}}}; text-align:center;">'''{{{title}}}'''{{#if:{{{2|}}}|&nbsp;(<span style="font-weight:100; font-size:125%;">{{unicode|&thinsp;{{{2}}}&thinsp;}}</span>)}}</div>
 
<!-- newline here -->
 
<!-- newline here -->
 
| <!-- 26 columns row -->
 
| <!-- 26 columns row -->
Line 9: Line 9:
 
{{!}}-<br/>
 
{{!}}-<br/>
 
<!-- newline here -->
 
<!-- newline here -->
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{1|}}}|[[{{{1}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{1|}}}|[[{{{1}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{2|}}}|[[{{{2}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{2|}}}|[[{{{2}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{3|}}}|[[{{{3}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{3|}}}|[[{{{3}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{4|}}}|[[{{{4}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{4|}}}|[[{{{4}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{5|}}}|[[{{{5}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{5|}}}|[[{{{5}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{6|}}}|[[{{{6}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{6|}}}|[[{{{6}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{7|}}}|[[{{{7}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{7|}}}|[[{{{7}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{8|}}}|[[{{{8}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{8|}}}|[[{{{8}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{9|}}}|[[{{{9}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{9|}}}|[[{{{9}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{10|}}}|[[{{{10}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{10|}}}|[[{{{10}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{11|}}}|[[{{{11}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{11|}}}|[[{{{11}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{12|}}}|[[{{{12}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{12|}}}|[[{{{12}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{13|}}}|[[{{{13}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{13|}}}|[[{{{13}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{14|}}}|[[{{{14}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{14|}}}|[[{{{14}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{15|}}}|[[{{{15}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{15|}}}|[[{{{15}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{16|}}}|[[{{{16}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{16|}}}|[[{{{16}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{17|}}}|[[{{{17}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{17|}}}|[[{{{17}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{18|}}}|[[{{{18}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{18|}}}|[[{{{18}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{19|}}}|[[{{{19}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{19|}}}|[[{{{19}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{20|}}}|[[{{{20}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{20|}}}|[[{{{20}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{21|}}}|[[{{{21}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{21|}}}|[[{{{21}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{22|}}}|[[{{{22}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{22|}}}|[[{{{22}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{23|}}}|[[{{{23}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{23|}}}|[[{{{23}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{|safesubst:}}}{#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{24|}}}|[[{{{24}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{24|}}}|[[{{{24}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{25|}}}|[[{{{25}}}]]}}</span>
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{25|}}}|[[{{{25}}}]]}}</span>
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{{{{|safesubst:}}}#ifeq:{{{underlines}}}|no|nounderlines}}">{{{{{|safesubst:}}}#if:{{{26|}}}|[[{{{26}}}]]}}</span><!--
+
{{!}}style="text-align:center;width:3.85%;" {{!}}<span class="{{#ifeq:{{{underlines}}}|no|nounderlines}}">{{#if:{{{26|}}}|[[{{{26}}}]]}}</span><!--
-->{{{{{|safesubst:}}}#if:{{{27|}}}|{{error|Unexpected 27th column: {{{27|}}}|tag=span}}}}
+
-->{{#if:{{{27|}}}|{{error|Unexpected 27th column: {{{27|}}}|tag=span}}}}
 
<!-- newline here -->
 
<!-- newline here -->
 
<!-- closing the #if:-construct -->}}<noinclude>
 
<!-- closing the #if:-construct -->}}<noinclude>
 
{{documentation|Template:Latin alphabet/doc}}
 
{{documentation|Template:Latin alphabet/doc}}
 
</noinclude>
 
</noinclude>

Revision as of 16:34, 13 November 2014

|-
|style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" | |style="text-align:center;width:3.85%;" |

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

Usage

Basic examples

  • Input parameter #1: À, single letter: {{Latin script|À}}

Adding the block "Letter X with diacritics"

  • When the parameter is "A" (or À: with or without diacritics), the block is added "Letter A with diacritics"
  • {{Latin script|A}}

Adding the block "Letters with diacritic ^"

  • When the parameter has a diacritic e.g. Â, the block "All letters with diacritic ^ (circumflex)" is shown.
  • When the parameter "show diacritic=" is set, that block will show: {{Latin script|A|show diacritic=grave}}
  • {{Latin script|A|show diacritic=circumflex}}

Adding the block "Pairs with Letter X"

  • When the parameter is a straight letter A-Z, the block with letter pairs is shown.
  • When the parameter show pairs=yes/no is set, the pairs will show/hide accordingly:

{{Latin script|À|show pairs=yes}}

More options

  • When the parameter show diacritic 2= is used, a second block of diacritics will be shown:
  • {{Latin script|A|show diacritic=grave|show diacritic 2=circumflex}}

Parameter list

The full parameter list:

{{Latin script
|
| show diacritic =
| show diacritic 2 =
| show letter = 
| show pairs = 
}}

Input options are:

First, unnamed parameter: (default: the PAGENAME). The input where information is derived from: which basic A-Z letter, which diacritic is used?
show diacritic: (default: derived from first parameter). Which diacritic is shown: acute, hook, ... Also: if set to show diacritic=no the diacritic blok will not be shown at all.
show diacritic 2: Allows for the block of a second diacritic being shown.
show letter: (default: determined from input 1). Sets which block "Letter X with diacritics" is shown. Also: if set to show letter=no the diacritic blok will not be shown at all.
show pairs: (default:yes if input 1 = A-Z). If set to "yes", all pairs with basic input 1-letter are shown.

Editing the template

Technical background

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Latin script

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Letter/Diacritic1

The input where information is derived from: which basic A-Z letter, which diacritic is used?

Default
Defaults to ((PAGENAME))
Auto value
Stringsuggested
Diactriticshow diacritic

Which diacritic is shown: acute, hook, ... Also: if set to show diacritic=no the diacritic block will not be shown at all.

Default
This parameter defaults to the first parameter.
Stringoptional
2nd Diacriticshow diacritic 2

Allows for the block of a second diacritic being shown.

Stringoptional
Lettershow letter

Sets which block "Letter X with diacritics" is shown. Also: if set to show letter=no the diacritic block will not be shown at all.

Default
This parameter defaults to the first parameter.
Stringoptional
Pairsshow pairs

If set to "yes", all pairs with basic input 1-letter are shown.

Default
This parameter defaults to "yes" if input 1 = A-Z
Booleanoptional

See also