Difference between revisions of "Template:LetterApp"

From EncyclopAtys

Jump to: navigation, search
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly><div {{#switch: {{{align}}}
 
<includeonly><div {{#switch: {{{align}}}
 
       | right= style="margin-left: auto; margin-right: 0px;"
 
       | right= style="margin-left: auto; margin-right: 0px;"
       | center= style="margin: auto;"
+
       | center= style="display: block; margin-left: auto; margin-right: auto; width: {{{width|400}}}px"
 
       | left= style="margin-right: auto; margin-left: 0px;"
 
       | left= style="margin-right: auto; margin-left: 0px;"
 
       | floatright= style="float:right; margin-left: 10px;"
 
       | floatright= style="float:right; margin-left: 10px;"
Line 8: Line 8:
 
     }}>
 
     }}>
 
     <img  
 
     <img  
           {{#if: {{{url}}} | src="{{{url}}}" | {{#if: {{{letter}}}| src="http://beta.kdyne.net/rygreg/STABLE/letterapp/letter.php?letter={{{letter}}}&locale={{{lang|en}}}"| Error: url and letter parameters cannot be both empty!}}}}
+
           {{#if: {{{url|}}} | src="{{{url}}}" | {{#if: {{{letter|}}}| src="http://beta.kdyne.net/rygreg/STABLE/letterapp/letter.php?letter={{{letter}}}&locale={{{lang|en|Error: Language undefined}}}"| Error: url and letter parameters cannot be both empty!}}}}
           alt="Letter App picture" {{#if: {{{width}}} | width="{{{width}}}"}}> </div>
+
           alt="Letter App picture" {{#if: {{{width}}} | width="{{{width}}}"}}> </div></includeonly><noinclude>
 
+
{{Trad
</includeonly><noinclude>
+
|DE = Template:LetterApp |DEs= 4
{{WIP}}{{Trad
 
|DE = Template:LetterApp |DEs= 5
 
 
|EN = Template:LetterApp |ENs= 0
 
|EN = Template:LetterApp |ENs= 0
|ES = Template:LetterApp |ESs= 5
+
|ES = Template:LetterApp |ESs= 4
|FR = Template:LetterApp |FRs= 5
+
|FR = Template:LetterApp |FRs= 4
|RU = Template:LetterApp |RUs= 5
+
|RU = Template:LetterApp |RUs= 4
 
|H  =  
 
|H  =  
 
|palette=  
 
|palette=  
Line 24: Line 22:
 
}}
 
}}
 
== Description ==
 
== Description ==
This template is designed ease the use of [[User:Moniq]]’s [[Letter App]] in EncyclopAtys.
+
This template is designed to ease the use of [[User:Moniq|Moniq]]’s ''[[Letter App]]'' in EncyclopAtys.
 +
 
 +
== Parameters ==
 +
{| class="wikitable"
 +
|-
 +
! Parameter !! Description
 +
|-
 +
| <code>url</code>|| The complete url of Letter App resulting image
 +
|-
 +
| <code>letter</code>|| The letter ID as it appears in the image url. It must be defined if url is empty or an error will occur.
 +
|-
 +
| <code>lang</code>|| the language of the message.  To be used when you dont use the version with url.
 +
|-
 +
| <code>align</code>|| Image alignment: it can be <code>left</code>, <code>right</code>, <code>floatleft</code>, <code>center</code> or <code>floatright</code>.
 +
|-
 +
| <code>width</code>|| Image size in px, redimensions the image to the specified value
 +
|}
 +
 
 
== Usage ==
 
== Usage ==
 
  <nowiki>{{LetterApp
 
  <nowiki>{{LetterApp
Line 38: Line 53:
  
 
==Examples==
 
==Examples==
 +
Either <code>url</code> or <code>letter</code> must be defined or the template will return an error message.
 +
=== With complete image url ===
 
  <nowiki>{{LetterApp
 
  <nowiki>{{LetterApp
  | url=
+
  | url=http://beta.kdyne.net/rygreg/STABLE/letterapp/letter.php?letter=548efb6b1630c14faa0ea5735d9fbb9b288ead01&locale=en
 
  | align=
 
  | align=
 
  | width=200}}</nowiki>
 
  | width=200}}</nowiki>
Line 46: Line 63:
 
  | align=
 
  | align=
 
  | width=200}}
 
  | width=200}}
<nowiki>{{LetterApp
+
 
 +
=== With Letter ID ===
 +
  <nowiki>{{LetterApp
 
  | letter=548efb6b1630c14faa0ea5735d9fbb9b288ead01
 
  | letter=548efb6b1630c14faa0ea5735d9fbb9b288ead01
 
  | lang=en
 
  | lang=en
 
  | align=floatright
 
  | align=floatright
  | width=300}}</nowiki>
+
  | width=250}}</nowiki>
 
{{LetterApp
 
{{LetterApp
 
  | letter=548efb6b1630c14faa0ea5735d9fbb9b288ead01
 
  | letter=548efb6b1630c14faa0ea5735d9fbb9b288ead01
 
  | lang=en
 
  | lang=en
 
  | align=floatright
 
  | align=floatright
  | width=300}}
+
  | width=250}}
Post haec Gallus Hierapolim profecturus ut expeditioni specie tenus adesset, Antiochensi plebi suppliciter obsecranti ut inediae dispelleret metum, quae per multas difficilisque causas adfore iam sperabatur, non ut mos est principibus, quorum diffusa potestas localibus subinde medetur aerumnis, disponi quicquam statuit vel ex provinciis alimenta transferri conterminis, sed consularem Syriae Theophilum prope adstantem ultima metuenti multitudini dedit id adsidue replicando quod invito rectore nullus egere poterit victu.
+
{{Clear}}<br />
 
+
<br />
Quod si rectum statuerimus vel concedere amicis, quidquid velint, vel impetrare ab iis, quidquid velimus, perfecta quidem sapientia si simus, nihil habeat res vitii; sed loquimur de iis amicis qui ante oculos sunt, quos vidimus aut de quibus memoriam accepimus, quos novit vita communis. Ex hoc numero nobis exempla sumenda sunt, et eorum quidem maxime qui ad sapientiam proxime accedunt.
+
[[Category:Formatting templates]]
 
+
[[de:Template:LetterApp]] [[en:Template:LetterApp]] [[es:Template:LetterApp]] [[fr:Template:LetterApp]] [[ru:Template:LetterApp]] {{Last version link|Template:LetterApp}}</noinclude>
Ut enim benefici liberalesque sumus, non ut exigamus gratiam (neque enim beneficium faeneramur sed natura propensi ad liberalitatem sumus), sic amicitiam non spe mercedis adducti sed quod omnis eius fructus in ipso amore inest, expetendam putamus.
 
 
 
<!-- <div style="float:right; margin-left: 10px;>
 
    <img
 
          src="http://beta.kdyne.net/rygreg/STABLE/letterapp/letter.php?letter=548efb6b1630c14faa0ea5735d9fbb9b288ead01&locale=en"
 
          alt="Letter App example" width="300"> </div> -->
 
</noinclude>
 

Latest revision as of 07:20, 10 November 2021

de:Template:LetterApp
en:Template:LetterApp
es:Template:LetterApp
fr:Template:LetterApp
ru:Template:LetterApp
 
UnderConstruction.png
Translation to review
Don't blame the contributors, but come and help them 😎

Reference text ( Maintained text, used as reference ) :
Notes: (Dorothée, 2021-11-10)

Description

This template is designed to ease the use of Moniq’s Letter App in EncyclopAtys.

Parameters

Parameter Description
url The complete url of Letter App resulting image
letter The letter ID as it appears in the image url. It must be defined if url is empty or an error will occur.
lang the language of the message. To be used when you dont use the version with url.
align Image alignment: it can be left, right, floatleft, center or floatright.
width Image size in px, redimensions the image to the specified value

Usage

{{LetterApp
 | letter=
 | lang=
 | align=
 | width=}}

OR:

{{LetterApp
 | url=
 | align=
 | width=}}

Examples

Either url or letter must be defined or the template will return an error message.

With complete image url

{{LetterApp
 | url=http://beta.kdyne.net/rygreg/STABLE/letterapp/letter.php?letter=548efb6b1630c14faa0ea5735d9fbb9b288ead01&locale=en
 | align=
 | width=200}}
Letter App picture

With Letter ID

 {{LetterApp
 | letter=548efb6b1630c14faa0ea5735d9fbb9b288ead01
 | lang=en
 | align=floatright
 | width=250}}
Letter App picture




Last version 2021-11-10•