"Last Changes" - Double Panel

By gwplgwpl

Description

This panel let you check both :

  • last page changes
  • last forum post

At one time !

Code

[[div style="float:left; border: gray 1px solid; width: 56%"]]
Last changes on : **forum**

[[module RecentPosts]]
[[/div]]

[[div style="float:left; border: gray 1px solid; width: 41%"]]
Last changes on : **Pages**

[[module SiteChanges]]
[[/div]]

In action

Ostatnie zmiany na : forum

From categories:
page 1123...next »

The easiest way to center an element is to set its margin to 0 auto as shown in the 2 examples below.
You can use a centered div block around the table if you want associated text centered with the table:

This is a Centered Div Block
It includes text outside of the table that is centered with the table.

example cell

Lorem ipsum dolor sit amet…

Lorem ipsum dolor sit amet…
[[div style="text-align: center;"]]
**This is a Centered Div Block**
It includes text outside of the table that is centered witt the table.
[[table style="width: 50%; margin:0 auto;"]]
[[row]]
[[cell style="padding: 10px; background-color: #DDDDEE; border: 1px solid silver; width: 50%;"]]
+++ example cell
Lorem ipsum dolor sit amet...
[[/cell]]
[[cell style="padding: 10px; background-color: #DDEEDD; border: 1px solid silver"]]
Lorem ipsum dolor sit amet...
[[/cell]]
[[/row]]
[[/table]]
[[/div]]

This is a Centered Table
Only the table is centered and the content outside of the table is not affected by the centering.

example cell

Lorem ipsum dolor sit amet…

Lorem ipsum dolor sit amet…
**This is a Centered Table**
Only the table is centered and the content outside of the table is not affected by the centering.
[[table style="width: 50%; margin: 0 auto;"]]
[[row]]
[[cell style="padding: 10px; background-color: #DDDDEE; border: 1px solid silver; width: 50%;"]]
+++ example cell
Lorem ipsum dolor sit amet...
[[/cell]]
[[cell style="padding: 10px; background-color: #DDEEDD; border: 1px solid silver"]]
Lorem ipsum dolor sit amet...
[[/cell]]
[[/row]]
[[/table]]
Thanks
MelphyxMelphyx 14 Aug 2019 05:06
in discussion Hidden / Per page discussions » Layout With Tables

thanks

Thanks by MelphyxMelphyx, 14 Aug 2019 05:06

Hi folks!
I'm very new here, and have a couple of questions. Is there a way to make this image block wrapped by text (like it's done in a standard image wizard with floating positon. And another question - where do i put CSS customization to? Is it a separate field under this block or something "global"?

A few questions by Norman SeverskyNorman Seversky, 06 Aug 2019 17:24
TroOopsTroOops 31 Jul 2019 16:10
in discussion Hidden / Per page discussions » Html5player

Awesome ! Thank you for sharing this code. I'm still learning wikidot, but it doesn't look that hard !

by TroOopsTroOops, 31 Jul 2019 16:10

