Jump to content

Template:A: Difference between revisions

From Philosophical Research
m href
allow linking Ontology page
Line 1: Line 1:
<includeonly><onlyinclude>{{#if:{{{datetime|}}}|<time datetime="{{{datetime|}}}">}}{{#if:{{{1|}}}|[{{{href}}} {{{1|}}}]|[{{{href}}}]}}{{#if:{{{datetime|}}}|</time>}}</onlyinclude></includeonly><!--
<includeonly><onlyinclude>{{#if:{{{datetime|}}}|<time datetime="{{{datetime|}}}">}}{{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}} | {{{1|}}}{{{E|}}} = [{{{href|}}}] | {{{E|}}} = [{{{href|}}} {{{1|}}}] | {{{1|}}} = [[Ontology:{{{E|}}}]] | #default = [[Ontology:{{{E|}}}|{{{1|}}}]] }}{{#if:{{{datetime|}}}|</time>}}</onlyinclude></includeonly><!--


easier to read version:
more readable version:


{{#if:{{{datetime|}}}|<time datetime="{{{datetime|}}}">}}
{{#if:{{{datetime|}}}|<time datetime="{{{datetime|}}}">}}
   {{#if:{{{1|}}} | [{{{href|}}} {{{1|}}}] | [{{{href|}}}] }}
   {{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}}
    | {{{1|}}}{{{E|}}} = [{{{href|}}}]
    | {{{E|}}} = [{{{href|}}} {{{1|}}}]
    | {{{1|}}} = [[Ontology:{{{E|}}}]]
    | #default = [[Ontology:{{{E|}}}|{{{1|}}}]]
  }}
{{#if:{{{datetime|}}}|</time>}}
{{#if:{{{datetime|}}}|</time>}}



Revision as of 03:05, 7 February 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