Jump to content

Template:A: Difference between revisions

From LithoGraphica
Reversedragon (talk | contribs)
language parameter
Reversedragon (talk | contribs)
m use E as title if it was specified / give this template its own "pipe trick"
 
Line 1: Line 1:
<includeonly><onlyinclude>{{#if:{{{datetime|}}}|<time datetime="{{{datetime|}}}">}}{{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}} | {{{1|}}}{{{E|}}}{{{href|}}} = {{{1|}}} | {{{1|}}}{{{E|}}} = [{{{href|}}}] | {{{E|}}}{{{lang|}}} = [{{{href|}}} {{{1|}}}] | {{{E|}}} = <span lang="{{{lang}}}">[{{{href|}}} {{{1|}}}]</span> | {{{1|}}} = [[Ontology:{{{E|}}}]] | {{{lang|}}} = <span lang="{{{lang}}}">[[Ontology:{{{E|}}}|{{{1|}}}]]</span> | #default = [[Ontology:{{{E|}}}|{{{1|}}}]] }}{{#if:{{{datetime|}}}|</time>}}</onlyinclude></includeonly><!--
<includeonly><onlyinclude>{{#if:{{{datetime|}}}|<time datetime="{{{datetime|}}}">}}{{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}} | {{{1|}}}{{{E|}}}{{{href|}}} = {{{1|}}} | {{{1|}}}{{{E|}}} = [{{{href|}}}] | {{{E|}}} = {{#if:{{{lang|}}}| <span lang="{{{lang}}}">[{{{href|}}} {{{1|}}}]</span> | [{{{href|}}} {{{1|}}}] }} | {{{1|}}} = [[Ontology:{{{E|}}}|{{{E|}}}]] | #default = {{#if:{{{lang|}}}| <span lang="{{{lang}}}">[[Ontology:{{{E|}}}|{{{1|}}}]]</span> | [[Ontology:{{{E|}}}|{{{1|}}}]] }} }}{{#if:{{{datetime|}}}|</time>}}</onlyinclude></includeonly><!--


more readable version:
more readable version:
Line 7: Line 7:
     | {{{1|}}}{{{E|}}}{{{href|}}} = {{{1|}}}
     | {{{1|}}}{{{E|}}}{{{href|}}} = {{{1|}}}
     | {{{1|}}}{{{E|}}} = [{{{href|}}}]
     | {{{1|}}}{{{E|}}} = [{{{href|}}}]
     | {{{E|}}}{{{lang|}}} = [{{{href|}}} {{{1|}}}]
     | {{{E|}}} = {{#if:{{{lang|}}}| <span lang="{{{lang}}}">[{{{href|}}} {{{1|}}}]</span> | [{{{href|}}} {{{1|}}}] }}
    | {{{E|}}} = <span lang="{{{lang}}}">[{{{href|}}} {{{1|}}}]</span>
     | {{{1|}}} = [[Ontology:{{{E|}}}|{{{E|}}}]]
     | {{{1|}}} = [[Ontology:{{{E|}}}]]
     | #default = {{#if:{{{lang|}}}| <span lang="{{{lang}}}">[[Ontology:{{{E|}}}|{{{1|}}}]]</span> | [[Ontology:{{{E|}}}|{{{1|}}}]] }}
     | {{{lang|}}} = <span lang="{{{lang}}}">[[Ontology:{{{E|}}}|{{{1|}}}]]</span>
    | #default = [[Ontology:{{{E|}}}|{{{1|}}}]]
   }}
   }}
{{#if:{{{datetime|}}}|</time>}}
{{#if:{{{datetime|}}}|</time>}}

Latest revision as of 03:25, 24 March 2026

Demo

wikidata.org

Description

This is a template for making external links with the parameters in any order. It does not call Template:TTS, although it can be used to improve accessibility by making a page's source text more readable.

Parameters

  • 1 - link text (optional)
  • href - link URL