I don't know the SCP rules are for redacted text. Do you need it so it's unreadable text (like a placeholder that looks like it's redacted) or just the foreground and background the same color (where highlighting the text will show it)?


This has some fake redacted text (drag mouse over this to see the text).

This has some   text (just a single space hiding here).


The Code

This has some [[span style="background: black;"]]fake redacted[[/span]] text (drag mouse over this to see the text).

This has some [[span style="display: inline-block; width: 90px; background: black;"]]@<&nbsp;>@[[/span]] text (just a single space hiding here).
by Ed JohnsonEd Johnson, 05 Jul 2019 20:53

How can I black out text. Im writing an SCP so I need some help.

by DoubledSalmonDoubledSalmon, 05 Jul 2019 03:08
Dr LudenburgDr Ludenburg 02 Jul 2019 13:02
in discussion Hidden / Per page discussions » Tabs

Dr. Ludenburg.

by Dr LudenburgDr Ludenburg, 02 Jul 2019 13:02

I'm not sure exactly what you're asking but if you want both tabs side-by-side, you need to wrap the tabs in a single [[tabview]]…[[/tabview]] block.

[[tabview]]
[[tab Tab #1]]
blah blah blah
[[/tab]]
[[tab Tab #2]]
more things
[[/tab]]
[[tab Tab #3]]
the third thing
[[/tab]]
[[/tabview]]

blah blah blah

Re: Doing something wrong?? by Ed JohnsonEd Johnson, 11 Apr 2019 20:39
So I did this, but it's not doing separate tabs

blah blah blah

more things

[[tab (Blank to show) view]]
[[tab A Simple Market]]
blah blah blah
[[/tab]]
[(Blank to show) view]

[[tab (blank to show) view]]
[[tab Flex Seal SCP-J]]
more things
[[/tab]]
[(Blank to show) view]


No signature defined

Hi, I am using this snippet a lot.
When enabling SSL encryption it doesn't work anymore though as:
- the link to the twitter share button uses http://twitter.com/share &
- <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>

Just using
https://twitter.com/share & <script type="text/javascript" src="https://platform.twitter.com/widgets.js"></script>
instead makes it work again.

Could you modify the snippet in this way? So I don't have to define a new snippet and change it across my wikis?

Thanks a lot in advance!


Jan Goossenaerts
@collaboratewiki

What if I want to the name of it to 'access file 5243578435-B' You get the idea, how would I change the name of it?

by agent costinagent costin, 06 Nov 2018 23:09

try it with a local moduile CSS - overwriting the style of the "element div.collapsible-.block-folded"
with style="font-weight: bold;" :

I have a test-page with this local module CSS ( found out the div.class "collapsible-block-folded" with firefox web-developer tool inspector ( menu) on my test wiki:
https://helmuti-pdorf.wikidot.com/collapsible-block-css


Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.

Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?

Re: Bold text ? by Helmut_pdorfHelmut_pdorf, 23 Oct 2018 16:17

I'd like to put in bold the show / hide text, but can't find the correct synatx…

Bold text ? by nikdek69nikdek69, 23 Oct 2018 10:40
PressToDeletePressToDelete 01 Sep 2018 19:17
in discussion Hidden / Per page discussions » Html5player

Just found this and it's great! How simple yet perfect
And the autoplay feature is amazing

by PressToDeletePressToDelete, 01 Sep 2018 19:17

Why isn't there a nice red button that says "Open New Tab"?

Just a thought... by Flint LockeFlint Locke, 29 Jun 2018 03:39

Great!

I think it's still a Wikidot bug though; there's no good reason why % should be invalid in titles.

Hmm, not sure if it's something that Wikidot can do. The error is likely being thrown somewhere lower in the stack (i.e. not in Wikidot's codebase).

Most web servers will trip over trying to parse a URI with % but not followed by two hex characters. What happens when that occurs isn't defined. But when it happens after the hash, you're at the discretion of the browser's implementation.

See recommendations on w3.org:

Sequences which start with a percent sign but are not followed by two hexadecimal characters are reserved for future extension.

The ideal solution is for Wikidot to provide a way of variables with percent encoding — e.g. %%title|urlencode%%.


Kenneth Tsang (@jxeeno)

That's got it. Thanks.

I think it's still a Wikidot bug though; there's no good reason why % should be invalid in titles.

Ah, dang. Didn't test that.

I've just updated it to use escape(unescape()) — let me know if it's working better. Based on that link on feedback.wikidot.com, looks like it's working now.

escape(unescape()): the first unescape will ensure any encoded entities are correctly decoded first, and then encode all special characters except / unless it's after the /title/. I think this solves it.

There's still an edge case where the user might provide a page title with a substring that is in the URI encoding format. For example, if the title was to be: Problem with encoding %20. I don't think it's possible to fix that though.


Kenneth Tsang (@jxeeno)

Sorry, that's worse.

The problem is that there are already bona-fide % characters in the URL replacing space characters in the page title:

…/title/Re:%20Expect%20a%2015%%20performance%20loss%20coming%20soon

The fix to escape the % in "15%" also escapes all the others, with the result that the new page title has all the escapes in.

The only way I can think to fix this is to go back to the original and make a special case of a "%" that is not followed by a hexadecimal digit:

var urlfix=unescape(window.location.hash.substring(1));
urlfix = urlfix.replace(/%[^0-9A-Fa-f]/g, function myfunction(x) {return "%25"+x.slice(1);})

(Warning: I have made it a career ambition never to learn Javascript.)

That will lead to odd behaviour when the % is followed by a digit, but I can't see an obvious solution.

On reflection, I think this is a Wikidot problem. I've filed a bug report there: http://feedback.wikidot.com/bug:1152

Wow. That was some pretty terrible code 😂

Gone back and made some changes. The modified version shouldn't break any existing code (unless the use case is to generate broken URL encoding).

If anyone else is experiencing new problems as a result of this change, please reply below with an example :)


Kenneth Tsang (@jxeeno)

page 1123...next »

Ostatnie zmiany na : stronie

Revision types:  ALL
 new pages
 source changes
 title changes
 page name changes
 tags changes
 metadata changes
 files changes
From categories:
Revisions per page:
page 1123...next »
chatbox: is this legit? N 07 Aug 2019 00:28 (new) IIGunnerII
chatbox: Doctor Dinko N 24 May 2019 14:20 (new) Doctor Dinko
chatbox: lmao N 20 Mar 2019 17:57 (new) ToastyTheToaster
chatbox: lmao N 20 Mar 2019 17:57 (new) ToastyTheToaster
chatbox: ayy N 20 Mar 2019 17:57 (new) ToastyTheToaster
chatbox: ayy N 20 Mar 2019 17:57 (new) ToastyTheToaster
chatbox: owo N 20 Mar 2019 17:56 (new) ToastyTheToaster
chatbox: owo N 20 Mar 2019 17:56 (new) ToastyTheToaster
chatbox: smoke weed N 28 Feb 2019 11:20 (new) SEC_the acronym
chatbox: it no work N 28 Feb 2019 11:20 (new) SEC_the acronym
chatbox: does it N 08 Feb 2019 04:15 (new) King Jeffrey
chatbox: does it N 08 Feb 2019 04:14 (new) King Jeffrey
chatbox: kmkm N 28 Jan 2019 18:39 (new) SEC_the acronym
chatbox: mkkm N 28 Jan 2019 18:39 (new) SEC_the acronym
chatbox: does this really work? N 05 Jan 2019 01:38 (new) kawina
Tweet Button S 13 Dec 2018 08:49 (rev. 9) TeRq
Fix for SSL sites
chatbox: OwO N 03 Dec 2018 01:09 (new) Cole Carbert
chatbox: wow N 24 Nov 2018 19:42 (new) Remy_eeshrek
chatbox: s N 09 Sep 2018 02:12 (new) shiro123456
page 1123...next »

Thanks to tsangk for this great snippet: conditional-blocks


text above inserted with:

[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]



Other snippets posted by gwpl


Rate this solution

If you think this solution is useful — rate it up!

rating: +5+x
Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License