Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
[textile] cite attribute
We seem to have the following attributes to work with:
- (class)
- (#id)
- {style}
- [language]
But for people using a fair amount of q
and blockquote
, the cite=""
attribute is relatively important too.
Borrowing from the parenthetical pattern, couldn’t we create one for cite attributes like [#cite]
.
Then instead of having to use <blockquote cite="url">
, it could simply be bq[#cite].
or bq[#cite]..
.
I.e., bq[http://textpattern.com]. First sentence...
would produce…
<blockquote cite="http://textpattern.com">
<p>First sentence...</p>
</blockquote>
Etc.
On a related note, p
elements are not required inside blockquotes
in HTML5, as noted in third example here. Theoretically asking, would it be possible to not automatically include p
elements in blockquotes, specifically? This isn’t a big deal, but I’m just curious. Granted, this favors HTML5, then, over XHTML, but that’s where things are going anyway so it would reasonably be the default, I would think.
Ed. — Never mind, while that might be true, we would need p
elements for bq..
so I think it’s fine as is for default.
Last edited by Destry (2012-02-13 14:29:17)
Offline
Re: [textile] cite attribute
Destry wrote:
couldn’t we create one for cite attributes like
[#cite]
.
That syntax has been taken for automatic creation of numbered notelists, similar to Wikipedia’s ‘References’ section (a feature you requested, iirc).
I don’t know about the extended blockquote/cite syntax you specified. That might be a nice addition unless someone can find a neat way to do it already.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: [textile] cite attribute
What about…
- {#cite}
- /cite/
- |cite|
- \cite\
- ‘cite’
- =cite=
- §cite§ (actually a key on the azerty board)
- $cite$
I’d be happy with any of those, but 'cite'
would probably be the nicest looking…
bq'http://textpattern.com'. First para...
Offline
Re: [textile] cite attribute
RTFM ;)
Offline
Re: [textile] cite attribute
Nice.
So we seriously need an up-do-date and consumer-friendly reference, then.
I’ve got the 2 cents on that notion, wet, so hang-tight for TXP issue 1.
Offline
Re: [textile] cite attribute
wet wrote:
RTFM
Holy smokes. Never spotted that lurking in there. Terrific.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: [textile] cite attribute
Offline
Re: [textile] cite attribute
Sorry to sound negative, but I still don’t know why they bother with that attribute on <blockquote>
and <q>
tags. It’s not like it provides a clickable link or anything, so unless you’re scouring the source code it’s invisible to the end user.
Last edited by philwareham (2012-02-13 19:27:51)
Offline
Re: [textile] cite attribute
Unless you’re a blind end user. It’s a machine-readable attribute, and has value for:
- screenreaders (thus accessibility)
- search engine indexing
- retrieval via DOM Scripting
Offline
Re: [textile] cite attribute
for q
situations:
[The browser agent] … should be able to jump to the [cited source] from the [formatted q output].
and for blockquote
situation:
The browser should, somehow, allow you to [follow the cited URL]. The simplest way on graphical browsers would be to provide a context-sensitive menu option (in english: right clicking on the blockquote should allow you to jump to the cited document).
So, maybe in the future it will be more than just for people using screen readers.
Offline
Re: [textile] cite attribute
OK, I’ve done some investigating and JAWS can read/recite the URL. Never considered that.
Offline
Pages: 1