Jump to content

Template:A: Difference between revisions

From LithoGraphica
Reversedragon (talk | contribs)
title parameter
Reversedragon (talk | contribs)
m allow Ontology talk links
Line 1: Line 1:
<includeonly><onlyinclude><{{#if:{{{datetime|}}}|time datetime="{{{datetime|}}}" title="{{#if:{{{title|}}}|{{{title|}}}|{{{datetime|}}}}}"|span {{#if:{{{title|}}}|title="{{{title|}}}"}}}} 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><!--
<includeonly><onlyinclude><{{#if:{{{datetime|}}}|time datetime="{{{datetime|}}}" title="{{#if:{{{title|}}}|{{{title|}}}|{{{datetime|}}}}}"|span {{#if:{{{title|}}}|title="{{{title|}}}"}}}} data-sense="{{{sense|}}}" {{#if:{{{lang|}}}|lang="{{{lang}}}"}}>{{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}} | {{{E|}}}{{{EC|}}}{{{href|}}} = {{{1|}}} | {{{1|}}}{{{E|}}}{{{EC|}}} = [{{{href|}}}] | {{{E|}}}{{{EC|}}} = [{{{href|}}} {{{1|}}}] | {{{1|}}} = [[Ontology:{{{E|}}}{{{EC|}}}|{{{E|}}}{{{EC|}}}]] | #default = [[Ontology:{{{E|}}}{{{EC|}}}|{{{1|}}}]] }}{{#if:{{{datetime|}}}|</time>|</span>}}</onlyinclude></includeonly><!--


more readable version:
more readable version:
Line 5: Line 5:
<{{#if:{{{datetime|}}}| time datetime="{{{datetime|}}}" title="{{#if:{{{title|}}}|{{{title|}}}|{{{datetime|}}}}}" | span {{#if:{{{title|}}}|title="{{{title|}}}"}} }} data-sense="{{{sense|}}}" {{#if:{{{lang|}}}|lang="{{{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|}}}
   {{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}}
     | {{{E|}}}{{{href|}}} = {{{1|}}}
     | {{{E|}}}{{{EC|}}}{{{href|}}} = {{{1|}}}
     | {{{1|}}}{{{E|}}} = [{{{href|}}}]
     | {{{1|}}}{{{E|}}}{{{EC|}}} = [{{{href|}}}]
     | {{{E|}}} = [{{{href|}}} {{{1|}}}]
     | {{{E|}}}{{{EC|}}} = [{{{href|}}} {{{1|}}}]
     | {{{1|}}} = [[Ontology:{{{E|}}}|{{{E|}}}]]
     | {{{1|}}} = [[Ontology:{{{E|}}}{{{EC|}}}|{{{E|}}}{{{EC|}}}]]
     | #default = [[Ontology:{{{E|}}}|{{{1|}}}]]
     | #default = [[Ontology:{{{E|}}}{{{EC|}}}|{{{1|}}}]]
   }}
   }}
{{#if:{{{datetime|}}}|</time>|</span>}}
{{#if:{{{datetime|}}}|</time>|</span>}}
Line 27: Line 27:
* <code>1</code>        - link text (optional)
* <code>1</code>        - link text (optional)
* <code>E</code>        - Ontology entry to link to
* <code>E</code>        - Ontology entry to link to
* <code>EC</code>      - Ontology talk entry to link to
* <code>href</code>    - external URL 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.
* <code>datetime</code> - date associated with page linked to; publication date, inception date, whatever date is most important.

Revision as of 12:48, 15 October 2026

Demo

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.