Jump to content

Template:A: Difference between revisions

From LithoGraphica
Reversedragon (talk | contribs)
m spacing?
Reversedragon (talk | contribs)
m make wrapper tag optional
 
(13 intermediate revisions by the same user not shown)
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|}}}{{{title|}}}{{{sense|}}}{{{lang|}}}|<{{#if:{{{datetime|}}}| time datetime="{{{datetime|}}}" title="{{#if:{{{title|}}}|{{{title|}}}|{{{datetime|}}}}}" | span {{#if:{{{title|}}}|title="{{{title|}}}"}} }} data-sense="{{{sense|}}}" {{#if:{{{lang|}}}|lang="{{{lang}}}"}}>}}{{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}}| {{{href|}}}{{{E|}}}{{{EC|}}} = {{{1|}}} | {{{1|}}}{{{E|}}}{{{EC|}}} = [{{{href|}}}] | {{{E|}}}{{{EC|}}} = [{{{href|}}} {{{1|}}}] | {{{1|}}}{{{EC|}}} = [[Ontology:{{{E|}}}|{{{E|}}}]] | {{{E|}}} = [[Ontology talk:{{{EC|}}}|{{{1|}}}]] | #default = [[Ontology:{{{E|}}}|{{{1|}}}]] }}{{#if:{{{datetime|}}}{{{title|}}}{{{sense|}}}{{{lang|}}}|{{#if:{{{datetime|}}}|</time>|</span>}}}}</onlyinclude></includeonly><!--


easier to read version:
more readable version:
 
{{#if:{{{datetime|}}}|<time datetime="{{{datetime|}}}">}}
  {{#if:{{{1|}}} | [{{{href|}}} {{{1|}}}] | [{{{href|}}}] }}
{{#if:{{{datetime|}}}|</time>}}


{{#if:{{{datetime|}}}{{{title|}}}{{{sense|}}}{{{lang|}}}|
<{{#if:{{{datetime|}}}| time datetime="{{{datetime|}}}" title="{{#if:{{{title|}}}|{{{title|}}}|{{{datetime|}}}}}" | span {{#if:{{{title|}}}|title="{{{title|}}}"}} }} data-sense="{{{sense|}}}" {{#if:{{{lang|}}}|lang="{{{lang}}}"}}> }}
  {{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}}
    | {{{href|}}}{{{E|}}}{{{EC|}}} = {{{1|}}}
    | {{{1|}}}{{{E|}}}{{{EC|}}} = [{{{href|}}}]
    | {{{E|}}}{{{EC|}}} = [{{{href|}}} {{{1|}}}]
    | {{{1|}}}{{{EC|}}} = [[Ontology:{{{E|}}}|{{{E|}}}]]
    | {{{E|}}} = [[Ontology talk:{{{EC|}}}|{{{1|}}}]]
    | #default = [[Ontology:{{{E|}}}|{{{1|}}}]]
  }}
{{#if:{{{datetime|}}}{{{title|}}}{{{sense|}}}{{{lang|}}}| {{#if:{{{datetime|}}}|</time>|</span>}} }}
-->
-->
== Demo ==
== Demo ==
{{a|EC=9k/RD/Q7617-CH|{{QSense/guts|76|17|||S=CH}}}}


{{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 ==
Line 17: Line 28:


== Parameters ==
== Parameters ==
 
* <code>1</code>       - link text (optional)
* <code>1</code>   - link text (optional)
* <code>E</code>        - Ontology entry to link to
* <code>href</code> - link URL
* <code>EC</code>      - Ontology talk entry to link to
* <code>href</code>     - external URL to link to
* <code>datetime</code> - date associated with page linked to; publication date, inception date, whatever date is most important.




[[Category:Templates for markup]]  {{ArticleTitle|h1=Template:a|NoContents=y}}
[[Category:Templates for markup]]  {{ArticleTitle|h1=Template:a|NoContents=y}}

Latest revision as of 14:04, 15 October 2026

Demo

Q76,17-CH "Q76-17 CH"

wikidata.org

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)
  • E - Ontology entry to link to
  • EC - Ontology talk entry to link to
  • href - external URL to link to
  • datetime - date associated with page linked to; publication date, inception date, whatever date is most important.