Template:Infobox plang: Difference between revisions

From XionKB
Jump to navigationJump to search
m (don't render image and caption if image field is empty)
m (change table width to 300px)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude><div style="display:none"></noinclude>
{| align="right" class="roundy" width="{{{width|300px}}}" style="border-bottom-left-radius:0;border-bottom-right-radius:0;border:2px solid rgba(48,48,48,0.75);background-color:rgba(240,240,240,0.75);border-bottom:none"
{| class="wikitable" align="right" width="{{{width|315px}}}"
|-
|-
! colspan="12" width="100%" | <big>{{{name}}}</big>{{#if:{{{image|}}} |<span></span>
! colspan="12" width="100%" style="text-align:center;background-color:rgba(184,184,184,0.75);border-radius:2px 2px 0 0" | <big>{{{name}}}</big>{{#if:{{{image|}}} |<span></span>
{{!}}-
{{!}}-
{{!}} colspan="12" width="100%" {{!}} [[File:{{{image}}}|{{{image_size|300px}}}]]{{#if:{{{caption|}}} |<span></span>
{{!}} colspan="12" width="100%" style="text-align:center;padding:0" {{!}} [[File:{{{image}}}|{{{image_size|300px}}}]]{{#if:{{{caption|}}} |<span></span>
{{!}}-
{{!}}-
{{!}} colspan="12" width="100%" style="text-align:center" {{!}} {{{caption}}}
{{!}} colspan="12" width="100%" style="text-align:center" {{!}} {{{caption}}}
|}}|}}{{#if:{{{paradigm|}}}|<span></span>
|}}|}}{{#if:{{{paradigm|}}}|<span></span>
{{!}}-
{{!}}-
! colspan="3" width="25%" valign="top" style="text-align:left" {{!}} Paradigm
! colspan="3" width="33.334%" valign="top" style="background-color:rgba(184,184,184,0.75);border-radius:4px 0 0 4px;padding:4px;text-align:left" {{!}} Paradigm
{{!}} colspan="9" width="75%" valign="top" {{!}} {{{paradigm}}}
{{!}} colspan="9" width="66.666%" valign="top" style="background-color:rgba(224,224,224,0.75);border-radius:0 4px 4px 0;padding:4px" {{!}} {{{paradigm}}}
|}}{{#if:{{{by|}}}|<span></span>
|}}{{#if:{{{by|}}}|<span></span>
{{!}}-
{{!}}-
! colspan="3" width="25%" valign="top" style="text-align:left" {{!}} Designed by
! colspan="3" width="33.334%" valign="top" style="background-color:rgba(184,184,184,0.75);border-radius:4px 0 0 4px;padding:4px;text-align:left" {{!}} Designed by
{{!}} colspan="9" width="75%" valign="top" {{!}} {{{by}}}
{{!}} colspan="9" width="66.666%" valign="top" style="background-color:rgba(224,224,224,0.75);border-radius:0 4px 4px 0;padding:4px" {{!}} {{{by}}}
|}}{{#if:{{{appeared|}}}|<span></span>
|}}{{#if:{{{appeared|}}}|<span></span>
{{!}}-
{{!}}-
! colspan="3" width="25%" valign="top" style="text-align:left" {{!}} First appeared
! colspan="3" width="33.334%" valign="top" style="background-color:rgba(184,184,184,0.75);border-radius:4px 0 0 4px;padding:4px;text-align:left" {{!}} First appeared
{{!}} colspan="9" width="75%" valign="top" {{!}} {{{appeared}}}
{{!}} colspan="9" width="66.666%" valign="top" style="background-color:rgba(224,224,224,0.75);border-radius:0 4px 4px 0;padding:4px" {{!}} {{{appeared}}}
|}}{{#if:{{{typing|}}}|<span></span>
|}}{{#if:{{{typing|}}}|<span></span>
{{!}}-
{{!}}-
! colspan="3" width="25%" valign="top" style="text-align:left" {{!}} Typing discipline
! colspan="3" width="33.334%" valign="top" style="background-color:rgba(184,184,184,0.75);border-radius:4px 0 0 4px;padding:4px;text-align:left" {{!}} Typing discipline
{{!}} colspan="9" width="75%" valign="top" {{!}} {{{typing}}}
{{!}} colspan="9" width="75%" valign="top" style="background-color:rgba(224,224,224,0.75);border-radius:0 4px 4px 0;padding:4px" {{!}} {{{typing}}}
|}}{{#if:{{{exts|}}}|<span></span>
|}}{{#if:{{{exts|}}}|<span></span>
{{!}}-
{{!}}-
! colspan="3" width="25%" valign="top" style="text-align:left" {{!}} Filename extensions
! colspan="3" width="33.334%" valign="top" style="background-color:rgba(184,184,184,0.75);border-radius:4px 0 0 4px;padding:4px;text-align:left" {{!}} Filename extensions
{{!}} colspan="9" width="75%" valign="top" {{!}} {{{exts}}}
{{!}} colspan="9" width="66.666%" valign="top" style="background-color:rgba(224,224,224,0.75);border-radius:0 4px 4px 0;padding:4px" {{!}} {{{exts}}}
|}}{{#if:{{{influencedby|}}}|<span></span>
|}}{{#if:{{{influencedby|}}}|<span></span>
{{!}}-
{{!}}-
! colspan="12" width="10%" valign="top" style="text-align:center" {{!}} Influenced by
! colspan="12" width="100%" valign="top" style="background-color:rgba(184,184,184,0.75);border-radius:4px 4px 0 0;padding:4px" {{!}} Influenced by
{{!}}-
{{!}}-
{{!}} colspan="12" width="100%" valign="top" style="text-align:center" {{!}} {{{influencedby}}}
{{!}} colspan="12" width="100%" valign="top" style="background-color:rgba(224,224,224,0.75);border-radius:0 0 4px 4px;padding:4px;text-align:center" {{!}} {{{influencedby}}}
|}}{{#if:{{{influenced|}}}|<span></span>
|}}{{#if:{{{influenced|}}}|<span></span>
{{!}}-
{{!}}-
! colspan="12" width="10%" valign="top" style="text-align:center" {{!}} Influenced
! colspan="12" width="100%" valign="top" style="background-color:rgba(184,184,184,0.75);border-radius:4px 4px 0 0;padding:4px" {{!}} Influenced
{{!}}-
{{!}}-
{{!}} colspan="12" width="10%" valign="top" style="text-align:center" {{!}} {{{influenced}}}
{{!}} colspan="12" width="100%" valign="top" style="background-color:rgba(224,224,224,0.75);border-radius:0 0 4px 4px;padding:4px;text-align:center" {{!}} {{{influenced}}}
|}}{{#if:{{{notes|}}}|<span></span>
|}}{{#if:{{{notes|}}}|<span></span>
{{!}}-
{{!}}-
! colspan="12" width="100%" {{!}} Notes
! colspan="12" width="100%" style="background-color:rgba(184,184,184,0.75);border-radius:4px 4px 0 0;padding:4px" {{!}} Notes
{{!}}-
{{!}}-
{{!}} colspan="12" width="100%" {{!}} {{{notes}}}
{{!}} colspan="12" width="100%" style="background-color:rgba(224,224,224,0.75);border-radius:0 0 4px 4px;padding:4px;text-align:center" {{!}} {{{notes}}}
|}}
|}}
|}
|}
<noinclude></div>
<noinclude>
==Usage==
==Usage==
'''Note:''' When using parameters, avoid the ambiguous abbreviation "N/A", and instead use "unknown" or "none".
'''Note:''' When using parameters, avoid the ambiguous abbreviation "N/A", and instead use "unknown" or "none".
Line 55: Line 54:
* <code>caption</code> <sup>(optional)</sup> – a subtitle to caption to image
* <code>caption</code> <sup>(optional)</sup> – a subtitle to caption to image
* <code>paradigm</code> <sup>(optional)</sup> – programming paradigms in use
* <code>paradigm</code> <sup>(optional)</sup> – programming paradigms in use
* <code>designer</code> <sup>(optional)</sup> – name of the designer (person)
* <code>by</code> <sup>(optional)</sup> – name of the creator (person)
* <code>appeared</code> <sup>(optional)</sup> – date first appeared
* <code>appeared</code> <sup>(optional)</sup> – date first appeared
* <code>typing</code> <sup>(optional)</sup> – typing discipline(s)
* <code>typing</code> <sup>(optional)</sup> – typing discipline(s)

Latest revision as of 04:53, 20 June 2024

{{{name}}}

Usage

Note: When using parameters, avoid the ambiguous abbreviation "N/A", and instead use "unknown" or "none".

Parameters

  • name – the name of the language
  • width (optional) – override the box width (defaults to 315px for 2-sided conflicts and 380px for 3-sided conflicts)
  • image (optional) – an image file to display summarising the conflict
  • image_size (optional) – override the image size
  • caption (optional) – a subtitle to caption to image
  • paradigm (optional) – programming paradigms in use
  • by (optional) – name of the creator (person)
  • appeared (optional) – date first appeared
  • typing (optional) – typing discipline(s)
  • exts (optional) – filename extensions
  • influencedby (optional) – languages that influenced its design
  • influenced (optional) – languages whose design was influenced by it
  • notes (optional) – additional notes