Jump to content

Template:Cite: Difference between revisions

From LithoGraphica
Reversedragon (talk | contribs)
m lang parameter
Reversedragon (talk | contribs)
m try to use plain html tag
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><onlyinclude>{{TTS|lang={{{lang|}}}|tts={{{tts|}}}|E={{{E|}}}|href={{{href|}}}|html=cite|{{{1|}}}}}</onlyinclude></includeonly><!--
<includeonly><onlyinclude>{{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}} | {{{tts|}}}{{{href|}}} = <cite {{#if:{{{lang|}}}|lang="{{{lang|}}}"}} data-entity="{{{E|}}}">{{#if:{{{E|}}}|[[E:{{{E|}}}|{{{1|}}}]]|{{{1|}}}}}</cite> | {{TTS|lang={{{lang|}}}|tts={{{tts|}}}|E={{{E|}}}|href={{{href|}}}|html=cite|{{{1|}}}}} }}</onlyinclude></includeonly><!--
 
more readable version:
{{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}}
| {{{tts|}}}{{{href|}}} = <cite {{#if:{{{lang|}}}|lang="{{{lang|}}}"}} data-entity="{{{E|}}}">{{#if:{{{E|}}}|[[E:{{{E|}}}|{{{1|}}}]]|{{{1|}}}}}</cite>
| {{TTS|lang={{{lang|}}}|tts={{{tts|}}}|E={{{E|}}}|href={{{href|}}}|html=cite|{{{1|}}}}} }}
-->
-->
== Demo ==
== Demo ==
Line 6: Line 11:


{{book|The Excessive Subject|E=Q1980}}
{{book|The Excessive Subject|E=Q1980}}
=== Number list ===
{{HueCSS}}<ol class="hue clean">
{{li|I=Z1/Fy|Q=76,17|Q2=7617}}{{game|Deltarune|E=Q7617}}
</li></ol>


== Description ==
== Description ==
Line 17: Line 29:




[[Category:Templates for markup]]
[[Category:Templates for markup]] <!--
<!-- redirects:  [[Template:cite]] [[Template:book]] [[Template:film]] [[Template:game]] -->
redirects or titles:  [[Template:cite]] [[Template:book]] [[Template:film]] [[Template:game]] -->

Latest revision as of 08:18, 13 August 2026

Demo

Dragonsdawn

The Excessive Subject

Number list

  1. Deltarune

Description

This is a template for referring to book titles in HTML5, using the cite tag and optionally the book's Ontology page.

It has two slightly contradictory goals:

  • To leave "fewer things to remember" for new users who may be novices to HTML5 but just got done learning wikitext.
  • To make long lists of miscellaneous works more intuitive by allowing the cite tag to semantically specify what medium the work is. This template can be called as either cite, book, film, or game, and it will be the same template.