Jump to content

Template:Cite: Difference between revisions

From Philosophical Research
m Reversedragon moved page Template:Book to Template:Cite: Abbreviating long subpage to shorter path: I keep typoing book as cite tag anyway
m move finer logic to Template:TTS
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><onlyinclude>{{#switch:{{{ParameterWhichShouldAlwaysBeEmpty|}}}
<includeonly><onlyinclude>{{TTS|tts={{{tts|}}}|E={{{E|}}}|href={{{href|}}}|html=cite|{{{1|}}}}}</onlyinclude></includeonly><!--
| {{{tts|}}}{{{E|}}}{{{href|}}} = <cite>{{{1}}}</cite>
| {{{tts|}}} = <cite>[[Ontology:{{{E}}}|{{{1}}}]]</cite>
| #default = {{TTS|tts={{{tts}}}|E={{{E|}}}|href={{{href|}}}html=cite}}
 
}}</onlyinclude></includeonly><!--
-->
-->
== Demo ==
== Demo ==
Line 14: Line 9:
== Description ==
== Description ==


This is a template for referring to book titles in HTML5, using the <code>cite</code> tag and optionally the book's Ontology page. It is meant to leave "fewer things to remember" for new users who may be novices to HTML5 but just got done learning wikitext.
This is a template for referring to book titles in HTML5, using the <code>cite</code> 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 <code>cite</code> tag to semantically specify what medium the work is. This template can be called as either <code>cite</code>, <code>book</code>, <code>film</code>, or <code>game</code>, and it will be the same template.




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

Latest revision as of 21:18, 26 September 2025

Demo[edit]

Dragonsdawn

The Excessive Subject

Description[edit]

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.