Template:A: Difference between revisions
Appearance
add fallback when there's no URL |
show sense / simplify branches |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#if:{{{datetime|}}}| | <includeonly><onlyinclude><{{#if:{{{datetime|}}}|time datetime="{{{datetime|}}}"|span}} data-sense="{{{sense|}}}" {{#if:{{{lang|}}}|lang="{{{lang}}}"}}>{{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}} | {{{E|}}}{{{href|}}} = {{{1|}}} | {{{1|}}}{{{E|}}} = [{{{href|}}}] | {{{E|}}} = [{{{href|}}} {{{1|}}}] | {{{1|}}} = [[Ontology:{{{E|}}}|{{{E|}}}]] | #default = [[Ontology:{{{E|}}}|{{{1|}}}]] }}{{#if:{{{datetime|}}}|</time>|</span>}}</onlyinclude></includeonly><!-- | ||
more readable version: | more readable version: | ||
{{#if:{{{datetime|}}}| | <{{#if:{{{datetime|}}}|time datetime="{{{datetime|}}}"|span}} data-sense="{{{sense|}}}" {{#if:{{{lang|}}}|lang="{{{lang}}}"}}> | ||
{{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}} | {{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}} | ||
| | | {{{E|}}}{{{href|}}} = {{{1|}}} | ||
| {{{1|}}}{{{E|}}} = [{{{href|}}}] | | {{{1|}}}{{{E|}}} = [{{{href|}}}] | ||
| {{{E|}}} = [{{{href|}}} {{{1|}}}] | | {{{E|}}} = [{{{href|}}} {{{1|}}}] | ||
| {{{1|}}} = [[Ontology:{{{E|}}}]] | | {{{1|}}} = [[Ontology:{{{E|}}}|{{{E|}}}]] | ||
| #default = [[Ontology:{{{E|}}}|{{{1|}}}]] | | #default = [[Ontology:{{{E|}}}|{{{1|}}}]] | ||
}} | }} | ||
{{#if:{{{datetime|}}}|</time>}} | {{#if:{{{datetime|}}}|</time>|</span>}} | ||
--> | --> | ||
| Line 17: | Line 17: | ||
{{a|wikidata.org|href=https://www.wikidata.org}} | {{a|wikidata.org|href=https://www.wikidata.org}} | ||
{{a|lang=en|E=Molecular Marxism}} / {{a|lang=en|E=meta-Marxism (applied)|meta-Marxism}} | |||
== Description == | == Description == | ||
Latest revision as of 07:18, 7 May 2026
Demo
Molecular Marxism / meta-Marxism
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