OP
@jess avatar
UTC

Petty Tyrant
0:7 And counting
Joined: UTC
Posts: 36435
Location: Bay Area, California
 
Petty Tyrant
@jess avatar
0:7 And counting
Joined: UTC
Posts: 36435
Location: Bay Area, California
UTC quote
I was getting tired of setting and resetting all the headline levels in the various articles, so I took some time to implement nestable sections to do the bulk of the work.

The BBCode for a section would look like this:
[section="My Super Duper Headline"]
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum consequat molestie augue. Mauris facilisis. Ut libero mauris, eleifend lobortis, gravida ut, convallis a, justo. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus diam nisi, hendrerit vitae, rhoncus ac, tempor quis, enim. Nam eget sem non nibh elementum volutpat. Nam auctor tellus.
[/section]
Which looks like this:
My Super Duper Headline
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum consequat molestie augue. Mauris facilisis. Ut libero mauris, eleifend lobortis, gravida ut, convallis a, justo. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus diam nisi, hendrerit vitae, rhoncus ac, tempor quis, enim. Nam eget sem non nibh elementum volutpat. Nam auctor tellus.
But wait! There's more!

We can nest sections, like so:
[section="My Super Duper Headline"]
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum consequat molestie augue. Mauris facilisis. Ut libero mauris, eleifend lobortis, gravida ut, convallis a, justo. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus diam nisi, hendrerit vitae, rhoncus ac, tempor quis, enim. Nam eget sem non nibh elementum volutpat. Nam auctor tellus.

[section="My Mediocre Headline"]
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum consequat molestie augue. Mauris facilisis. Ut libero mauris, eleifend lobortis, gravida ut, convallis a, justo. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus diam nisi, hendrerit vitae, rhoncus ac, tempor quis, enim. Nam eget sem non nibh elementum volutpat. Nam auctor tellus.
[/section]
[section="My Half-Rate Headline"]
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum consequat molestie augue. Mauris facilisis. Ut libero mauris, eleifend lobortis, gravida ut, convallis a, justo. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus diam nisi, hendrerit vitae, rhoncus ac, tempor quis, enim. Nam eget sem non nibh elementum volutpat. Nam auctor tellus.
[/section][/section]
Which looks like this:
My Super Duper Headline
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum consequat molestie augue. Mauris facilisis. Ut libero mauris, eleifend lobortis, gravida ut, convallis a, justo. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus diam nisi, hendrerit vitae, rhoncus ac, tempor quis, enim. Nam eget sem non nibh elementum volutpat. Nam auctor tellus.
My Mediocre Headline
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum consequat molestie augue. Mauris facilisis. Ut libero mauris, eleifend lobortis, gravida ut, convallis a, justo. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus diam nisi, hendrerit vitae, rhoncus ac, tempor quis, enim. Nam eget sem non nibh elementum volutpat. Nam auctor tellus.
My Half-Rate Headline
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum consequat molestie augue. Mauris facilisis. Ut libero mauris, eleifend lobortis, gravida ut, convallis a, justo. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus diam nisi, hendrerit vitae, rhoncus ac, tempor quis, enim. Nam eget sem non nibh elementum volutpat. Nam auctor tellus.
The headline size is taken care of automatically, and it will keep getting smaller the more times you nest. There's an upper limit on nesting, but the only thing that happens when you reach that level is that the headlines stop getting any smaller.

I encourage the use of this for any block of text that needs a heading. This will be the mechanism by which we have linkable anchors embedded in the text as well (when I get that working).
@benito avatar
UTC

Moderator
2010 Dragon Red GTS 300 Super, 2018 Grigio Titanio Piaggio Liberty S 150
Joined: UTC
Posts: 16296
Location: Toronto, Canada, Fort Lauderdale, Florida
 
Moderator
@benito avatar
2010 Dragon Red GTS 300 Super, 2018 Grigio Titanio Piaggio Liberty S 150
Joined: UTC
Posts: 16296
Location: Toronto, Canada, Fort Lauderdale, Florida
UTC quote
Nice, that looks great and makes it much easier to read and see the sections. 8)
DoubleGood Design banner

Modern Vespa is the premier site for modern Vespa and Piaggio scooters. Vespa GTS300, GTS250, GTV, GT200, LX150, LXS, ET4, ET2, MP3, Fuoco, Elettrica and more.

Buy Me A Coffee
 

Shop on Amazon with Modern Vespa

Modern Vespa is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com


All Content Copyright 2005-2024 by Modern Vespa.
All Rights Reserved.


[ Time: 0.0322s ][ Queries: 3 (0.0080s) ][ Debug on ][ 309 ][ Thing One ]