Latest Posts

Topic: Options for images in wiki

kaputtnik
Avatar
Topic Opener
Joined: 2013-02-18, 20:48
Posts: 2434
OS: Archlinux
Version: current master
Ranking
One Elder of Players
Location: Germany
Posted at: 2016-01-13, 13:05

There is a bug report to have more options for images in the wiki.

I have implemented alignment for now:

image_alignment.jpg

The "code to include" is also changed to reflect the possibilities:

image_code.jpg

Is also shrinking of images (width="50%") needed?


Fight simulator for Widelands:
https://wide-fighter.netlify.app/

Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2016-01-13, 14:16

I haven't done that much work on the Wiki, so I don't know if 50% is needed - it would be better to scale the image itself down anyway IMO.

Can the code be made a bit simpler without too much effort? I mean :left instead of : .left etc.


Busy indexing nil values

Top Quote
kaputtnik
Avatar
Topic Opener
Joined: 2013-02-18, 20:48
Posts: 2434
OS: Archlinux
Version: current master
Ranking
One Elder of Players
Location: Germany
Posted at: 2016-01-13, 20:37

GunChleoc wrote:

Can the code be made a bit simpler without too much effort? I mean :left instead of : .left etc.

The shown code is just for copy and paste. So no one has to write the options by hand.

The used syntax is taken from a markdown extension. If we want other syntax, we have to write an extension by our self.


Fight simulator for Widelands:
https://wide-fighter.netlify.app/

Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2016-01-16, 16:15

OK, let's leave the code as it is then face-smile.png


Busy indexing nil values

Top Quote